#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 &) |
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.
|
inline |
|
inline |
|
friend |