HLIBpro  2.1
Public Types | Public Member Functions | List of all members
MatrixBase< T_derived > Class Template Reference

defines basic interface for matrices

#include <MatrixBase.hh>

Inheritance diagram for MatrixBase< T_derived >:
Matrix< complex > Matrix< real >

Public Types

typedef matrix_trait
< T_derived >::value_t 
value_t
 scalar value type of matrix
 

Public Member Functions

size_t nrows () const
 return number of rows of matrix
 
size_t ncols () const
 return number of columns of matrix
 
Range row_range () const
 return number of rows of matrix
 
Range col_range () const
 return number of columns of matrix
 
value_t operator() (const idx_t i, const idx_t j) const
 return coefficient (i,j)
 
value_toperator() (const idx_t i, const idx_t j)
 return reference to coefficient (i,j)
 
value_tdata () const
 return pointer to internal data
 
size_t row_stride () const
 return stride w.r.t. row index set
 
size_t col_stride () const
 return stride w.r.t. column index set
 
blasview_t blas_view () const
 return BLAS matrix view of matrix object
 
size_t blas_nrows () const
 return number of rows of actual BLAS matrix
 
size_t blas_ncols () const
 return number of columns of actual BLAS matrix