|
libigl v2.5.0
|
Classes | |
| class | MatlabWorkspace |
| Class which contains data of a matlab workspace which can be written to a .mat file and loaded from matlab. More... | |
Functions | |
| void | mlinit (Engine **engine) |
| Init the MATLAB engine (no need to call it directly since it is automatically invoked by any other command) | |
| void | mlclose (Engine **engine) |
| Closes the MATLAB engine. | |
| void | mlsetmatrix (Engine **engine, std::string name, const Eigen::MatrixXd &M) |
| Send a matrix to MATLAB. | |
| void | mlsetmatrix (Engine **engine, std::string name, const Eigen::MatrixXf &M) |
| This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. | |
| void | mlsetmatrix (Engine **engine, std::string name, const Eigen::MatrixXi &M) |
| This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. | |
| void | mlsetmatrix (Engine **mlengine, std::string name, const Eigen::Matrix< unsigned int, Eigen::Dynamic, Eigen::Dynamic > &M) |
| This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. | |
| void | mlsetmatrix (Engine **mlengine, std::string name, const Eigen::SparseMatrix< double > &M) |
| This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. | |
| void | mlgetmatrix (Engine **engine, std::string name, Eigen::MatrixXd &M) |
| Receive a matrix from MATLAB. | |
| void | mlgetmatrix (Engine **engine, std::string name, Eigen::MatrixXf &M) |
| This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. | |
| void | mlgetmatrix (Engine **engine, std::string name, Eigen::MatrixXi &M) |
| This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. | |
| void | mlgetmatrix (Engine **mlengine, std::string name, Eigen::Matrix< unsigned int, Eigen::Dynamic, Eigen::Dynamic > &M) |
| This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. | |
| void | mlsetscalar (Engine **engine, std::string name, double s) |
| Send a single scalar to MATLAB. | |
| double | mlgetscalar (Engine **engine, 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. | |
| std::string | mleval (Engine **engine, std::string code) |
| Execute arbitrary MATLAB code and return the MATLAB output. | |
| void | mexErrMsgTxt (bool test, const char *message) |
| Wrapper for mexErrMsgTxt that only calls error if test fails. | |
| template<typename DerivedV > | |
| void | parse_rhs_double (const mxArray *prhs[], Eigen::PlainObjectBase< DerivedV > &V) |
| Reads in a matrix as a double. | |
| template<typename VType > | |
| void | parse_rhs (const mxArray *prhs[], Eigen::SparseMatrix< VType > &M) |
| This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. | |
| template<typename DerivedV > | |
| void | parse_rhs_index (const mxArray *prhs[], Eigen::PlainObjectBase< DerivedV > &V) |
| Reads in a matrix and subtracts 1. | |
| template<typename DerivedV > | |
| void | prepare_lhs_double (const Eigen::PlainObjectBase< DerivedV > &V, mxArray *plhs[]) |
| Writes out a matrix as a double. | |
| template<typename Vtype > | |
| void | prepare_lhs_double (const Eigen::SparseMatrix< Vtype > &V, mxArray *plhs[]) |
| This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. | |
| template<typename DerivedV > | |
| void | prepare_lhs_logical (const Eigen::PlainObjectBase< DerivedV > &V, mxArray *plhs[]) |
| This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. | |
| template<typename DerivedV > | |
| void | prepare_lhs_index (const Eigen::PlainObjectBase< DerivedV > &V, mxArray *plhs[]) |
| Writes out a matrix and adds 1. | |
| template<typename Vtype > | |
| void | prepare_lhs_double (const std::vector< Vtype > &V, mxArray *plhs[]) |
| This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. | |
| void | requires_arg (const int i, const int nrhs, const char *name) |
| Simply throw an error if (i+1)<rhs. | |
| void | validate_arg_scalar (const int i, const int nrhs, const mxArray *prhs[], const char *name) |
| Throw an error if arg i+1 is not a scalar. | |
| void | validate_arg_logical (const int i, const int nrhs, const mxArray *prhs[], const char *name) |
| This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. \breif Throw an error if arg i+1 is not logical. | |
| void | validate_arg_char (const int i, const int nrhs, const mxArray *prhs[], const char *name) |
| This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. \breif Throw an error if arg i+1 is not char. | |
| void | validate_arg_double (const int i, const int nrhs, const mxArray *prhs[], const char *name) |
| This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. \breif Throw an error if arg i+1 is not double. | |
| void | validate_arg_function_handle (const int i, const int nrhs, const mxArray *prhs[], const char *name) |
| This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. \breif Throw an error if arg i+1 is not a function handle. | |
| void igl::matlab::mlinit | ( | Engine ** | engine | ) |
Init the MATLAB engine (no need to call it directly since it is automatically invoked by any other command)
| [in,out] | engine | pointer to the MATLAB engine |
| void igl::matlab::mlclose | ( | Engine ** | engine | ) |
Closes the MATLAB engine.
| [in,out] | engine | pointer to the MATLAB engine |
| void igl::matlab::mlsetmatrix | ( | Engine ** | engine, |
| std::string | name, | ||
| const Eigen::MatrixXd & | M | ||
| ) |
Send a matrix to MATLAB.
| [in,out] | engine | pointer to the MATLAB engine |
| [in] | name | name of the variable in MATLAB |
| [in] | M | matrix to be sent |
| void igl::matlab::mlsetmatrix | ( | Engine ** | engine, |
| std::string | name, | ||
| const Eigen::MatrixXf & | M | ||
| ) |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
| void igl::matlab::mlsetmatrix | ( | Engine ** | engine, |
| std::string | name, | ||
| const Eigen::MatrixXi & | M | ||
| ) |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
| void igl::matlab::mlsetmatrix | ( | Engine ** | mlengine, |
| std::string | name, | ||
| const Eigen::Matrix< unsigned int, Eigen::Dynamic, Eigen::Dynamic > & | M | ||
| ) |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
| void igl::matlab::mlsetmatrix | ( | Engine ** | mlengine, |
| std::string | name, | ||
| const Eigen::SparseMatrix< double > & | M | ||
| ) |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
| void igl::matlab::mlgetmatrix | ( | Engine ** | engine, |
| std::string | name, | ||
| Eigen::MatrixXd & | M | ||
| ) |
Receive a matrix from MATLAB.
| [in,out] | engine | pointer to the MATLAB engine |
| [in] | name | name of the variable in MATLAB |
| [out] | M | matrix received |
| void igl::matlab::mlgetmatrix | ( | Engine ** | engine, |
| std::string | name, | ||
| Eigen::MatrixXf & | M | ||
| ) |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
| void igl::matlab::mlgetmatrix | ( | Engine ** | engine, |
| std::string | name, | ||
| Eigen::MatrixXi & | M | ||
| ) |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
| void igl::matlab::mlgetmatrix | ( | Engine ** | mlengine, |
| std::string | name, | ||
| Eigen::Matrix< unsigned int, Eigen::Dynamic, Eigen::Dynamic > & | M | ||
| ) |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
| void igl::matlab::mlsetscalar | ( | Engine ** | engine, |
| std::string | name, | ||
| double | s | ||
| ) |
Send a single scalar to MATLAB.
| [in,out] | engine | pointer to the MATLAB engine |
| [in] | name | name of the variable in MATLAB |
| [in] | M | value to be sent |
| double igl::matlab::mlgetscalar | ( | Engine ** | engine, |
| 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.
| std::string igl::matlab::mleval | ( | Engine ** | engine, |
| std::string | code | ||
| ) |
Execute arbitrary MATLAB code and return the MATLAB output.
| [in,out] | engine | pointer to the MATLAB engine |
| [in] | code | MATLAB code to be executed |
| void igl::matlab::mexErrMsgTxt | ( | bool | test, |
| const char * | message | ||
| ) |
Wrapper for mexErrMsgTxt that only calls error if test fails.
| [in] | test | boolean expression to test |
| [in] | message | message to print if test fails |
| void igl::matlab::parse_rhs_double | ( | const mxArray * | prhs[], |
| Eigen::PlainObjectBase< DerivedV > & | V | ||
| ) |
Reads in a matrix as a double.
| [in] | prhs | points to rhs argument |
| [out] | V | M by N matrix |
| void igl::matlab::parse_rhs | ( | const mxArray * | prhs[], |
| Eigen::SparseMatrix< VType > & | M | ||
| ) |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
| void igl::matlab::parse_rhs_index | ( | const mxArray * | prhs[], |
| Eigen::PlainObjectBase< DerivedV > & | V | ||
| ) |
Reads in a matrix and subtracts 1.
| [in] | prhs | points to rhs argument |
| [out] | V | M by N matrix |
| void igl::matlab::prepare_lhs_double | ( | const Eigen::PlainObjectBase< DerivedV > & | V, |
| mxArray * | plhs[] | ||
| ) |
Writes out a matrix as a double.
| [in] | V | M by N matrix |
| [out] | plhs | points to lhs argument |
| void igl::matlab::prepare_lhs_double | ( | const Eigen::SparseMatrix< Vtype > & | V, |
| mxArray * | plhs[] | ||
| ) |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
| void igl::matlab::prepare_lhs_logical | ( | const Eigen::PlainObjectBase< DerivedV > & | V, |
| mxArray * | plhs[] | ||
| ) |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Casts to logical
| void igl::matlab::prepare_lhs_index | ( | const Eigen::PlainObjectBase< DerivedV > & | V, |
| mxArray * | plhs[] | ||
| ) |
Writes out a matrix and adds 1.
| [in] | V | M by N matrix |
| [out] | plhs | points to lhs argument |
| void igl::matlab::prepare_lhs_double | ( | const std::vector< Vtype > & | V, |
| mxArray * | plhs[] | ||
| ) |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Vector of matrices -> cell array of matrices
| [in] | V | vector of M by N matrices |
| void igl::matlab::requires_arg | ( | const int | i, |
| const int | nrhs, | ||
| const char * | name | ||
| ) |
Simply throw an error if (i+1)<rhs.
| [in] | i | index of current arg |
| [in] | nrhs | total number of args |
| [in] | name | of current arg |
| void igl::matlab::validate_arg_scalar | ( | const int | i, |
| const int | nrhs, | ||
| const mxArray * | prhs[], | ||
| const char * | name | ||
| ) |
Throw an error if arg i+1 is not a scalar.
| [in] | i | index of current argument |
| [in] | nrhs | total number of arguments |
| [in] | prhs | pointer to arguments array |
| [in] | name | name of current argument |
| void igl::matlab::validate_arg_logical | ( | const int | i, |
| const int | nrhs, | ||
| const mxArray * | prhs[], | ||
| const char * | name | ||
| ) |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. \breif Throw an error if arg i+1 is not logical.
| void igl::matlab::validate_arg_char | ( | const int | i, |
| const int | nrhs, | ||
| const mxArray * | prhs[], | ||
| const char * | name | ||
| ) |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. \breif Throw an error if arg i+1 is not char.
| void igl::matlab::validate_arg_double | ( | const int | i, |
| const int | nrhs, | ||
| const mxArray * | prhs[], | ||
| const char * | name | ||
| ) |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. \breif Throw an error if arg i+1 is not double.
| void igl::matlab::validate_arg_function_handle | ( | const int | i, |
| const int | nrhs, | ||
| const mxArray * | prhs[], | ||
| const char * | name | ||
| ) |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. \breif Throw an error if arg i+1 is not a function handle.