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
!xfor both vector and matrix.
Tips¶
- Use
.cint,.cfloat,.cdoubleto pass numeric values to C. - Use
.legnthor.strideto pass vDSP_Length and vDSP_Stride to vDSP functions.