OPAL (Object Oriented Parallel Accelerator Library) 2024.2
OPAL
matt_boost Namespace Reference

Functions

template<class V>
BOOST_UBLAS_INLINE V trace (ublas::matrix< V > &e)
 Computes the trace of a square matrix.
template<class V, class A>
BOOST_UBLAS_INLINE ublas::vector< V, A > cross_prod (ublas::vector< V, A > &v1, ublas::vector< V, A > &v2)
 Computes the cross product \( v_{1}\times v_{2}\) of two vectors in \( \mathbb{R}^{3} \).
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).
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} \).

Function Documentation

◆ cross_prod()

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

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

Definition at line 60 of file matrix_vector_operation.h.

Referenced by RealDiracMatrix::diagonalize(), and RealDiracMatrix::update().

◆ gemmm()

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 92 of file matrix_vector_operation.h.

References prod().

Referenced by MapGenerator< Value_type, Size_type, Series_type, Map_type, Hamiltonian_type, Space_charge_type >::combine(), RealDiracMatrix::diagonalize(), SigmaGenerator::isEigenEllipse(), RealDiracMatrix::symplex(), RealDiracMatrix::transform(), SigmaGenerator::updateInitialSigma(), and SigmaGenerator::updateSigma().

Here is the call graph for this function:

◆ taylor_exp()

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 76 of file matrix_vector_operation.h.

References prod().

Here is the call graph for this function:

◆ trace()

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

Computes the trace of a square matrix.

Definition at line 45 of file matrix_vector_operation.h.

References sum().

Referenced by RealDiracMatrix::diagonalize().

Here is the call graph for this function: