24 #include <vnl/vnl_matrix_fixed.h> 36 matUtl.
ReSize(mat.rows(),mat.cols());
37 matUtl.
CopyData((T*
const)mat.data_block(), mat.rows(), mat.cols() );
40 template <
class T,
unsigned rows,
unsigned cols>
44 matUtl.
ReSize(mat.rows(),mat.cols());
45 matUtl.
CopyData((T*
const)mat.data_block(), mat.rows(), mat.cols() );
61 matVnl.set_size(mat.
Rows(), mat.
Cols());
NDArray<T,1> is a vector class which uses blas mkl.
vnl_vector< T > UtlVectorToVnlVector(const NDArray< T, 1 > &vec)
NDArray<T,2> is a row-major matrix.
void VnlMatrixToUtlMatrix(const vnl_matrix< T > &mat, utl::NDArray< T, 2 > &matUtl)
void CopyData(T *const data, const unsigned rows, const unsigned cols)
void UtlMatrixToVnlMatrix(const NDArray< T, 2 > &mat, vnl_matrix< T > &matVnl)
utl::NDArray<T,1> class which uses blas mkl
bool ReSize(const SizeType rows, const SizeType cols)
utl::NDArray< T, 1 > VnlVectorToUtlVector(const vnl_vector< T > &vec)