version 0.4.1
eigendunetransformations.hh File Reference

Helper for transform between Dune linear algebra types and Eigen. More...

#include <assert.h>
#include <dune/common/diagonalmatrix.hh>
#include <dune/common/fmatrix.hh>
#include <dune/common/fvector.hh>
#include <dune/istl/scaledidmatrix.hh>
#include <Eigen/Core>

Go to the source code of this file.

Namespaces

namespace  Ikarus
 

Functions

template<typename ST , int size>
Dune::FieldVector< ST, size > Ikarus::toDune (const Eigen::Vector< ST, size > &vec)
 Create Eigen::Vector to Dune::FieldVector. More...
 
template<typename ST , int rows>
Dune::FieldVector< ST, rows > Ikarus::toDune (const Eigen::Matrix< ST, rows, 0 > &vec)
 Convert Eigen::Matrix to Dune::FieldVector. More...
 
template<typename ST , int rows, int cols>
Dune::FieldMatrix< ST, rows, cols > Ikarus::toDune (const Eigen::Matrix< ST, rows, cols > &mat)
 Convert Eigen::Matrix to Dune::FieldMatrix. More...
 
template<typename ST , int size>
Eigen::Map< const Eigen::Vector< ST, size > > Ikarus::toEigenMap (const Dune::FieldVector< ST, size > &vec)
 View a Dune::FieldVector as an Eigen::Vector using Map, no copies take place. More...
 
template<typename ST , int size>
Eigen::Map< Eigen::Vector< ST, size > > Ikarus::toEigenMap (Dune::FieldVector< ST, size > &vec)
 View a constant Dune::FieldVector as a constant Eigen::Vector, no copies take place. More...