Defines | Functions
core/vnl/vnl_matlab_print.txx File Reference
#include "vnl_matlab_print.h"
#include <vcl_iostream.h>
#include <vnl/vnl_vector.h>
#include <vnl/vnl_matrix.h>
#include <vnl/vnl_vector_fixed.h>
#include <vnl/vnl_matrix_fixed.h>
#include <vnl/vnl_matrix_ref.h>
#include <vnl/vnl_diag_matrix.h>
#include <vnl/vnl_matlab_print_scalar.h>

Go to the source code of this file.

Defines

#define vnl_matlab_print_txx_
#define VNL_MATLAB_PRINT_INSTANTIATE(T)

Functions

template<class T >
vcl_ostream & vnl_matlab_print (vcl_ostream &s, T const *array, unsigned length, vnl_matlab_print_format format)
 print a 1D array.
template<class T >
vcl_ostream & vnl_matlab_print (vcl_ostream &s, T const *const *array, unsigned rows, unsigned cols, vnl_matlab_print_format format)
 print a 2D array.
template<class T >
vcl_ostream & vnl_matlab_print (vcl_ostream &s, vnl_diag_matrix< T > const &D, char const *variable_name, vnl_matlab_print_format format)
 print a vnl_diagonal_matrix<T>.
template<class T >
vcl_ostream & vnl_matlab_print (vcl_ostream &s, vnl_matrix< T > const &M, char const *variable_name, vnl_matlab_print_format format)
 print a vnl_matrix<T>.
template<class T >
vcl_ostream & vnl_matlab_print (vcl_ostream &s, vnl_vector< T > const &v, char const *variable_name, vnl_matlab_print_format format)
 print a vnl_vector<T>.
template<class T , unsigned int n, unsigned int m>
vcl_ostream & vnl_matlab_print (vcl_ostream &s, vnl_matrix_fixed< T, n, m > const &M, char const *variable_name, vnl_matlab_print_format format)
 print a vnl_matrix_fixed<T>.
template<class T >
vcl_ostream & vnl_matlab_print (vcl_ostream &s, vnl_matrix_ref< T > const &M, char const *variable_name, vnl_matlab_print_format format)
 print a vnl_matrix_ref<T>.
template<class T , unsigned int n>
vcl_ostream & vnl_matlab_print (vcl_ostream &s, vnl_vector_fixed< T, n > const &v, char const *variable_name, vnl_matlab_print_format format)
 print a vnl_vector_fixed<T>.

Define Documentation

#define VNL_MATLAB_PRINT_INSTANTIATE (   T)
Value:
template vcl_ostream &vnl_matlab_print(vcl_ostream &, T const*, unsigned, vnl_matlab_print_format); \
template vcl_ostream &vnl_matlab_print(vcl_ostream &, T const* const*, unsigned, unsigned, vnl_matlab_print_format); \
template vcl_ostream &vnl_matlab_print(vcl_ostream &, vnl_diag_matrix<T > const&, char const *, vnl_matlab_print_format); \
template vcl_ostream &vnl_matlab_print(vcl_ostream &, vnl_matrix<T > const&, char const*, vnl_matlab_print_format); \
template vcl_ostream &vnl_matlab_print(vcl_ostream &, vnl_vector<T > const&, char const*, vnl_matlab_print_format); \
template vcl_ostream &vnl_matlab_print(vcl_ostream &, vnl_matrix_ref<T > const&, char const*, vnl_matlab_print_format); \
template vcl_ostream &vnl_matlab_print(vcl_ostream &, vnl_matrix_fixed<T,2,2> const&, char const*, vnl_matlab_print_format); \
template vcl_ostream &vnl_matlab_print(vcl_ostream &, vnl_matrix_fixed<T,2,3> const&, char const*, vnl_matlab_print_format); \
template vcl_ostream &vnl_matlab_print(vcl_ostream &, vnl_matrix_fixed<T,3,2> const&, char const*, vnl_matlab_print_format); \
template vcl_ostream &vnl_matlab_print(vcl_ostream &, vnl_matrix_fixed<T,3,3> const&, char const*, vnl_matlab_print_format); \
template vcl_ostream &vnl_matlab_print(vcl_ostream &, vnl_matrix_fixed<T,2,4> const&, char const*, vnl_matlab_print_format); \
template vcl_ostream &vnl_matlab_print(vcl_ostream &, vnl_matrix_fixed<T,3,4> const&, char const*, vnl_matlab_print_format); \
template vcl_ostream &vnl_matlab_print(vcl_ostream &, vnl_matrix_fixed<T,4,3> const&, char const*, vnl_matlab_print_format); \
template vcl_ostream &vnl_matlab_print(vcl_ostream &, vnl_matrix_fixed<T,4,4> const&, char const*, vnl_matlab_print_format); \
template vcl_ostream &vnl_matlab_print(vcl_ostream &, vnl_matrix_fixed<T,6,8> const&, char const*, vnl_matlab_print_format); \
template vcl_ostream &vnl_matlab_print(vcl_ostream &, vnl_vector_fixed<T,2> const&, char const*, vnl_matlab_print_format); \
template vcl_ostream &vnl_matlab_print(vcl_ostream &, vnl_vector_fixed<T,3> const&, char const*, vnl_matlab_print_format); \
template vcl_ostream &vnl_matlab_print(vcl_ostream &, vnl_vector_fixed<T,4> const&, char const*, vnl_matlab_print_format); \
template vcl_ostream &vnl_matlab_print(vcl_ostream &, vnl_vector_fixed<T,5> const&, char const*, vnl_matlab_print_format); \
template vcl_ostream &vnl_matlab_print(vcl_ostream &, vnl_vector_fixed<T,6> const&, char const*, vnl_matlab_print_format); \
template vcl_ostream &vnl_matlab_print(vcl_ostream &, vnl_vector_fixed<T,7> const&, char const*, vnl_matlab_print_format)

