Exemple #1
0
 void resize(mtl::compressed2D<ScalarType> & matrix,
             size_t rows,
             size_t cols)
 {
   matrix.change_dim(rows, cols);
 }
Exemple #2
0
 static void resize( mtl::compressed2D< Value , MatrixParameters > &m , 
                     const mtl::dense_vector< Value , VectorParameters > &v )
 {
     m.change_dim( mtl::size( v ) , mtl::size( v ) );
 }
Exemple #3
0
 vcl_size_t size2(mtl::compressed2D<SCALARTYPE> const & m) { return static_cast<vcl_size_t>(m.num_cols()); }
Exemple #4
0
 static bool same_size( const mtl::compressed2D< Value , MatrixParameters > &m , 
                        const mtl::dense_vector< Value , VectorParameters > &v )
 {
     return ( ( mtl::size( v ) == m.num_cols() ) && ( mtl::size( v ) == m.num_rows() ) );
 }
Exemple #5
0
vcl_size_t size2(mtl::compressed2D<NumericT> const & m) { return static_cast<vcl_size_t>(m.num_cols()); }