The LAPACK forum has moved to https://github.com/Reference-LAPACK/lapack/discussions.

copy a column of matrix to a vector

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

copy a column of matrix to a vector

Postby aiminy » Mon May 14, 2007 6:19 pm

I am using C++ to call LAPACK.
I am using dgemm_()
I am new to LAPACK.
now I want to code something like this:

double a[n*n],b[n*1]
for(k=0; k<n;k++)
{
a(1:n,k)=a(n,n)*a(1:n,k)-b(k)*a(1:n,k)
e[k]=dot_product(a(1:n,k))
}

Does anyone know hoe to code this using dgemm_ in C++ ?
aiminy
 
Posts: 6
Joined: Fri May 11, 2007 6:16 pm

Return to User Discussion

Who is online

Users browsing this forum: No registered users and 4 guests