|
IT++ 4.3.1
|
Conversions between IT++ and Matlab for writing mex-files. More...
Functions | |
| bin | itpp::mxArray2bin (const mxArray *in) |
| Convert the matlab-format mxArray to bin. | |
| short | itpp::mxArray2short (const mxArray *in) |
| Convert the matlab-format mxArray to short. | |
| int | itpp::mxArray2int (const mxArray *in) |
| Convert the matlab-format mxArray to int. | |
| double | itpp::mxArray2double (const mxArray *in) |
| Convert the matlab-format mxArray to double. | |
| std::complex< double > | itpp::mxArray2double_complex (const mxArray *in) |
| Convert the matlab-format mxArray to complex<double>. | |
| std::string | itpp::mxArray2string (const mxArray *in) |
| Convert the matlab-format mxArray to string. | |
| bvec | itpp::mxArray2bvec (const mxArray *in) |
| Convert the matlab-format mxArray to bvec. | |
| svec | itpp::mxArray2svec (const mxArray *in) |
| Convert the matlab-format mxArray to svec. | |
| ivec | itpp::mxArray2ivec (const mxArray *in) |
| Convert the matlab-format mxArray to ivec. | |
| vec | itpp::mxArray2vec (const mxArray *in) |
| Convert the matlab-format mxArray to vec. | |
| cvec | itpp::mxArray2cvec (const mxArray *in) |
| Convert the matlab-format mxArray to cvec. | |
| bmat | itpp::mxArray2bmat (const mxArray *in) |
| Convert the matlab-format mxArray to bmat. | |
| smat | itpp::mxArray2smat (const mxArray *in) |
| Convert the matlab-format mxArray to smat. | |
| imat | itpp::mxArray2imat (const mxArray *in) |
| Convert the matlab-format mxArray to imat. | |
| mat | itpp::mxArray2mat (const mxArray *in) |
| Convert the matlab-format mxArray to mat. | |
| cmat | itpp::mxArray2cmat (const mxArray *in) |
| Convert the matlab-format mxArray to cmat. | |
| void | itpp::bin2mxArray (const bin &in, mxArray *out) |
| Convert bin to the matlab-format mxArray. | |
| void | itpp::short2mxArray (const short &in, mxArray *out) |
| Convert short to the matlab-format mxArray. | |
| void | itpp::int2mxArray (const int &in, mxArray *out) |
| Convert int to the matlab-format mxArray. | |
| void | itpp::double2mxArray (const double &in, mxArray *out) |
| Convert double to the matlab-format mxArray. | |
| void | itpp::double_complex2mxArray (const std::complex< double > &in, mxArray *out) |
| Convert complex<double> to the matlab-format mxArray. | |
| void | itpp::string2mxArray (const std::string &in, mxArray *&out) |
| Convert string to the matlab-format mxArray. | |
| void | itpp::bvec2mxArray (const bvec &in, mxArray *out) |
| Convert bvec to the matlab-format mxArray. | |
| void | itpp::svec2mxArray (const svec &in, mxArray *out) |
| Convert svec to the matlab-format mxArray. | |
| void | itpp::ivec2mxArray (const ivec &in, mxArray *out) |
| Convert ivec to the matlab-format mxArray. | |
| void | itpp::vec2mxArray (const vec &in, mxArray *out) |
| Convert vec to the matlab-format mxArray. | |
| void | itpp::cvec2mxArray (const cvec &in, mxArray *out) |
| Convert cvec to the matlab-format mxArray. | |
| void | itpp::bmat2mxArray (const bmat &in, mxArray *out) |
| Convert bmat to the matlab-format mxArray. | |
| void | itpp::smat2mxArray (const smat &in, mxArray *out) |
| Convert smat to the matlab-format mxArray. | |
| void | itpp::imat2mxArray (const imat &in, mxArray *out) |
| Convert imat to the matlab-format mxArray. | |
| void | itpp::mat2mxArray (const mat &in, mxArray *out) |
| Convert mat to the matlab-format mxArray. | |
| void | itpp::cmat2mxArray (const cmat &in, mxArray *out) |
| Convert cmat to the matlab-format mxArray. | |
| void | itpp::mxArray2Csvec (const mxArray *in, short *out) |
| Convert the matlab-format mxArray to C-format pointer to short. | |
| void | itpp::mxArray2Civec (const mxArray *in, int *out) |
| Convert the matlab-format mxArray to C-format pointer to int. | |
| void | itpp::mxArray2Cvec (const mxArray *in, double *out) |
| Convert the matlab-format mxArray to C-format pointer to double. | |
| void | itpp::mxArray2Ccvec (const mxArray *in, double *out_real, double *out_imag) |
| Convert the matlab-format mxArray to C-format pointers to double (real and imaginary parts). | |
| void | itpp::mxArray2Csmat (const mxArray *in, short **out) |
| Convert the matlab-format mxArray to C-format pointer to pointer to short. | |
| void | itpp::mxArray2Cimat (const mxArray *in, int **out) |
| Convert the matlab-format mxArray to C-format pointer to pointer to int. | |
| void | itpp::mxArray2Cmat (const mxArray *in, double **out) |
| Convert the matlab-format mxArray to C-format pointer to pointer to double. | |
| void | itpp::mxArray2Ccmat (const mxArray *in, double **out_real, double **out_imag) |
| Convert the matlab-format mxArray to C-format pointer to pointer to double (real and imaginary parts). | |
| void | itpp::Csvec2mxArray (short *in, mxArray *out) |
| Convert C-format pointer to short to matlab-format mxArray. | |
| void | itpp::Civec2mxArray (int *in, mxArray *out) |
| Convert C-format pointer to int to matlab-format mxArray. | |
| void | itpp::Cvec2mxArray (double *in, mxArray *out) |
| Convert C-format pointer to double to matlab-format mxArray. | |
| void | itpp::Ccvec2mxArray (double *in_real, double *in_imag, mxArray *out) |
| Convert C-format pointers to double (real and imaginary parts) to matlab-format mxArray. | |
| void | itpp::Csmat2mxArray (short **in, mxArray *out) |
| Convert C-format pointer to pointer to short to matlab-format mxArray. | |
| void | itpp::Cimat2mxArray (int **in, mxArray *out) |
| Convert C-format pointer to pointer to int to matlab-format mxArray. | |
| void | itpp::Cmat2mxArray (double **in, mxArray *out) |
| Convert C-format pointer to pointer to double to matlab-format mxArray. | |
| void | itpp::Ccmat2mxArray (double **in_real, double **in_imag, mxArray *out) |
| Convert C-format pointer to pointer to double (real and imaginary parts) to matlab-format mxArray. | |
Conversions between IT++ and Matlab for writing mex-files.
These routines are used to help writng mex-files for speeding up matlab simulations. A simple mex-file that performs QPSK modulation is given below.
| bin itpp::mxArray2bin | ( | const mxArray * | in | ) |
Convert the matlab-format mxArray to bin.
Definition at line 215 of file itmex.h.
References itpp::bin::bin(), mxArray2bin(), and size().
Referenced by mxArray2bin().
| short itpp::mxArray2short | ( | const mxArray * | in | ) |
Convert the matlab-format mxArray to short.
Definition at line 226 of file itmex.h.
References mxArray2short(), and size().
Referenced by mxArray2short().
| int itpp::mxArray2int | ( | const mxArray * | in | ) |
Convert the matlab-format mxArray to int.
Definition at line 237 of file itmex.h.
References mxArray2int(), and size().
Referenced by mxArray2int().
| double itpp::mxArray2double | ( | const mxArray * | in | ) |
Convert the matlab-format mxArray to double.
Definition at line 248 of file itmex.h.
References mxArray2double(), and size().
Referenced by mxArray2double().
| std::complex< double > itpp::mxArray2double_complex | ( | const mxArray * | in | ) |
Convert the matlab-format mxArray to complex<double>.
Definition at line 259 of file itmex.h.
References mxArray2double_complex(), and size().
Referenced by mxArray2double_complex().
| std::string itpp::mxArray2string | ( | const mxArray * | in | ) |
Convert the matlab-format mxArray to string.
Definition at line 282 of file itmex.h.
References mxArray2string().
Referenced by mxArray2string().
| bvec itpp::mxArray2bvec | ( | const mxArray * | in | ) |
Convert the matlab-format mxArray to bvec.
Definition at line 292 of file itmex.h.
References itpp::bin::bin(), mxArray2bvec(), and size().
Referenced by mxArray2bvec().
| svec itpp::mxArray2svec | ( | const mxArray * | in | ) |
Convert the matlab-format mxArray to svec.
Definition at line 312 of file itmex.h.
References mxArray2svec(), and size().
Referenced by mxArray2svec().
| ivec itpp::mxArray2ivec | ( | const mxArray * | in | ) |
Convert the matlab-format mxArray to ivec.
Definition at line 332 of file itmex.h.
References mxArray2ivec(), and size().
Referenced by mxArray2ivec().
| vec itpp::mxArray2vec | ( | const mxArray * | in | ) |
Convert the matlab-format mxArray to vec.
Definition at line 352 of file itmex.h.
References mxArray2vec(), and size().
Referenced by mxArray2vec().
| cvec itpp::mxArray2cvec | ( | const mxArray * | in | ) |
Convert the matlab-format mxArray to cvec.
Definition at line 372 of file itmex.h.
References mxArray2cvec(), and size().
Referenced by mxArray2cvec().
| bmat itpp::mxArray2bmat | ( | const mxArray * | in | ) |
Convert the matlab-format mxArray to bmat.
Definition at line 400 of file itmex.h.
References itpp::bin::bin(), and mxArray2bmat().
Referenced by mxArray2bmat().
| smat itpp::mxArray2smat | ( | const mxArray * | in | ) |
Convert the matlab-format mxArray to smat.
Definition at line 424 of file itmex.h.
References mxArray2smat().
Referenced by mxArray2smat().
| imat itpp::mxArray2imat | ( | const mxArray * | in | ) |
Convert the matlab-format mxArray to imat.
Definition at line 448 of file itmex.h.
References mxArray2imat().
Referenced by mxArray2imat().
| mat itpp::mxArray2mat | ( | const mxArray * | in | ) |
Convert the matlab-format mxArray to mat.
Definition at line 471 of file itmex.h.
References mxArray2mat().
Referenced by mxArray2mat().
| cmat itpp::mxArray2cmat | ( | const mxArray * | in | ) |
Convert the matlab-format mxArray to cmat.
Definition at line 494 of file itmex.h.
References mxArray2cmat().
Referenced by mxArray2cmat().
| void itpp::bin2mxArray | ( | const bin & | in, |
| mxArray * | out ) |
| void itpp::short2mxArray | ( | const short & | in, |
| mxArray * | out ) |
Convert short to the matlab-format mxArray.
References short2mxArray().
Referenced by short2mxArray().
| void itpp::int2mxArray | ( | const int & | in, |
| mxArray * | out ) |
Convert int to the matlab-format mxArray.
References bvec2mxArray(), double2mxArray(), double_complex2mxArray(), int2mxArray(), and string2mxArray().
Referenced by int2mxArray().
| void itpp::double2mxArray | ( | const double & | in, |
| mxArray * | out ) |
Convert double to the matlab-format mxArray.
Definition at line 523 of file itmex.h.
References double2mxArray().
Referenced by double2mxArray(), and int2mxArray().
| void itpp::double_complex2mxArray | ( | const std::complex< double > & | in, |
| mxArray * | out ) |
Convert complex<double> to the matlab-format mxArray.
Definition at line 531 of file itmex.h.
References double_complex2mxArray().
Referenced by double_complex2mxArray(), and int2mxArray().
| void itpp::string2mxArray | ( | const std::string & | in, |
| mxArray *& | out ) |
Convert string to the matlab-format mxArray.
Definition at line 542 of file itmex.h.
References string2mxArray().
Referenced by int2mxArray(), and string2mxArray().
| void itpp::bvec2mxArray | ( | const bvec & | in, |
| mxArray * | out ) |
Convert bvec to the matlab-format mxArray.
Definition at line 551 of file itmex.h.
References bvec2mxArray().
Referenced by bvec2mxArray(), and int2mxArray().
| void itpp::svec2mxArray | ( | const svec & | in, |
| mxArray * | out ) |
Convert svec to the matlab-format mxArray.
References bmat2mxArray(), Ccmat2mxArray(), Ccvec2mxArray(), Cimat2mxArray(), Civec2mxArray(), Cmat2mxArray(), cmat2mxArray(), Csmat2mxArray(), Csvec2mxArray(), Cvec2mxArray(), cvec2mxArray(), imat2mxArray(), ivec2mxArray(), mat2mxArray(), mxArray2Ccmat(), mxArray2Ccvec(), mxArray2Cimat(), mxArray2Civec(), mxArray2Cmat(), mxArray2Csmat(), mxArray2Csvec(), mxArray2Cvec(), smat2mxArray(), svec2mxArray(), and vec2mxArray().
Referenced by svec2mxArray().
| void itpp::ivec2mxArray | ( | const ivec & | in, |
| mxArray * | out ) |
Convert ivec to the matlab-format mxArray.
Definition at line 564 of file itmex.h.
References ivec2mxArray().
Referenced by ivec2mxArray(), and svec2mxArray().
| void itpp::vec2mxArray | ( | const vec & | in, |
| mxArray * | out ) |
Convert vec to the matlab-format mxArray.
Definition at line 575 of file itmex.h.
References vec2mxArray().
Referenced by svec2mxArray(), and vec2mxArray().
| void itpp::cvec2mxArray | ( | const cvec & | in, |
| mxArray * | out ) |
Convert cvec to the matlab-format mxArray.
Definition at line 586 of file itmex.h.
References cvec2mxArray().
Referenced by cvec2mxArray(), and svec2mxArray().
| void itpp::bmat2mxArray | ( | const bmat & | in, |
| mxArray * | out ) |
Convert bmat to the matlab-format mxArray.
Definition at line 600 of file itmex.h.
References bmat2mxArray().
Referenced by bmat2mxArray(), and svec2mxArray().
| void itpp::smat2mxArray | ( | const smat & | in, |
| mxArray * | out ) |
Convert smat to the matlab-format mxArray.
Definition at line 623 of file itmex.h.
References smat2mxArray().
Referenced by smat2mxArray(), and svec2mxArray().
| void itpp::imat2mxArray | ( | const imat & | in, |
| mxArray * | out ) |
Convert imat to the matlab-format mxArray.
Definition at line 643 of file itmex.h.
References imat2mxArray().
Referenced by imat2mxArray(), and svec2mxArray().
| void itpp::mat2mxArray | ( | const mat & | in, |
| mxArray * | out ) |
Convert mat to the matlab-format mxArray.
Definition at line 663 of file itmex.h.
References mat2mxArray().
Referenced by mat2mxArray(), and svec2mxArray().
| void itpp::cmat2mxArray | ( | const cmat & | in, |
| mxArray * | out ) |
Convert cmat to the matlab-format mxArray.
Definition at line 683 of file itmex.h.
References cmat2mxArray().
Referenced by cmat2mxArray(), and svec2mxArray().
| void itpp::mxArray2Csvec | ( | const mxArray * | in, |
| short * | out ) |
Convert the matlab-format mxArray to C-format pointer to short.
Definition at line 706 of file itmex.h.
References mxArray2Csvec(), and size().
Referenced by mxArray2Csvec(), and svec2mxArray().
| void itpp::mxArray2Civec | ( | const mxArray * | in, |
| int * | out ) |
Convert the matlab-format mxArray to C-format pointer to int.
Definition at line 715 of file itmex.h.
References mxArray2Civec(), and size().
Referenced by mxArray2Civec(), and svec2mxArray().
| void itpp::mxArray2Cvec | ( | const mxArray * | in, |
| double * | out ) |
Convert the matlab-format mxArray to C-format pointer to double.
Definition at line 724 of file itmex.h.
References mxArray2Cvec(), and size().
Referenced by mxArray2Cvec(), and svec2mxArray().
| void itpp::mxArray2Ccvec | ( | const mxArray * | in, |
| double * | out_real, | ||
| double * | out_imag ) |
Convert the matlab-format mxArray to C-format pointers to double (real and imaginary parts).
Definition at line 733 of file itmex.h.
References mxArray2Ccvec(), and size().
Referenced by mxArray2Ccvec(), and svec2mxArray().
| void itpp::mxArray2Csmat | ( | const mxArray * | in, |
| short ** | out ) |
Convert the matlab-format mxArray to C-format pointer to pointer to short.
Definition at line 744 of file itmex.h.
References mxArray2Csmat().
Referenced by mxArray2Csmat(), and svec2mxArray().
| void itpp::mxArray2Cimat | ( | const mxArray * | in, |
| int ** | out ) |
Convert the matlab-format mxArray to C-format pointer to pointer to int.
Definition at line 760 of file itmex.h.
References mxArray2Cimat().
Referenced by mxArray2Cimat(), and svec2mxArray().
| void itpp::mxArray2Cmat | ( | const mxArray * | in, |
| double ** | out ) |
Convert the matlab-format mxArray to C-format pointer to pointer to double.
Definition at line 776 of file itmex.h.
References mxArray2Cmat().
Referenced by mxArray2Cmat(), and svec2mxArray().
| void itpp::mxArray2Ccmat | ( | const mxArray * | in, |
| double ** | out_real, | ||
| double ** | out_imag ) |
Convert the matlab-format mxArray to C-format pointer to pointer to double (real and imaginary parts).
Definition at line 792 of file itmex.h.
References mxArray2Ccmat().
Referenced by mxArray2Ccmat(), and svec2mxArray().
| void itpp::Csvec2mxArray | ( | short * | in, |
| mxArray * | out ) |
Convert C-format pointer to short to matlab-format mxArray.
Definition at line 811 of file itmex.h.
References Csvec2mxArray(), and size().
Referenced by Csvec2mxArray(), and svec2mxArray().
| void itpp::Civec2mxArray | ( | int * | in, |
| mxArray * | out ) |
Convert C-format pointer to int to matlab-format mxArray.
Definition at line 820 of file itmex.h.
References Civec2mxArray(), and size().
Referenced by Civec2mxArray(), and svec2mxArray().
| void itpp::Cvec2mxArray | ( | double * | in, |
| mxArray * | out ) |
Convert C-format pointer to double to matlab-format mxArray.
Definition at line 829 of file itmex.h.
References Cvec2mxArray(), and size().
Referenced by Cvec2mxArray(), and svec2mxArray().
| void itpp::Ccvec2mxArray | ( | double * | in_real, |
| double * | in_imag, | ||
| mxArray * | out ) |
Convert C-format pointers to double (real and imaginary parts) to matlab-format mxArray.
Definition at line 838 of file itmex.h.
References Ccvec2mxArray(), and size().
Referenced by Ccvec2mxArray(), and svec2mxArray().
| void itpp::Csmat2mxArray | ( | short ** | in, |
| mxArray * | out ) |
Convert C-format pointer to pointer to short to matlab-format mxArray.
Definition at line 849 of file itmex.h.
References Csmat2mxArray().
Referenced by Csmat2mxArray(), and svec2mxArray().
| void itpp::Cimat2mxArray | ( | int ** | in, |
| mxArray * | out ) |
Convert C-format pointer to pointer to int to matlab-format mxArray.
Definition at line 865 of file itmex.h.
References Cimat2mxArray().
Referenced by Cimat2mxArray(), and svec2mxArray().
| void itpp::Cmat2mxArray | ( | double ** | in, |
| mxArray * | out ) |
Convert C-format pointer to pointer to double to matlab-format mxArray.
Definition at line 881 of file itmex.h.
References Cmat2mxArray().
Referenced by Cmat2mxArray(), and svec2mxArray().
| void itpp::Ccmat2mxArray | ( | double ** | in_real, |
| double ** | in_imag, | ||
| mxArray * | out ) |
Convert C-format pointer to pointer to double (real and imaginary parts) to matlab-format mxArray.
Definition at line 897 of file itmex.h.
References Ccmat2mxArray().
Referenced by Ccmat2mxArray(), and svec2mxArray().