OPAL (Object Oriented Parallel Accelerator Library)  2.2.0
OPAL
Functions
matt_boost Namespace Reference

Expands the existing functions of the boost library uBLAS (http://www.boost.org/). More...

Functions

template<class V >
BOOST_UBLAS_INLINE V trace (ublas::matrix< V > &e)
 Computes the trace of a square matrix. More...
 
template<class V >
BOOST_UBLAS_INLINE
ublas::vector< V > 
cross_prod (ublas::vector< V > &v1, ublas::vector< V > &v2)
 Computes the cross product \( v_{1}\times v_{2}\) of two vectors in \( \mathbb{R}^{3} \). More...
 
template<class V >
BOOST_UBLAS_INLINE
ublas::matrix< V > 
taylor_exp (const ublas::matrix< V > &F, const V ds, const unsigned int order)
 Computes Taylor-Series of M(s) = exp(F*s) More...
 
template<class M , class E1 , class E2 , class E3 >
BOOST_UBLAS_INLINE M gemmm (const ublas::matrix_expression< E1 > &e1, const ublas::matrix_expression< E2 > &e2, const ublas::matrix_expression< E3 > &e3)
 Generalized matrix-matrix-matrix multiplication \( e_{1}\cdot e_{2}\cdot e_{3} \). More...
 

Detailed Description

Expands the existing functions of the boost library uBLAS (http://www.boost.org/).

Function Documentation

template<class V >
BOOST_UBLAS_INLINE ublas::vector<V> matt_boost::cross_prod ( ublas::vector< V > &  v1,
ublas::vector< V > &  v2 
)

Computes the cross product \( v_{1}\times v_{2}\) of two vectors in \( \mathbb{R}^{3} \).

Definition at line 48 of file matrix_vector_operation.h.

Referenced by RDM< Value_type, Size_type >::diagonalize().

template<class M , class E1 , class E2 , class E3 >
BOOST_UBLAS_INLINE M matt_boost::gemmm ( const ublas::matrix_expression< E1 > &  e1,
const ublas::matrix_expression< E2 > &  e2,
const ublas::matrix_expression< E3 > &  e3 
)

Generalized matrix-matrix-matrix multiplication \( e_{1}\cdot e_{2}\cdot e_{3} \).

Definition at line 80 of file matrix_vector_operation.h.

References prod().

Here is the call graph for this function:

template<class V >
BOOST_UBLAS_INLINE ublas::matrix<V> matt_boost::taylor_exp ( const ublas::matrix< V > &  F,
const V  ds,
const unsigned int  order 
)

Computes Taylor-Series of M(s) = exp(F*s)

Definition at line 64 of file matrix_vector_operation.h.

References prod().

Here is the call graph for this function:

template<class V >
BOOST_UBLAS_INLINE V matt_boost::trace ( ublas::matrix< V > &  e)

Computes the trace of a square matrix.

Definition at line 33 of file matrix_vector_operation.h.

References sum().

Referenced by RDM< Value_type, Size_type >::decompose(), and RDM< Value_type, Size_type >::diagonalize().

Here is the call graph for this function: