xc
Public Types | Public Member Functions | Protected Member Functions | List of all members
IndicesMatrix Class Reference

Matrix of indices. More...

#include <IndicesMatrix.h>

Inheritance diagram for IndicesMatrix:
Inheritance graph
[legend]
Collaboration diagram for IndicesMatrix:
Collaboration graph
[legend]

Public Types

typedef TMatrix< VIndices, std::vector< VIndices > > m_indices
 
- Public Types inherited from TMatrix< VIndices, std::vector< VIndices > >
typedef std::list< VIndiceslst_T
 
typedef std::vector< VIndices > ::iterator iterator
 
typedef std::vector< VIndices > ::const_iterator const_iterator
 
typedef std::vector< VIndices > ::value_type value_type
 
typedef std::vector< VIndices > ::reference reference
 
typedef std::vector< VIndices > ::const_reference const_reference
 
typedef BoxConstRef< TMatrix< VIndices, std::vector< VIndices > > > box_const_ref
 
typedef RowConstRef< TMatrix< VIndices, std::vector< VIndices > > > row_const_ref
 
typedef ColumnConstRef< TMatrix< VIndices, std::vector< VIndices > > > const_ref_col
 

Public Member Functions

 IndicesMatrix (const size_t &f=1, const size_t &c=1, const VIndices &p=VIndices())
 
 IndicesMatrix (const m_int &, const std::vector< VIndices > &)
 Constructor. More...
 
IndicesMatrix getBox (size_t f1, size_t c1, size_t f2, size_t c2) const
 Return the row cuyos índices is being passed as parameter.
 
IndicesMatrix getRow (size_t) const
 Return the iRow-th row.
 
IndicesMatrix getColumn (size_t) const
 Return the iCol-th column.
 
void Offset (const VIndices &)
 Agrega a todos los miembros el valor que is being passed as parameter. More...
 
- Public Member Functions inherited from TMatrix< VIndices, std::vector< VIndices > >
 TMatrix (size_t rows=1, size_t n_columns=1)
 Constructor por defecto.
 
 TMatrix (size_t n_rows, size_t n_columns, VIndices val)
 Constructor.
 
 TMatrix (const size_t &n_rows, const size_t &n_columns, InputIterator b, InputIterator e)
 Constructor con lista inicialización.
 
 TMatrix (const TMatrix< VIndices, std::vector< VIndices > > &)
 Constructor de copia.
 
TMatrix< VIndices, std::vector< VIndices > > & operator= (const TMatrix< VIndices, std::vector< VIndices > > &m)
 Assignment operator.
 
TMatrix< VIndices, std::vector< VIndices > > & operator= (const VIndices &n)
 
virtual bool operator== (const TMatrix< VIndices, std::vector< VIndices > > &) const
 Comparison operator.
 
void resize (size_t n_rows, size_t n_columns, VIndices val)
 Assignment operator.
 
size_t size (void) const
 
const std::vector< VIndices > & getVector (void) const
 
const_reference front () const
 
reference front ()
 
const_reference back () const
 
reference back ()
 
const_iterator begin () const
 
iterator begin ()
 
const_iterator end () const
 
iterator end ()
 
TMatrix< VIndices, std::vector< VIndices > > & Con (const VIndices &t)
 
virtual reference operator() (size_t iRow=1, size_t col=1)
 
virtual const_reference operator() (size_t iRow=1, size_t col=1) const
 
virtual reference at (size_t iRow=1, size_t col=1)
 
virtual const_reference at (size_t iRow=1, size_t col=1) const
 
void assign (size_t row, size_t col, const VIndices &value)
 Put the box int the position (f,c) of this matrix.
 
void swap (size_t f1, size_t c1, size_t f2, size_t c2)
 
TMatrix< VIndices, std::vector< VIndices > > & Trn (void)
 
TMatrix< VIndices, std::vector< VIndices > > GetTrn (void) const
 
TMatrix< VIndices, std::vector< VIndices > > getBox (size_t f1, size_t c1, size_t f2, size_t c2) const
 
box_const_ref GetBoxConstRef (size_t f1, size_t c1, size_t f2, size_t c2) const
 
box_const_ref GetBoxConstRef (const RangoIndice &row_range, const RangoIndice &column_range) const
 
box_const_ref GetBoxConstRef (size_t f=1, size_t c=1) const
 
TMatrix< VIndices, std::vector< VIndices > > getRow (size_t iRow) const
 
