public static extern IntPtr core_Mat_diag(IntPtr self); [DllImport(DllExtern, CallingConvention = CallingConvention.Cdecl, EntryPoint = "core_Mat_diag2")]