flexiblesusy is hosted by Hepforge, IPPP Durham
FlexibleSUSY
mathlink_utils.hpp File Reference
#include <mathlink.h>
#include <complex>
#include <string>
#include <vector>
#include <Eigen/Core>
Include dependency graph for mathlink_utils.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void MLGet (MLINK link, int *c)
 
void MLGet (MLINK link, long *c)
 
void MLGet (MLINK link, short *c)
 
template<int M>
void MLPut (MLINK link, const Eigen::Array< double, M, 1 > &a)
 
template<int M>
void MLPut (MLINK link, const Eigen::Array< std::complex< double >, M, 1 > &a)
 
template<int M>
void MLPut (MLINK link, const Eigen::Matrix< double, M, 1 > &m)
 
template<int M, int N>
void MLPut (MLINK link, const Eigen::Matrix< double, M, N > &m)
 
template<int M>
void MLPut (MLINK link, const Eigen::Matrix< std::complex< double >, M, 1 > &m)
 
template<int M, int N>
void MLPut (MLINK link, const Eigen::Matrix< std::complex< double >, M, N > &m)
 
void MLPut (MLINK link, const std::string &s)
 
void MLPut (MLINK link, double c)
 
void MLPut (MLINK link, int c)
 
void MLPut (MLINK link, std::complex< double > c)
 
void MLPutHeads (MLINK link, const std::vector< std::string > &heads)
 
void MLPutRule (MLINK link, const std::string &name, const std::vector< std::string > &heads={})
 
void MLPutRule (MLINK link, int number, const std::vector< std::string > &heads={})
 
void MLPutRule (MLINK link, long number, const std::vector< std::string > &heads={})
 
template<class T1 , class T2 >
void MLPutRuleTo (MLINK link, T1 t, const T2 &name, const std::vector< std::string > &heads={})
 

Function Documentation

◆ MLGet() [1/3]

void MLGet ( MLINK  link,
int *  c 
)
inline

Definition at line 151 of file mathlink_utils.hpp.

◆ MLGet() [2/3]

void MLGet ( MLINK  link,
long *  c 
)
inline

Definition at line 156 of file mathlink_utils.hpp.

◆ MLGet() [3/3]

void MLGet ( MLINK  link,
short *  c 
)
inline

Definition at line 161 of file mathlink_utils.hpp.

◆ MLPut() [1/10]

template<int M>
void MLPut ( MLINK  link,
const Eigen::Array< double, M, 1 > &  a 
)

Definition at line 58 of file mathlink_utils.hpp.

References M.

◆ MLPut() [2/10]

template<int M>
void MLPut ( MLINK  link,
const Eigen::Array< std::complex< double >, M, 1 > &  a 
)

Definition at line 86 of file mathlink_utils.hpp.

References M, and MLPut().

◆ MLPut() [3/10]

template<int M>
void MLPut ( MLINK  link,
const Eigen::Matrix< double, M, 1 > &  m 
)

Definition at line 67 of file mathlink_utils.hpp.

References MLPut().

◆ MLPut() [4/10]

template<int M, int N>
void MLPut ( MLINK  link,
const Eigen::Matrix< double, M, N > &  m 
)

Definition at line 74 of file mathlink_utils.hpp.

References M.

◆ MLPut() [5/10]

template<int M>
void MLPut ( MLINK  link,
const Eigen::Matrix< std::complex< double >, M, 1 > &  m 
)

Definition at line 94 of file mathlink_utils.hpp.

References M, and MLPut().

◆ MLPut() [6/10]

template<int M, int N>
void MLPut ( MLINK  link,
const Eigen::Matrix< std::complex< double >, M, N > &  m 
)

Definition at line 101 of file mathlink_utils.hpp.

References M, and MLPut().

◆ MLPut() [7/10]

void MLPut ( MLINK  link,
const std::string &  s 
)
inline

Definition at line 31 of file mathlink_utils.hpp.

Referenced by MLPut().

◆ MLPut() [8/10]

void MLPut ( MLINK  link,
double  c 
)
inline

Definition at line 41 of file mathlink_utils.hpp.

◆ MLPut() [9/10]

void MLPut ( MLINK  link,
int  c 
)
inline

Definition at line 36 of file mathlink_utils.hpp.

◆ MLPut() [10/10]

void MLPut ( MLINK  link,
std::complex< double >  c 
)
inline

Definition at line 46 of file mathlink_utils.hpp.

◆ MLPutHeads()

void MLPutHeads ( MLINK  link,
const std::vector< std::string > &  heads 
)
inline

◆ MLPutRule() [1/3]

void MLPutRule ( MLINK  link,
const std::string &  name,
const std::vector< std::string > &  heads = {} 
)
inline

◆ MLPutRule() [2/3]

void MLPutRule ( MLINK  link,
int  number,
const std::vector< std::string > &  heads = {} 
)
inline

Definition at line 128 of file mathlink_utils.hpp.

◆ MLPutRule() [3/3]

void MLPutRule ( MLINK  link,
long  number,
const std::vector< std::string > &  heads = {} 
)
inline

Definition at line 135 of file mathlink_utils.hpp.

◆ MLPutRuleTo()

template<class T1 , class T2 >
void MLPutRuleTo ( MLINK  link,
T1  t,
const T2 &  name,
const std::vector< std::string > &  heads = {} 
)