Level 2.
[Basic Linear Algebra Subprograms (BLAS)]

Collaboration diagram for Level 2.:


Detailed Description

Rank 1 and 2 updates of matrices.


Modules

 Specialised for complex<double>
 Specialised for double
 Specialised for float

Functions

template<typename Type>
void gslmm::rank_1_update (const Type &alpha, const vector< Type > &v, const vector< Type > &u, matrix< Type > &a, bool c=false)
template<typename Type>
void gslmm::rank_1_update (const Type &alpha, const vector< Type > &v, const vector< Type > &u, matrix_manip< Type > a, bool c=false)
template<typename Type>
void gslmm::rank_2_update (const Type &alpha, const vector< Type > &v, const vector< Type > &u, matrix_manip< Type > a)


Function Documentation

template<typename Type>
void gslmm::rank_1_update const Type &  alpha,
const vector< Type > &  v,
const vector< Type > &  u,
matrix_manip< Type >  a,
bool  c = false
 

compute the rank-1 update $ A = \alpha v u^T + A $ or, if c is true and $ A$ is complex, $ A = \alpha v u^H + A $ of the matrix $ A$.

Parameters:
alpha The scalar $ \alpha$
v The first vector $ v$
u The second vector $ u$
a The matrix $ A$ to update
c Whether to conjugate the second vector

template<typename Type>
void gslmm::rank_1_update const Type &  alpha,
const vector< Type > &  v,
const vector< Type > &  u,
matrix< Type > &  a,
bool  c = false
 

compute the rank-1 update $ A = \alpha v u^T + A $ or, if c is true and A is complex, $ A = \alpha v u^H + A $ of the matrix $ A$.

Parameters:
alpha The scalar $ \alpha$
v The first vector $ v$
u The second vector $ u$
a The matrix $ A$ to update
c Whether to conjugate the second vector
Examples:
linear/linear-test.cc.

template<typename Type>
void gslmm::rank_2_update const Type &  alpha,
const vector< Type > &  v,
const vector< Type > &  u,
matrix_manip< Type >  a
 

compute the symmetric rank-2 update $ A = \alpha v u^T + \alpha u v^T $ or, if $ A$ is complex the hermitian rank-2 update $ A = \alpha v u^H + \alpha u v^H $, of the matrix $ A$.

Parameters:
alpha The scalar $ \alpha$
v The first vector $ v$
u The second vector $ u$
a The matrix $ A$ to update

Top of page Last update Tue May 9 10:11:21 2006
Christian Holm
Created by DoxyGen 1.4.6