Macros | Functions
vnl_matlab_print.hxx File Reference
#include <iostream>
#include "vnl_matlab_print.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.

Macros

#define VNL_MATLAB_PRINT_INSTANTIATE(T)
 

Functions

template<class T >
std::ostream & vnl_matlab_print (std::ostream &s, T const *array, unsigned length, vnl_matlab_print_format format)
 print a 1D array. More...
 
template<class T >
std::ostream & vnl_matlab_print (std::ostream &s, T const *const *array, unsigned rows, unsigned cols, vnl_matlab_print_format format)
 print a 2D array. More...
 
template<class T >
std::ostream & vnl_matlab_print (std::ostream &s, vnl_diag_matrix< T > const &D, char const *variable_name, vnl_matlab_print_format format)
 print a vnl_diagonal_matrix<T>. More...
 
template<class T >
std::ostream & vnl_matlab_print (std::ostream &s, vnl_matrix< T > const &M, char const *variable_name, vnl_matlab_print_format format)
 print a vnl_matrix<T>. More...
 
template<class T >
std::ostream & vnl_matlab_print (std::ostream &s, vnl_vector< T > const &v, char const *variable_name, vnl_matlab_print_format format)
 print a vnl_vector<T>. More...
 
template<class T , unsigned int n, unsigned int m>
std::ostream & vnl_matlab_print (std::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>. More...
 
template<class T >
std::ostream & vnl_matlab_print (std::ostream &s, vnl_matrix_ref< T > const &M, char const *variable_name, vnl_matlab_print_format format)
 print a vnl_matrix_ref<T>. More...
 
template<class T , unsigned int n>
std::ostream & vnl_matlab_print (std::ostream &s, vnl_vector_fixed< T, n > const &v, char const *variable_name, vnl_matlab_print_format format)
 print a vnl_vector_fixed<T>. More...
 

Macro Definition Documentation

◆ VNL_MATLAB_PRINT_INSTANTIATE

#define VNL_MATLAB_PRINT_INSTANTIATE (   T)

Definition at line 180 of file vnl_matlab_print.hxx.

Function Documentation

◆ vnl_matlab_print() [1/8]

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

print a 1D array.

Definition at line 26 of file vnl_matlab_print.hxx.

◆ vnl_matlab_print() [2/8]

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

print a 2D array.

Definition at line 43 of file vnl_matlab_print.hxx.

◆ vnl_matlab_print() [3/8]

template<class T >
std::ostream& vnl_matlab_print ( std::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 54 of file vnl_matlab_print.hxx.

◆ vnl_matlab_print() [4/8]

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

print a vnl_matrix<T>.

Definition at line 71 of file vnl_matlab_print.hxx.

◆ vnl_matlab_print() [5/8]

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

print a vnl_vector<T>.

Definition at line 95 of file vnl_matlab_print.hxx.

◆ vnl_matlab_print() [6/8]

template<class T , unsigned int n, unsigned int m>
std::ostream& vnl_matlab_print ( std::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 112 of file vnl_matlab_print.hxx.

◆ vnl_matlab_print() [7/8]

template<class T >
std::ostream& vnl_matlab_print ( std::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 136 of file vnl_matlab_print.hxx.

◆ vnl_matlab_print() [8/8]

template<class T , unsigned int n>
std::ostream& vnl_matlab_print ( std::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 161 of file vnl_matlab_print.hxx.