Main Page   Groups   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Concepts

vnl_matlab_print.h File Reference

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, #X))

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)
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)
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)
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)
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)


Detailed Description

Print matrices and vectors in nice MATLAB format.

Author:
fsm@robots.ox.ac.uk, from awf's MatOps code.

Definition in file vnl_matlab_print.h.


Define Documentation

#define MATLABPRINT      (vnl_matlab_print(vcl_cerr, X, #X))
 

naughty naming-convention-defying-but-handy macro.

Definition at line 68 of file vnl_matlab_print.h.


Function Documentation

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<>.

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<>.

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<>.

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 &   ,
T const *    array,
unsigned    length,
vnl_matlab_print_format    = vnl_matlab_print_format_default
 

print a 1D array.


Generated at Fri May 21 01:16:08 2004 for ITK by doxygen 1.2.15 written by Dimitri van Heesch, © 1997-2000