2 #ifndef vbl_array_2d_hxx_ 3 #define vbl_array_2d_hxx_ 9 # include <vcl_msvc_warnings.h> 16 os <<
"vbl_array_2d [";
17 for ( size_type i=0; i< array.
rows(); i++)
19 os << std::endl <<
" ";
20 for ( size_type j=0; j< array.
columns(); j++)
21 os <<
' ' << array(i,j);
23 os <<
"\n ]" << std::endl;
28 #undef VBL_ARRAY_2D_INSTANTIATE 29 #define VBL_ARRAY_2D_INSTANTIATE(type) \ 30 template class vbl_array_2d<type >;\ 31 template std::ostream& operator<< (std::ostream& , vbl_array_2d<type > const& ) 33 #endif // vbl_array_2d_hxx_
size_type rows() const
Return number of rows.
size_type columns() const
Return number of columns.
std::ostream & operator<<(std::ostream &os, vbl_array_2d< T > const &array)
Contains class for a templated 2d array.