Connecting Tech Pros Worldwide Help | Site Map

input matrix for blas and lapack

  #1  
Old October 20th, 2006, 03:35 PM
aberte@gmail.com
Guest
 
Posts: n/a
Hi,

i'm learning how to use lapack library (in particular, Intel MKL). I
wish to know how I have to format the my inputs. I'm calling lapack
functions from c++ (zhetri, zhemm, zgemm, zhseqr, ztrevc).
I declare the 3x3 matrix (in c++) in this way:
complex MyMatrix[9];

I intend
MyMatrix[0], MyMatrix[1], MyMatrix[2]
as the first row, but
i'm not sure that also lapack routine interpret this the
same way (and not
MyMatrix[0],MyMatrix[3],MyMatrix[6]
as the first row).
So, how I have to manage matrixes, column major or row major (like in
c++)?.

Thank you.

  #2  
Old October 20th, 2006, 03:35 PM
mlimber
Guest
 
Posts: n/a

re: input matrix for blas and lapack


aberte@gmail.com wrote:
Quote:
i'm learning how to use lapack library (in particular, Intel MKL). I
wish to know how I have to format the my inputs. I'm calling lapack
functions from c++ (zhetri, zhemm, zgemm, zhseqr, ztrevc).
I declare the 3x3 matrix (in c++) in this way:
complex MyMatrix[9];
>
I intend
MyMatrix[0], MyMatrix[1], MyMatrix[2]
as the first row, but
i'm not sure that also lapack routine interpret this the
same way (and not
MyMatrix[0],MyMatrix[3],MyMatrix[6]
as the first row).
So, how I have to manage matrixes, column major or row major (like in
c++)?.
This question is really about lapack, not the standard C++ language and
libraries. Since the latter is the topic of this group
(http://www.parashift.com/c++-faq-lit....html#faq-5.9),
you'll have to ask elsewhere (presumably in a group that deals with
lapack or mathematics programming or whatever) or reformulate the
question so it is on-topic.

Cheers! --M

  #3  
Old October 23rd, 2006, 08:45 AM
Bernard Bru
Guest
 
Posts: n/a

re: input matrix for blas and lapack


mlimber wrote:
Quote:
aberte@gmail.com wrote:
>
Quote:
>>i'm learning how to use lapack library (in particular, Intel MKL). I
>>wish to know how I have to format the my inputs. I'm calling lapack
>>functions from c++ (zhetri, zhemm, zgemm, zhseqr, ztrevc).
>>I declare the 3x3 matrix (in c++) in this way:
>>complex MyMatrix[9];
>>
>>I intend
>>MyMatrix[0], MyMatrix[1], MyMatrix[2]
>as the first row, but
>>i'm not sure that also lapack routine interpret this the
>same way (and not
>>MyMatrix[0],MyMatrix[3],MyMatrix[6]
>as the first row).
>>So, how I have to manage matrixes, column major or row major (like in
>>c++)?.
>
>
This question is really about lapack, not the standard C++ language and
libraries. Since the latter is the topic of this group
(http://www.parashift.com/c++-faq-lit....html#faq-5.9),
Is there an equivalent Net address like the above for Fortran?

Bernard Bru
Quote:
you'll have to ask elsewhere (presumably in a group that deals with
lapack or mathematics programming or whatever) or reformulate the
question so it is on-topic.
>
Cheers! --M
>
Closed Thread


Similar Threads
Thread Thread Starter Forum Replies Last Post
Q: lapackpp v2.2.0 lib usuage H W answers 5 July 28th, 2006 06:24 AM
passing array to C DLL mr.resistor@gmail.com answers 17 April 5th, 2006 11:25 PM