Transponing matrix in c++

Open discussion regarding features, bugs, issues, vendors, etc.

Transponing matrix in c++

Postby Mat » Thu Aug 24, 2006 1:54 pm

Hello i try to transpose a matrix within my c++ code this like:

Code: Select all
extern "C" void dgetmi_(double da[] , int *lda, int* n);


Code: Select all
std::vector<double> A;
    A.push_back(1.0);
    A.push_back(0.0);
    A.push_back(-2.0);
    A.push_back(0.0);
    A.push_back(0.0);
   
    A.push_back(0.0);
    A.push_back(3.0);
    A.push_back(0.0);
    A.push_back(0.0);
    A.push_back(-1.0);
   
    A.push_back(0.0);
    A.push_back(0.0);
    A.push_back(1.0);
    A.push_back(3.0);
    A.push_back(0.0);
   
    A.push_back(2.0);
    A.push_back(0.0);
    A.push_back(0.0);
    A.push_back(1.0);
    A.push_back(0.0);
   
    A.push_back(1.0);
    A.push_back(0.0);
    A.push_back(1.0);
    A.push_back(0.0);
    A.push_back(5.0);

int lda = 5;
int n=5;
dgetmi_(&A[0],&lda,&n);


but i get an undefined reference status ?
Where is my bug?
Mat
 
Posts: 47
Joined: Sat Aug 19, 2006 9:54 am

Postby Julie » Thu Aug 24, 2006 8:36 pm

Hello Mat,
For information DGETMI is an ESSL-only routine. It is a useful functionnality with lots of nice algorithms behind it but it is not (yet) in LAPACK. Hope somebody can help you on this one.
Julie
Julie
 
Posts: 299
Joined: Wed Feb 23, 2005 12:32 am
Location: ICL, Denver. Colorado


Return to User Discussion

Who is online

Users browsing this forum: No registered users and 2 guests