00001 #ifndef vnl_matlab_print_h_
00002 #define vnl_matlab_print_h_
00003
00004
00005
00006
00007
00008
00009
00010 template <class T> class vnl_vector;
00011 template <class T> class vnl_matrix;
00012 template <class T> class vnl_diag_matrix;
00013 #include <vcl_iosfwd.h>
00014
00015 #include <vnl/vnl_matlab_print_format.h>
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025 template <class T>
00026 vcl_ostream &vnl_matlab_print(vcl_ostream &,
00027 T const *array,
00028 unsigned length,
00029 vnl_matlab_print_format =vnl_matlab_print_format_default);
00030
00031
00032 template <class T>
00033 vcl_ostream &vnl_matlab_print(vcl_ostream &,
00034 T const * const *array,
00035 unsigned rows, unsigned cols,
00036 vnl_matlab_print_format =vnl_matlab_print_format_default);
00037
00038
00039 template <class T>
00040 vcl_ostream &vnl_matlab_print(vcl_ostream &,
00041 vnl_diag_matrix<T> const &,
00042 char const *variable_name =0,
00043 vnl_matlab_print_format =vnl_matlab_print_format_default);
00044
00045
00046 template <class T>
00047 vcl_ostream &vnl_matlab_print(vcl_ostream &,
00048 vnl_matrix<T> const &,
00049 char const *variable_name =0,
00050 vnl_matlab_print_format =vnl_matlab_print_format_default);
00051
00052
00053 template <class T>
00054 vcl_ostream &vnl_matlab_print(vcl_ostream &,
00055 vnl_vector<T> const &,
00056 char const *variable_name =0,
00057 vnl_matlab_print_format =vnl_matlab_print_format_default);
00058
00059
00060
00061 #define MATLABPRINT(X) (vnl_matlab_print(vcl_cerr, X, #X))
00062
00063 #endif // vnl_matlab_print_h_