row_const_ref getRowConstRef (size_t f, size_t c1, size_t c2) const
 
row_const_ref getRowConstRef (size_t f, const RangoIndice &column_range) const
 
row_const_ref getRowConstRef (size_t f=1, size_t c=1) const
 
const_ref_col getColumnConstRef (size_t c, size_t f1, size_t f2) const
 
const_ref_col getColumnConstRef (const RangoIndice &row_range, size_t c) const
 
const_ref_col getColumnConstRef (size_t c=1, size_t f=1) const
 
TMatrix< VIndices, std::vector< VIndices > > getColumn (size_t col) const
 
TMatrix< VIndices, std::vector< VIndices > > GetMenor (size_t f, size_t c) const
 Return the minor of the matrix that corresponds to the row and the column arguments. More...
 
void putBox (size_t f, size_t c, const TMatrix< VIndices, std::vector< VIndices > > &)
 Put the box int the position (f,c) of this matrix.
 
void putRow (size_t iRow, const TMatrix< VIndices, std::vector< VIndices > > &f)
 
void PutCol (size_t col, const TMatrix< VIndices, std::vector< VIndices > > &c)
 
void OrlaCol (const TMatrix< VIndices, std::vector< VIndices > > &c)
 
void decorateRow (const TMatrix< VIndices, std::vector< VIndices > > &f)
 
void swapRows (size_t f1, size_t f2)
 
void swapColumns (size_t c1, size_t c2)
 
virtual void Print (std::ostream &) const
 
virtual void Input (std::istream &)
 Lectura desde istream.
 
virtual void Input (const std::string &)
 Lectura desde string.
 
- Public Member Functions inherited from ProtoMatrix
 ProtoMatrix (size_t n_rows=1, size_t n_columns=1)
 
 ProtoMatrix (const ProtoMatrix &other)
 
ProtoMatrixoperator= (const ProtoMatrix &m)
 
virtual bool operator== (const ProtoMatrix &other) const
 
virtual void resize (size_t n_rows, size_t n_columns)
 
virtual size_t Tam (void)
 
size_t getNumberOfRows (void) const
 
size_t getNumberOfColumns (void) const
 
bool CheckIndices (const size_t &f, const size_t &c) const
 
bool interior (const size_t &i, const size_t &j) const
 Return true if the indices correspond to a component.
 
int Cuadrada (void) const
 
bool isRow (void) const
 
bool isColumn (void) const
 

Protected Member Functions

 IndicesMatrix (const IndicesMatrix &mp, size_t &f1, size_t &c1, size_t &f2, size_t &c2)
 
- Protected Member Functions inherited from TMatrix< VIndices, std::vector< VIndices > >
virtual size_t Indice (const size_t &iRow, const size_t &iCol) const
 
bool equal_to (const TMatrix< VIndices, std::vector< VIndices > > &m2) const
 
 TMatrix (const TMatrix< VIndices, std::vector< VIndices > > &orig, size_t f1, size_t c1, size_t f2, size_t c2)
 
- Protected Member Functions inherited from ProtoMatrix
void PutDim (size_t nRows, size_t nCols)
 
void inic (size_t n_rows, size_t n_columns)
 
virtual bool check_range (const size_t &iRow, const size_t &col) const
 
void check_put_box (size_t f, size_t c, const ProtoMatrix &box) const
 
void check_get_box (size_t f1, size_t c1, size_t f2, size_t c2) const
 
void check_sto_sum (const ProtoMatrix &m) const
 
void check_sto_dif (const ProtoMatrix &m) const
 
void check_traza (void) const
 

Additional Inherited Members

- Protected Attributes inherited from ProtoMatrix
size_t n_rows
 
size_t n_columns
 

Detailed Description

Matrix of indices.

I'ts used to express a set of positions by its indices, i. e. : [[1,2][2,2][3,2] [1,1][2,1][2,3]]

Constructor & Destructor Documentation

◆ IndicesMatrix()

IndicesMatrix::IndicesMatrix ( const m_int posiciones,
const std::vector< VIndices > &  indices 
)

Constructor.

Parameters
posicionesmatrix in which each row is a vector [j,k] that points to the position (row= j, column= k) of the vector that occupies the i row in indices, stated otherwise (*this)(j,k)= indices[i].
indicesmatrix which rows are the indexes vectors the are disposed in this matrix.

Member Function Documentation

◆ Offset()

void IndicesMatrix::Offset ( const VIndices vi)

Agrega a todos los miembros el valor que is being passed as parameter.


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