Hello, i need an help in programming. I am facing to a library that has to be used with mex in matlab, and i did in a good way the matrix product in the GPU ( C = A dot B) Now i need the data stored in the MPSMatrix C, not in a plain way but in a way i can use in c (const float**).
So i used in Swift:
let outBuffer = C.data.contents()
And now i need an object that should be <UnsafeMutablePointer<UnsafeMutablePointer> structured this way:
[c11 c12 ... c1n] .... ..... [cn1 .... cnn]
Can you help me to implement this? Thank you so much.