NuTo
Numerics Tool
Functions
NuTo::EigenCompanion Namespace Reference

Collection of helper functions for Eigen matrices. More...

Functions

Eigen::Vector3d To3D (const Eigen::VectorXd &data)
 converts data to a 3D vector, fills with zeros if needed More...
 
Eigen::VectorXd ToEigen (std::initializer_list< double > l)
 transforms an initializer_list to an Eigen::VectorXd More...
 
Eigen::VectorXd ToEigen (double d)
 transforms a single double number to an Eigen::VectorXd More...
 

Detailed Description

Collection of helper functions for Eigen matrices.

Function Documentation

Eigen::Vector3d NuTo::EigenCompanion::To3D ( const Eigen::VectorXd &  data)
inline

converts data to a 3D vector, fills with zeros if needed

Parameters
datavector of arbitrary size
Returns
3D vector
Eigen::VectorXd NuTo::EigenCompanion::ToEigen ( std::initializer_list< double >  l)
inline

transforms an initializer_list to an Eigen::VectorXd

Eigen::VectorXd NuTo::EigenCompanion::ToEigen ( double  d)
inline

transforms a single double number to an Eigen::VectorXd