Interfacing with C

Through integrating OpenCV and Accelerate, this library integrates the Objective-C, Objective-C++, C, C++ and Fortran languages.

Docs

objc.matrixToPointer(x)[source]
Parameters:x (vector, [Int]) – The vector you want to take the address of.
Return type:UnsafeMutablePointer<Double>. Equivalent to double *

Note

Callable through operator !x for both vector and matrix.

Tips

  • Use .cint, .cfloat, .cdouble to pass numeric values to C.
  • Use .legnth or .stride to pass vDSP_Length and vDSP_Stride to vDSP functions.