COOLFluiD  Release kernel
COOLFluiD is a Collaborative Simulation Environment (CSE) focused on complex MultiPhysics simulations.
Public Member Functions | Public Attributes | List of all members
EigenFixture Struct Reference

fixture for each test of Eigen More...

Public Member Functions

 EigenFixture ()
 
template<typename Derived >
void modify (Eigen::MatrixBase< Derived > const &m)
 

Public Attributes

VectorXd va
 
VectorXd vb
 
VectorXd vc
 
MatrixXd ma
 
MatrixXd mb
 
MatrixXd mc
 

Detailed Description

fixture for each test of Eigen

Definition at line 22 of file utest-eigen.cpp.

Constructor & Destructor Documentation

EigenFixture ( )
inline

Definition at line 25 of file utest-eigen.cpp.

Member Function Documentation

void modify ( Eigen::MatrixBase< Derived > const &  m)
inline

This is how to modify a generic Eigen type If you don't do it this way, you cannot modify e.g. rows of matrices:

Matrix<int,2,2> m;
modify(m.row(0)); // This will now work

Definition at line 55 of file utest-eigen.cpp.

Member Data Documentation

MatrixXd ma

Definition at line 66 of file utest-eigen.cpp.

MatrixXd mb

Definition at line 67 of file utest-eigen.cpp.

MatrixXd mc

Definition at line 68 of file utest-eigen.cpp.

VectorXd va

Definition at line 62 of file utest-eigen.cpp.

VectorXd vb

Definition at line 63 of file utest-eigen.cpp.

VectorXd vc

Definition at line 64 of file utest-eigen.cpp.


The documentation for this struct was generated from the following file:
Send comments to:
COOLFluiD Web Admin