The Vish Visualization Shell 0.3
Vish
Public Member Functions | Public Attributes | List of all members
Eagle::SubMatrix< R, C, Matrix > Class Template Reference

SubMatrix is a Matrix with row R and column C deleted. More...

#include <elementary/eagle/Matrix.hpp>

Public Member Functions

const value_type & operator() (int i, int j) const
 Element access operation.
 
 SubMatrix (const Matrix &MySuperMatrix)
 Construct from some matrix.
 

Public Attributes

STATIC_CONSTEXPR_BEGIN cols
 The columns of this matrix (shortcut)
 
STATIC_CONSTEXPR_BEGIN columns = Matrix::columns-1
 The columns of this matrix.
 
STATIC_CONSTEXPR_BEGIN rows = Matrix::rows-1
 The rows of this matrix.
 

Detailed Description

template<dimension_t R, dimension_t C, class Matrix>
class Eagle::SubMatrix< R, C, Matrix >

SubMatrix is a Matrix with row R and column C deleted.

The SubMatrix shares storage with a given larger matrix, no element copying occurs. The SubMatrix just provides another indexing scheme to the original data storage.

Note that it stores a reference to the original matrix, so the original matrix's lifetime must supercede this one!

Constructor & Destructor Documentation

◆ SubMatrix()

template<dimension_t R, dimension_t C, class Matrix >
Eagle::SubMatrix< R, C, Matrix >::SubMatrix ( const Matrix MySuperMatrix)
inline

Construct from some matrix.

This matrix must exist through the lifetime of this SubMatrix because we store a refererence here.