Print matrices and vectors in nice MATLAB format. More...
#include <iosfwd>#include <vnl/vnl_fwd.h>#include <vnl/vnl_matlab_print_format.h>#include "vnl/vnl_export.h"Go to the source code of this file.
Macros | |
| #define | MATLABPRINT(X) (vnl_matlab_print(std::cerr, (X).as_ref(), #X)) |
| naughty naming-convention-defying-but-handy macro. More... | |
Functions | |
| template<class T > | |
| VNL_EXPORT std::ostream & | vnl_matlab_print (std::ostream &, T const *array, unsigned length, vnl_matlab_print_format=vnl_matlab_print_format_default) |
| print a 1D array. More... | |
| template<class T > | |
| VNL_EXPORT std::ostream & | vnl_matlab_print (std::ostream &, T const *const *array, unsigned rows, unsigned cols, vnl_matlab_print_format=vnl_matlab_print_format_default) |
| print a 2D array. More... | |
| template<class T > | |
| VNL_EXPORT std::ostream & | vnl_matlab_print (std::ostream &, vnl_diag_matrix< T > const &, char const *variable_name=nullptr, vnl_matlab_print_format=vnl_matlab_print_format_default) |
| print a vnl_diagonal_matrix<T>. More... | |
| template<class T > | |
| VNL_EXPORT std::ostream & | vnl_matlab_print (std::ostream &, vnl_matrix< T > const &, char const *variable_name=nullptr, vnl_matlab_print_format=vnl_matlab_print_format_default) |
| print a vnl_matrix<T>. More... | |
| template<class T , unsigned int n, unsigned int m> | |
| VNL_EXPORT std::ostream & | vnl_matlab_print (std::ostream &, vnl_matrix_fixed< T, n, m > const &, char const *variable_name=nullptr, vnl_matlab_print_format=vnl_matlab_print_format_default) |
| print a vnl_matrix_fixed<T>. More... | |
| template<class T > | |
| VNL_EXPORT std::ostream & | vnl_matlab_print (std::ostream &, vnl_matrix_ref< T > const &, char const *variable_name=nullptr, vnl_matlab_print_format=vnl_matlab_print_format_default) |
| print a vnl_matrix_ref<T>. More... | |
| template<class T > | |
| VNL_EXPORT std::ostream & | vnl_matlab_print (std::ostream &, vnl_vector< T > const &, char const *variable_name=nullptr, vnl_matlab_print_format=vnl_matlab_print_format_default) |
| print a vnl_vector<T>. More... | |
| template<class T , unsigned int n> | |
| VNL_EXPORT std::ostream & | vnl_matlab_print (std::ostream &, vnl_vector_fixed< T, n > const &, char const *variable_name=nullptr, vnl_matlab_print_format=vnl_matlab_print_format_default) |
| print a vnl_vector_fixed<T>. More... | |
Print matrices and vectors in nice MATLAB format.
Definition in file vnl_matlab_print.h.
| #define MATLABPRINT | ( | X | ) | (vnl_matlab_print(std::cerr, (X).as_ref(), #X)) |
naughty naming-convention-defying-but-handy macro.
Definition at line 93 of file vnl_matlab_print.h.
| VNL_EXPORT std::ostream& vnl_matlab_print | ( | std::ostream & | , |
| T const * | array, | ||
| unsigned | length, | ||
| vnl_matlab_print_format | = vnl_matlab_print_format_default |
||
| ) |
print a 1D array.
Definition at line 26 of file vnl_matlab_print.hxx.
| VNL_EXPORT std::ostream& vnl_matlab_print | ( | std::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 43 of file vnl_matlab_print.hxx.
| VNL_EXPORT std::ostream & vnl_matlab_print | ( | std::ostream & | , |
| vnl_diag_matrix< T > const & | , | ||
| char const * | variable_name = nullptr, |
||
| vnl_matlab_print_format | = vnl_matlab_print_format_default |
||
| ) |
print a vnl_diagonal_matrix<T>.
Definition at line 54 of file vnl_matlab_print.hxx.
| VNL_EXPORT std::ostream & vnl_matlab_print | ( | std::ostream & | , |
| vnl_matrix< T > const & | , | ||
| char const * | variable_name = nullptr, |
||
| vnl_matlab_print_format | = vnl_matlab_print_format_default |
||
| ) |
print a vnl_matrix<T>.
Definition at line 71 of file vnl_matlab_print.hxx.
| VNL_EXPORT std::ostream & vnl_matlab_print | ( | std::ostream & | , |
| vnl_matrix_fixed< T, n, m > const & | , | ||
| char const * | variable_name = nullptr, |
||
| vnl_matlab_print_format | = vnl_matlab_print_format_default |
||
| ) |
print a vnl_matrix_fixed<T>.
Definition at line 112 of file vnl_matlab_print.hxx.
| VNL_EXPORT std::ostream & vnl_matlab_print | ( | std::ostream & | , |
| vnl_matrix_ref< T > const & | , | ||
| char const * | variable_name = nullptr, |
||
| vnl_matlab_print_format | = vnl_matlab_print_format_default |
||
| ) |
print a vnl_matrix_ref<T>.
Definition at line 136 of file vnl_matlab_print.hxx.
| VNL_EXPORT std::ostream & vnl_matlab_print | ( | std::ostream & | , |
| vnl_vector< T > const & | , | ||
| char const * | variable_name = nullptr, |
||
| vnl_matlab_print_format | = vnl_matlab_print_format_default |
||
| ) |
print a vnl_vector<T>.
Definition at line 95 of file vnl_matlab_print.hxx.
| VNL_EXPORT std::ostream & vnl_matlab_print | ( | std::ostream & | , |
| vnl_vector_fixed< T, n > const & | , | ||
| char const * | variable_name = nullptr, |
||
| vnl_matlab_print_format | = vnl_matlab_print_format_default |
||
| ) |
print a vnl_vector_fixed<T>.
Definition at line 161 of file vnl_matlab_print.hxx.
1.8.15