public static extern int core_Mat_nSetF(IntPtr obj, int row, int col, [In, MarshalAs(UnmanagedType.LPArray)] float[] vals, int valsLength); [DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl)]