FEDRA emulsion software from the OPERA Collaboration
VectorMatrixRowOp< Matrix, Vector, D2 > Class Template Reference

#include <MatrixFunctions.hh>

Collaboration diagram for VectorMatrixRowOp< Matrix, Vector, D2 >:

Public Member Functions

Matrix::value_type apply (unsigned int i) const
 calc $\sum_{j} a_{ij} * v_j$ More...
 
 VectorMatrixRowOp (const Matrix &lhs, const Vector &rhs)
 
 ~VectorMatrixRowOp ()
 

Protected Attributes

const Matrix & lhs_
 
const Vectorrhs_
 

Constructor & Destructor Documentation

◆ VectorMatrixRowOp()

template<class Matrix , class Vector , unsigned int D2>
VectorMatrixRowOp< Matrix, Vector, D2 >::VectorMatrixRowOp ( const Matrix &  lhs,
const Vector rhs 
)
inline
81 :
82 lhs_(lhs), rhs_(rhs) {}
const Matrix & lhs_
Definition: MatrixFunctions.hh:93
const Vector & rhs_
Definition: MatrixFunctions.hh:94

◆ ~VectorMatrixRowOp()

template<class Matrix , class Vector , unsigned int D2>
VectorMatrixRowOp< Matrix, Vector, D2 >::~VectorMatrixRowOp ( )
inline
85{}

Member Function Documentation

◆ apply()

template<class Matrix , class Vector , unsigned int D2>
Matrix::value_type VectorMatrixRowOp< Matrix, Vector, D2 >::apply ( unsigned int  i) const
inline

calc $\sum_{j} a_{ij} * v_j$

88 {
89 return meta_row_dot<D2-1>::f(lhs_, rhs_, i*D2);
90 }
static A::value_type f(const A &lhs, const B &rhs, const unsigned int offset)
Definition: MatrixFunctions.hh:55

Member Data Documentation

◆ lhs_

template<class Matrix , class Vector , unsigned int D2>
const Matrix& VectorMatrixRowOp< Matrix, Vector, D2 >::lhs_
protected

◆ rhs_

template<class Matrix , class Vector , unsigned int D2>
const Vector& VectorMatrixRowOp< Matrix, Vector, D2 >::rhs_
protected

The documentation for this class was generated from the following file: