Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9198173
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T22:13:25+00:00 2026-06-17T22:13:25+00:00

Currently I am using some functions available in math kernel library dll mkl_rt.dll in

  • 0

Currently I am using some functions available in math kernel library dll mkl_rt.dll in a C# program so I have

using mkl;

namespace mklDirect
{
    int LAPACK_ROW_MAJOR = 101;
    int LAPACK_COL_MAJOR = 102;
    int n, m, lda;
    n = 3;m = 3;
    lda = n;
    int ldu = m;
    int ldvt = n;
    Double[] superb = new Double[m - 1];
    Double[] s = new Double[n];
    Double[] u = new Double[n * n];
    Double[] vt = new Double[n * n];
    Double[] A = new Double[9]
    {
                         8.79,  9.93,  9.83,
                         6.11,  6.91,  5.04,
                         -9.15, -7.93, 4.86
     };
     Char a1 = 'A';
     Char a2 = 'A';
     int mat_order = LAPACK_ROW_MAJOR;
     int info = 0;
     double[] work1 = new double[1];
     MKLImports.LAPACKE_dgesvd(mat_order, a1, a2, m, n, A, lda, s, u, ldu, vt, ldvt, superb);

     //PRINT RESULT


}  


namespace mkl
{
        internal sealed class MKLImports
        {
            private  MKLImports()
            {                 
            }

        [DllImport("mkl_rt.dll", ExactSpelling = true, SetLastError = false, CallingConvention = CallingConvention.Cdecl)]
            internal static extern void LAPACKE_dgesvd(
                  int matrix_order,
                  char a1,
                  char a2,
                  int m,
                  int n,
                 [In, Out] double[] input_matrix,
                  int lda,
                 [In, Out] double[] s,
                 [In, Out] double[] u,
                  int ldu,
                 [In, Out] double[] vt,
                  int ldvt,
                  double[] superb
          );
        }
}

I want to keep on adding functions in the namespace mkl, and then, use those functions in another file. I do not know if this can have side effects or what would be the best way to do this. In the code I loads the dlls, to make a huge library from mkl and other dlls .

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T22:13:27+00:00Added an answer on June 17, 2026 at 10:13 pm

    Are you just trying to create an interop file? There are ways of generating complete interop files for you that will automatically generate such code for you to utilize as you please.

    http://msdn.microsoft.com/en-us/library/tw4zwhbe.aspx

    http://msdn.microsoft.com/en-us/library/aa302338.aspx

    http://msdn.microsoft.com/en-us/library/1w557csx.aspx

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I currently using android NDK to write some native code in C. I have
I have some code which I'm currently using to change the static-IP of a
Currently I have some code deleting some temporary files created by my program: #
I am currently using the windows native wifi functions for some stuff. This is
I am currently using some javascript to scroll some text on my web page.
I am currently using netbeans 6.7 to develop some j2me apps for a phone.
I'm currently using NVelocity to render some email templates. I'm curious how I can
I am currently currently using Rijndael 256-bit in CBC mode to encrypt some data
I am currently using Serialization in order to make deep copies of some autogenerated
I'm currently using the WebAii automation framework to write some user interface tests against

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.