473,500 Members | 1,664 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

input matrix for blas and lapack

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.

Oct 20 '06 #1
2 2977
ab****@gmail.com wrote:
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

Oct 20 '06 #2
mlimber wrote:
ab****@gmail.com wrote:
>>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
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
Oct 23 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
1524
by: Edward C. Jones | last post by:
I have a PC with Debian sid installed. I install all my Python stuff in /usr/local. I just installed numarray 1.3.1. Blaslite and lapacklite were compiled. Did the installation process search for...
4
1962
by: Pat | last post by:
I am looking for some matrix operation C++ library. Any suggestion? Thanks.
1
3224
by: pervinder | last post by:
Hi, I am building a c++ executable which uses fortan math libs. blas, lapack etc. But when i build this on HP-UX, i get below linker errors while it build without anyissues on Sun and Linux...
4
4776
by: Yudan Yi | last post by:
I have a problem to copy (assign) a matrix to another matrix. Curreny, I know copy the number using loops, while it will take some time, I wonder if there have faster method. The following code...
13
5839
by: Havatcha | last post by:
Does anyone know of a decent (free/easy to use) C++ library for manipulating matrices and caculating eigenvalues, eigenvectors and so on? I intend to add some Principal Component Analysis...
15
13243
by: christopher diggins | last post by:
Here is some code I wrote for Matrix multiplication for arbitrary dimensionality known at compile-time. I am curious how practical it is. For instance, is it common to know the dimensionality of...
1
3433
by: Ken Dere | last post by:
I am trying to install numpy-0.9.8 prior to installing scipy (0.4.9) on a machine running Suse 10.0 with Python 2.4 I am able to get numpy installed to the point when I import it I can do the...
20
5181
by: Frank-O | last post by:
Hi , Recently I have been commited to the task of "translating" some complex statistical algorithms from Matlab to C++. The goal is to be three times as fast as matlab ( the latest) . I've...
6
11448
by: nitroamos | last post by:
hello -- i'm working on a C++ code that uses dgemm in a simple way, but i want ports of my code to different machines to be easy. further, i want to make compiling of my code easy for new...
0
7136
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7183
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7235
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6909
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
1
4923
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4614
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
1431
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
675
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
317
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.