jrl::qp::utils::toMatlab Class Reference

#include <jrl-qp/utils/toMatlab.h>

Public Member Functions

 toMatlab (const Eigen::Ref< const Eigen::MatrixXd > &M)
 
template<typename Derived , typename std::enable_if<!is_convertible_to_eigen_ref_v< Derived >, int >::type = 0>
 toMatlab (const Eigen::EigenBase< Derived > &M)
 

Friends

std::ostream & operator<< (std::ostream &, const toMatlab &)
 

Detailed Description

A small utility class to write Eigen matrices in a stream with a matlab-readable format.

Example of use: Eigen::MatrixXd M = Eigen::MatrixXd::Random(5,6); std::cout << (toMatlab)M << std::endl;

Inspired from a code by Nicolas Mansard.

Constructor & Destructor Documentation

◆ toMatlab() [1/2]

jrl::qp::utils::toMatlab::toMatlab ( const Eigen::Ref< const Eigen::MatrixXd > &  M)
inline

◆ toMatlab() [2/2]

template<typename Derived , typename std::enable_if<!is_convertible_to_eigen_ref_v< Derived >, int >::type = 0>
jrl::qp::utils::toMatlab::toMatlab ( const Eigen::EigenBase< Derived > &  M)
inline

Friends And Related Function Documentation

◆ operator<<

std::ostream& operator<< ( std::ostream &  o,
const toMatlab tom 
)
friend

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