libigl v2.5.0
Loading...
Searching...
No Matches
matlab_format.h File Reference
#include "igl_inline.h"
#include <Eigen/Core>
#include <Eigen/Sparse>
#include <string>
#include <vector>
#include "matlab_format.cpp"

Go to the source code of this file.

Namespaces

namespace  igl

Functions

template<typename DerivedM>
const Eigen::WithFormat< DerivedM > igl::matlab_format (const Eigen::DenseBase< DerivedM > &M, const std::string name="")
 This is a routine to print a matrix using format suitable for pasting into the matlab IDE.
template<typename DerivedM>
std::string igl::matlab_format_index (const Eigen::MatrixBase< DerivedM > &M, const std::string name="")
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
template<typename T>
std::string igl::matlab_format_index (const std::vector< T > &Mvec, const std::string name="")
template<typename DerivedS>
const std::string igl::matlab_format (const Eigen::SparseMatrix< DerivedS > &S, const std::string name="")
 Same but for sparse matrices.
const std::string igl::matlab_format (const double v, const std::string name="")
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
const std::string igl::matlab_format (const float v, const std::string name="")
 This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Eigen::IOFormat igl::matlab_format ()
 Just build and return the format.