Definition at line 177 of file vnl_matlab_print.txx.

#define vnl_matlab_print_txx_

Definition at line 4 of file vnl_matlab_print.txx.


Function Documentation

template<class T >
vcl_ostream& vnl_matlab_print ( vcl_ostream &  s,
T const *  array,
unsigned  length,
vnl_matlab_print_format  format 
)

print a 1D array.

Definition at line 23 of file vnl_matlab_print.txx.

template<class T >
vcl_ostream& vnl_matlab_print ( vcl_ostream &  s,
T const *const *  array,
unsigned  rows,
unsigned  cols,
vnl_matlab_print_format  format 
)

print a 2D array.

Definition at line 40 of file vnl_matlab_print.txx.

template<class T >
vcl_ostream& vnl_matlab_print ( vcl_ostream &  s,
vnl_diag_matrix< T > const &  D,
char const *  variable_name,
vnl_matlab_print_format  format 
)

print a vnl_diagonal_matrix<T>.

Definition at line 51 of file vnl_matlab_print.txx.

template<class T >
vcl_ostream& vnl_matlab_print ( vcl_ostream &  s,
vnl_matrix< T > const &  M,
char const *  variable_name,
vnl_matlab_print_format  format 
)

print a vnl_matrix<T>.

Definition at line 68 of file vnl_matlab_print.txx.

template<class T >
vcl_ostream& vnl_matlab_print ( vcl_ostream &  s,
vnl_vector< T > const &  v,
char const *  variable_name,
vnl_matlab_print_format  format 
)

print a vnl_vector<T>.

Definition at line 92 of file vnl_matlab_print.txx.

template<class T , unsigned int n, unsigned int m>
vcl_ostream& vnl_matlab_print ( vcl_ostream &  s,
vnl_matrix_fixed< T, n, m > const &  M,
char const *  variable_name,
vnl_matlab_print_format  format 
)

print a vnl_matrix_fixed<T>.

Definition at line 109 of file vnl_matlab_print.txx.

template<class T >
vcl_ostream& vnl_matlab_print ( vcl_ostream &  s,
vnl_matrix_ref< T > const &  M,
char const *  variable_name,
vnl_matlab_print_format  format 
)

print a vnl_matrix_ref<T>.

Definition at line 133 of file vnl_matlab_print.txx.

template<class T , unsigned int n>
vcl_ostream& vnl_matlab_print ( vcl_ostream &  s,
vnl_vector_fixed< T, n > const &  v,
char const *  variable_name,
vnl_matlab_print_format  format 
)

print a vnl_vector_fixed<T>.

Definition at line 158 of file vnl_matlab_print.txx.