Class which contains data of a matlab workspace which can be written to a .mat file and loaded from matlab.
More...
|
| MatlabWorkspace () |
|
| ~MatlabWorkspace () |
|
void | clear () |
| Clear names and data of variables in workspace.
|
|
bool | write (const std::string &path) const |
| Save current list of variables.
|
|
bool | read (const std::string &path) |
| Load list of variables from .mat file.
|
|
template<typename DerivedM > |
MatlabWorkspace & | save (const Eigen::PlainObjectBase< DerivedM > &M, const std::string &name) |
| Assign data to a variable name in the workspace.
|
|
template<typename MT > |
MatlabWorkspace & | save (const Eigen::SparseMatrix< MT > &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 ScalarM > |
MatlabWorkspace & | save (const std::vector< std::vector< ScalarM > > &vM, 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 ScalarV > |
MatlabWorkspace & | save (const std::vector< ScalarV > &vV, 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 Q > |
MatlabWorkspace & | save (const Eigen::Quaternion< Q > &q, const std::string &name) |
|
MatlabWorkspace & | save (const double d, 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 DerivedM > |
MatlabWorkspace & | save_index (const Eigen::DenseBase< DerivedM > &M, const std::string &name) |
| Same as save() but adds 1 to each element, useful for saving "index" matrices like lists of faces or elements.
|
|
template<typename ScalarM > |
MatlabWorkspace & | save_index (const std::vector< std::vector< ScalarM > > &vM, 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 ScalarV > |
MatlabWorkspace & | save_index (const std::vector< ScalarV > &vV, 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 DerivedM > |
bool | find (const std::string &name, Eigen::PlainObjectBase< DerivedM > &M) |
| Find a certain matrix by name.
|
|
template<typename MT > |
bool | find (const std::string &name, Eigen::SparseMatrix< MT > &M) |
| This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
|
|
bool | find (const std::string &name, double &d) |
| This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
|
|
bool | find (const std::string &name, int &v) |
| This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
|
|
template<typename DerivedM > |
bool | find_index (const std::string &name, Eigen::PlainObjectBase< DerivedM > &M) |
| Subtracts 1 from all entries.
|
|
template<typename DerivedM > |
igl::matlab::MatlabWorkspace & | save (const Eigen::PlainObjectBase< DerivedM > &M, const std::string &name) |
|
template<typename MT > |
igl::matlab::MatlabWorkspace & | save (const Eigen::SparseMatrix< MT > &M, const std::string &name) |
|
template<typename ScalarM > |
igl::matlab::MatlabWorkspace & | save (const std::vector< std::vector< ScalarM > > &vM, const std::string &name) |
|
template<typename ScalarV > |
igl::matlab::MatlabWorkspace & | save (const std::vector< ScalarV > &vV, const std::string &name) |
|
template<typename Q > |
igl::matlab::MatlabWorkspace & | save (const Eigen::Quaternion< Q > &q, const std::string &name) |
|
template<typename DerivedM > |
igl::matlab::MatlabWorkspace & | save_index (const Eigen::DenseBase< DerivedM > &M, const std::string &name) |
|
template<typename ScalarM > |
igl::matlab::MatlabWorkspace & | save_index (const std::vector< std::vector< ScalarM > > &vM, const std::string &name) |
|
template<typename ScalarV > |
igl::matlab::MatlabWorkspace & | save_index (const std::vector< ScalarV > &vV, const std::string &name) |
|
Class which contains data of a matlab workspace which can be written to a .mat file and loaded from matlab.
This depends on matlab at compile time (though it shouldn't necessarily have to) but it does not depend on running the matlab engine at run-time.