remora::Blocking< Matrix > Class Template Reference

partitions the matrix in 4 blocks defined by one splitting point (i,j). More...

#include <shark/LinAlg/Tools.h>

Public Member Functions

 Blocking (Matrix &matrix, std::size_t i, std::size_t j)
 
matrix_range< Matrix > const & upperLeft () const
 Returns the lower left block of the matrix. More...
 
matrix_range< Matrix > const & upperRight () const
 Returns the upper right block of the matrix. More...
 
matrix_range< Matrix > const & lowerLeft () const
 Returns the lower left block of the matrix. More...
 
matrix_range< Matrix > const & lowerRight () const
 Returns the lower right block of the matrix. More...
 
matrix_range< Matrix > & upperLeft ()
 Returns the lower left block of the matrix. More...
 
matrix_range< Matrix > & upperRight ()
 Returns the upper right block of the matrix. More...
 
matrix_range< Matrix > & lowerLeft ()
 Returns the lower left block of the matrix. More...
 
matrix_range< Matrix > & lowerRight ()
 Returns the lower right block of the matrix. More...
 

Detailed Description

template<class Matrix>
class remora::Blocking< Matrix >

partitions the matrix in 4 blocks defined by one splitting point (i,j).

the blocks are defined using the intervals [0,...,i), [i,...,mat.size1()] and [0,...,j), [j,...,mat.size2()]

Definition at line 42 of file Tools.h.

Constructor & Destructor Documentation

◆ Blocking()

template<class Matrix >
remora::Blocking< Matrix >::Blocking ( Matrix &  matrix,
std::size_t  i,
std::size_t  j 
)
inline

Definition at line 45 of file Tools.h.

Member Function Documentation

◆ lowerLeft() [1/2]

template<class Matrix >
matrix_range<Matrix> const& remora::Blocking< Matrix >::lowerLeft ( ) const
inline

Returns the lower left block of the matrix.

Definition at line 61 of file Tools.h.

◆ lowerLeft() [2/2]

template<class Matrix >
matrix_range<Matrix>& remora::Blocking< Matrix >::lowerLeft ( )
inline

Returns the lower left block of the matrix.

Definition at line 79 of file Tools.h.

◆ lowerRight() [1/2]

template<class Matrix >
matrix_range<Matrix> const& remora::Blocking< Matrix >::lowerRight ( ) const
inline

Returns the lower right block of the matrix.

Definition at line 66 of file Tools.h.

◆ lowerRight() [2/2]

template<class Matrix >
matrix_range<Matrix>& remora::Blocking< Matrix >::lowerRight ( )
inline

Returns the lower right block of the matrix.

Definition at line 84 of file Tools.h.

◆ upperLeft() [1/2]

template<class Matrix >
matrix_range<Matrix> const& remora::Blocking< Matrix >::upperLeft ( ) const
inline

Returns the lower left block of the matrix.

Definition at line 53 of file Tools.h.

◆ upperLeft() [2/2]

template<class Matrix >
matrix_range<Matrix>& remora::Blocking< Matrix >::upperLeft ( )
inline

Returns the lower left block of the matrix.

Definition at line 71 of file Tools.h.

◆ upperRight() [1/2]

template<class Matrix >
matrix_range<Matrix> const& remora::Blocking< Matrix >::upperRight ( ) const
inline

Returns the upper right block of the matrix.

Definition at line 57 of file Tools.h.

◆ upperRight() [2/2]

template<class Matrix >
matrix_range<Matrix>& remora::Blocking< Matrix >::upperRight ( )
inline

Returns the upper right block of the matrix.

Definition at line 75 of file Tools.h.


The documentation for this class was generated from the following file: