26 #include "ProtoMatrix.h"    27 #include "RangoIndice.h"    51     typedef typename MAT::const_reference const_reference;
    53     BoxConstRef(
const MAT &m,
const size_t &f1= 1,
const size_t &c1= 1);
    54     BoxConstRef(
const MAT &m,
const size_t &,
const size_t &,
const size_t &,
const size_t &);
    58     virtual const_reference operator()(
size_t iRow=1,
size_t col=1)
 const    60     void Print(std::ostream &) 
const;
    77   : 
BoxBaseRef(mat,row_range,column_range), m(mat) {}
    93     size_t n_rows= this->getNumberOfRows(),n_columns= this->getNumColumns();
    94     for(
size_t i= 1;i<=n_rows;i++)
    97         if(n_columns > 0) os << (*this)(i,1);
    98     for(
size_t j= 2;j<=n_columns;j++)
    99       os << 
',' << (*
this)(i,j);
   106 inline std::ostream &operator<<(std::ostream &os,const BoxConstRef<MAT> &c)
 Reference to a matrix box. 
Definition: BoxConstRef.h:47
Definition: ProtoMatrix.h:32
size_t offset_f
row offset. 
Definition: BoxConstRef.h:33
BoxBaseRef(const ProtoMatrix &m, const size_t &f1=1, const size_t &c1=1)
Constructor por defecto. 
Definition: BoxConstRef.cc:25
BoxConstRef(const MAT &m, const size_t &f1=1, const size_t &c1=1)
Constructor por defecto. 
Definition: BoxConstRef.h:65
RangoIndice getColumnRange(void) const
Return the column range. 
Definition: BoxConstRef.cc:54
Base class for the references to a matrix box. 
Definition: BoxConstRef.h:30
Rango de variación de un índice, se emplea en BoxConstRef. 
Definition: RangoIndice.h:30
size_t offset_c
column offset. 
Definition: BoxConstRef.h:34
RangoIndice getRowRange(void) const
Return the row range. 
Definition: BoxConstRef.cc:50