Print matrices and vectors in nice MATLAB format. More...
Go to the source code of this file.
Defines | |
| #define | MATLABPRINT(X) (vnl_matlab_print(vcl_cerr, (X).as_ref(), #X)) |
| naughty naming-convention-defying-but-handy macro. | |
Functions | |
| template<class T > | |
| vcl_ostream & | vnl_matlab_print (vcl_ostream &, T const *array, unsigned length, vnl_matlab_print_format=vnl_matlab_print_format_default) |
| print a 1D array. | |
| template<class T > | |
| vcl_ostream & | vnl_matlab_print (vcl_ostream &, T const *const *array, unsigned rows, unsigned cols, vnl_matlab_print_format=vnl_matlab_print_format_default) |
| print a 2D array. | |
| template<class T > | |
| vcl_ostream & | vnl_matlab_print (vcl_ostream &, vnl_diag_matrix< T > const &, char const *variable_name=0, vnl_matlab_print_format=vnl_matlab_print_format_default) |
| print a vnl_diagonal_matrix<T>. | |
| template<class T > | |
| vcl_ostream & | vnl_matlab_print (vcl_ostream &, vnl_matrix< T > const &, char const *variable_name=0, vnl_matlab_print_format=vnl_matlab_print_format_default) |
| print a vnl_matrix<T>. | |
| template<class T , unsigned int n, unsigned int m> | |
| vcl_ostream & | vnl_matlab_print (vcl_ostream &, vnl_matrix_fixed< T, n, m > const &, char const *variable_name=0, vnl_matlab_print_format=vnl_matlab_print_format_default) |
| print a vnl_matrix_fixed<T>. | |
| template<class T > | |
| vcl_ostream & | vnl_matlab_print (vcl_ostream &, vnl_matrix_ref< T > const &, char const *variable_name=0, vnl_matlab_print_format=vnl_matlab_print_format_default) |
| print a vnl_matrix_ref<T>. | |
| template<class T > | |
| vcl_ostream & | vnl_matlab_print (vcl_ostream &, vnl_vector< T > const &, char const *variable_name=0, vnl_matlab_print_format=vnl_matlab_print_format_default) |
| print a vnl_vector<T>. | |
| template<class T , unsigned int n> | |
| vcl_ostream & | vnl_matlab_print (vcl_ostream &, vnl_vector_fixed< T, n > const &, char const *variable_name=0, vnl_matlab_print_format=vnl_matlab_print_format_default) |
| print a vnl_vector_fixed<T>. | |
Print matrices and vectors in nice MATLAB format.
Definition in file vnl_matlab_print.h.
| #define MATLABPRINT | ( | X | ) | (vnl_matlab_print(vcl_cerr, (X).as_ref(), #X)) |
naughty naming-convention-defying-but-handy macro.
Definition at line 92 of file vnl_matlab_print.h.
| vcl_ostream& vnl_matlab_print | ( | vcl_ostream & | , |
| T const * | array, | ||
| unsigned | length, | ||
| vnl_matlab_print_format | = vnl_matlab_print_format_default |
||
| ) |
print a 1D array.
Definition at line 23 of file vnl_matlab_print.txx.
| vcl_ostream& vnl_matlab_print | ( | vcl_ostream & | , |
| T const *const * | array, | ||
| unsigned | rows, | ||
| unsigned | cols, | ||
| vnl_matlab_print_format | = vnl_matlab_print_format_default |
||
| ) |
print a 2D array.
Definition at line 40 of file vnl_matlab_print.txx.
| vcl_ostream & vnl_matlab_print | ( | vcl_ostream & | , |
| vnl_diag_matrix< T > const & | , | ||
| char const * | variable_name = 0, |
||
| vnl_matlab_print_format | = vnl_matlab_print_format_default |
||
| ) |
print a vnl_diagonal_matrix<T>.
Definition at line 51 of file vnl_matlab_print.txx.
| vcl_ostream & vnl_matlab_print | ( | vcl_ostream & | , |
| vnl_matrix< T > const & | , | ||
| char const * | variable_name = 0, |
||
| vnl_matlab_print_format | = vnl_matlab_print_format_default |
||
| ) |
print a vnl_matrix<T>.
Definition at line 68 of file vnl_matlab_print.txx.
| vcl_ostream & vnl_matlab_print | ( | vcl_ostream & | , |
| vnl_matrix_fixed< T, n, m > const & | , | ||
| char const * | variable_name = 0, |
||
| vnl_matlab_print_format | = vnl_matlab_print_format_default |
||
| ) |
print a vnl_matrix_fixed<T>.
Definition at line 109 of file vnl_matlab_print.txx.
| vcl_ostream & vnl_matlab_print | ( | vcl_ostream & | , |
| vnl_matrix_ref< T > const & | , | ||
| char const * | variable_name = 0, |
||
| vnl_matlab_print_format | = vnl_matlab_print_format_default |
||
| ) |
print a vnl_matrix_ref<T>.
Definition at line 133 of file vnl_matlab_print.txx.
| vcl_ostream & vnl_matlab_print | ( | vcl_ostream & | , |
| vnl_vector< T > const & | , | ||
| char const * | variable_name = 0, |
||
| vnl_matlab_print_format | = vnl_matlab_print_format_default |
||
| ) |
print a vnl_vector<T>.
Definition at line 92 of file vnl_matlab_print.txx.
| vcl_ostream & vnl_matlab_print | ( | vcl_ostream & | , |
| vnl_vector_fixed< T, n > const & | , | ||
| char const * | variable_name = 0, |
||
| vnl_matlab_print_format | = vnl_matlab_print_format_default |
||
| ) |
print a vnl_vector_fixed<T>.
Definition at line 158 of file vnl_matlab_print.txx.
1.7.5.1