Quantcast
Channel: Intel® oneAPI Math Kernel Library & Intel® Math Kernel Library
Viewing all articles
Browse latest Browse all 2652

Call dfsNewTask1D from C#

$
0
0

Hey,

I'm trying to get the spline functionality to work in C#. I don't seem to know what to put in place for the DFTaskPtr. I can see it's a void pointer in the mkl_df_types.h file, but I don't know how to translate that to C#.

I naively did the following:

    [SuppressUnmanagedCodeSecurity]
    internal sealed class MklNative
    {
        [DllImport("mkl_rt.dll", CallingConvention = CallingConvention.Cdecl, ExactSpelling = true, SetLastError = false)]
        internal static extern int dfsNewTask1D(ref IntPtr task, int nx, double[] x, int xhint, int ny, double[] y, int yhint);
    }

Which doesn't work. Any help would be welcome.


Viewing all articles
Browse latest Browse all 2652

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>