![]() |
Boost.uBlas 1.49
Linear Algebra in C++: matrices, vectors and numeric algorithms
|
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. |
level 3 basic linear algebra subroutines
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.
e1 | the matrix expression A |
e2 | the matrix expression X |
m | the result matrix M |
init | a 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.
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.
e1 | the matrix expression A |
e2 | the matrix expression X |
m | the result matrix M |
init | a 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.