HLIBpro  2.6
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

using value_t = typename matrix_trait< T_derived >::value_t
 scalar value type of matrix
 

Public Member Functions

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