Boost.uBlas 1.49
Linear Algebra in C++: matrices, vectors and numeric algorithms

Level 3 BLAS

level 3 basic linear algebra subroutines More...

Functions

template<class M , class E1 , class E2 >
BOOST_UBLAS_INLINE M & boost::numeric::ublas::axpy_prod (const matrix_expression< E1 > &e1, const matrix_expression< E2 > &e2, M &m, bool init=true)
 computes M += A X or M = A X in an optimized fashion.
template<class M , class E1 , class E2 >
BOOST_UBLAS_INLINE M & boost::numeric::ublas::opb_prod (const matrix_expression< E1 > &e1, const matrix_expression< E2 > &e2, M &m, bool init=true)
 computes M += A X or M = A X in an optimized fashion.

Detailed Description

level 3 basic linear algebra subroutines


Function Documentation

template<class M , class E1 , class E2 >
BOOST_UBLAS_INLINE M& boost::numeric::ublas::axpy_prod ( const matrix_expression< E1 > &  e1,
const matrix_expression< E2 > &  e2,
M &  m,
bool  init = true 
)

computes M += A X or M = A X in an optimized fashion.

Parameters:
e1the matrix expression A
e2the matrix expression X
mthe result matrix M
inita boolean parameter

axpy_prod(A, X, M, init) implements the well known axpy-product. Setting init to true is equivalent to call M.clear() before axpy_prod. Currently init defaults to true, but this may change in the future.

Up to now there are no specialisations.

Definition at line 711 of file operation.hpp.

template<class M , class E1 , class E2 >
BOOST_UBLAS_INLINE M& boost::numeric::ublas::opb_prod ( const matrix_expression< E1 > &  e1,
const matrix_expression< E2 > &  e2,
M &  m,
bool  init = true 
)

computes M += A X or M = A X in an optimized fashion.

Parameters:
e1the matrix expression A
e2the matrix expression X
mthe result matrix M
inita boolean parameter

opb_prod(A, X, M, init) implements the well known axpy-product. Setting init to true is equivalent to call M.clear() before opb_prod. Currently init defaults to true, but this may change in the future.

This function may give a speedup if A has less columns than rows, because the product is computed as a sum of outer products.

Definition at line 827 of file operation.hpp.