CMR  1.3.0
Public Member Functions | List of all members
tu::SubmatrixIndices Class Reference

Indexes a submatrix. More...

#include <matrix.hpp>

Public Member Functions

CMR_EXPORT SubmatrixIndices (const SubmatrixIndices &other)
 Copy constructor. More...
 
CMR_EXPORT SubmatrixIndices (SubmatrixIndices &&other)
 Move constructor. More...
 
CMR_EXPORT SubmatrixIndices (const std::vector< std::size_t > &rows, const std::vector< std::size_t > &columns)
 Constructor from arrays rows and columns. More...
 
CMR_EXPORT SubmatrixIndices (std::size_t row, std::size_t column)
 Constructor for a 1x1 submatrix. More...
 
std::size_t numRows () const
 Returns the number of row indices. More...
 
std::size_t numColumns () const
 Returns the number of column indices. More...
 
const std::vector< std::size_t > & rows () const
 Returns the vector of row indices. More...
 
const std::vector< std::size_t > & columns () const
 Returns the vector of column indices. More...
 

Detailed Description

Indexes a submatrix.

Constructor & Destructor Documentation

◆ SubmatrixIndices() [1/4]

tu::SubmatrixIndices::SubmatrixIndices ( const SubmatrixIndices other)

Copy constructor.

◆ SubmatrixIndices() [2/4]

tu::SubmatrixIndices::SubmatrixIndices ( SubmatrixIndices &&  other)

Move constructor.

◆ SubmatrixIndices() [3/4]

tu::SubmatrixIndices::SubmatrixIndices ( const std::vector< std::size_t > &  rows,
const std::vector< std::size_t > &  columns 
)

Constructor from arrays rows and columns.

◆ SubmatrixIndices() [4/4]

CMR_EXPORT tu::SubmatrixIndices::SubmatrixIndices ( std::size_t  row,
std::size_t  column 
)

Constructor for a 1x1 submatrix.

Constructor for a 1x1 submatrix.

Member Function Documentation

◆ columns()

const std::vector<std::size_t>& tu::SubmatrixIndices::columns ( ) const
inline

Returns the vector of column indices.

◆ numColumns()

std::size_t tu::SubmatrixIndices::numColumns ( ) const
inline

Returns the number of column indices.

◆ numRows()

std::size_t tu::SubmatrixIndices::numRows ( ) const
inline

Returns the number of row indices.

◆ rows()

const std::vector<std::size_t>& tu::SubmatrixIndices::rows ( ) const
inline

Returns the vector of row indices.


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