<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Calling djacobi from CSharp in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Calling-djacobi-from-CSharp/m-p/820352#M4677</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I'm attempting to call djacobi() from csharp (for a nonlinear optimisation problem).&lt;BR /&gt;&lt;BR /&gt;Can anybody advise on how to pass the objective function (fcn) parameter.&lt;BR /&gt;&lt;BR /&gt;I'm importing the dll as follows:&lt;BR /&gt;&lt;BR /&gt;&lt;P&gt;[DllImport("mkl_rt", CallingConvention = CallingConvention.Cdecl,&lt;/P&gt;&lt;P&gt;ExactSpelling = true, SetLastError = false)]&lt;/P&gt;&lt;P&gt;internal static extern int djacobix(ref int fcn, &lt;/P&gt;&lt;P&gt;ref int n, ref int m, [Out] double[] fjac, [In] double[] x, ref double [] jac_eps, &lt;/P&gt;&lt;P&gt;ref MathLib.Optimiser.my_data m_data);&lt;BR /&gt;&lt;BR /&gt;Obviously, this is not working, since the fcn parameter is not passed correctly. Do I need to use a delegate?&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;&lt;BR /&gt;Ernest&lt;/P&gt;</description>
    <pubDate>Mon, 30 Jan 2012 07:01:26 GMT</pubDate>
    <dc:creator>2032</dc:creator>
    <dc:date>2012-01-30T07:01:26Z</dc:date>
    <item>
      <title>Calling djacobi from CSharp</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Calling-djacobi-from-CSharp/m-p/820352#M4677</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I'm attempting to call djacobi() from csharp (for a nonlinear optimisation problem).&lt;BR /&gt;&lt;BR /&gt;Can anybody advise on how to pass the objective function (fcn) parameter.&lt;BR /&gt;&lt;BR /&gt;I'm importing the dll as follows:&lt;BR /&gt;&lt;BR /&gt;&lt;P&gt;[DllImport("mkl_rt", CallingConvention = CallingConvention.Cdecl,&lt;/P&gt;&lt;P&gt;ExactSpelling = true, SetLastError = false)]&lt;/P&gt;&lt;P&gt;internal static extern int djacobix(ref int fcn, &lt;/P&gt;&lt;P&gt;ref int n, ref int m, [Out] double[] fjac, [In] double[] x, ref double [] jac_eps, &lt;/P&gt;&lt;P&gt;ref MathLib.Optimiser.my_data m_data);&lt;BR /&gt;&lt;BR /&gt;Obviously, this is not working, since the fcn parameter is not passed correctly. Do I need to use a delegate?&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;&lt;BR /&gt;Ernest&lt;/P&gt;</description>
      <pubDate>Mon, 30 Jan 2012 07:01:26 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Calling-djacobi-from-CSharp/m-p/820352#M4677</guid>
      <dc:creator>2032</dc:creator>
      <dc:date>2012-01-30T07:01:26Z</dc:date>
    </item>
    <item>
      <title>Calling djacobi from CSharp</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Calling-djacobi-from-CSharp/m-p/820353#M4678</link>
      <description>Ernest,&lt;DIV&gt;&lt;P&gt;Please check with this Article "&lt;A href="http://software.intel.com/en-us/articles/using-intel-mkl-in-your-c-program/"&gt;http://software.intel.com/en-us/articles/using-intel-mkl-in-your-c-program/&lt;/A&gt;", You can
find there several examples how to do that. In the case if you will experience the further problem,
then please give us the example of your*.cs file.&lt;/P&gt;&lt;P&gt;--Gennady&lt;/P&gt;

&lt;P&gt;&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 30 Jan 2012 10:44:31 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Calling-djacobi-from-CSharp/m-p/820353#M4678</guid>
      <dc:creator>Gennady_F_Intel</dc:creator>
      <dc:date>2012-01-30T10:44:31Z</dc:date>
    </item>
  </channel>
</rss>

