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

Go to the source code of this file.

Namespaces

namespace  igl
 
namespace  igl::matlab
 

Functions

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)
 
void igl::matlab::mlclose (Engine **engine)
 Closes the MATLAB engine.
 
void igl::matlab::mlsetmatrix (Engine **engine, std::string name, const Eigen::MatrixXd &M)
 Send a matrix to MATLAB.
 
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.
 
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.
 
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.