1 #ifndef _theplu_yat_utility_matrix_weighted_ 2 #define _theplu_yat_utility_matrix_weighted_ 31 #include "DataWeight.h" 32 #include "StrideIterator.h" 68 typedef std::vector<DataWeight>::iterator
iterator;
113 double init_weight=1.0);
121 #ifdef YAT_HAVE_RVALUE 160 iterator
begin(
void);
168 const_iterator
begin(
void)
const;
196 const_row_iterator
begin_row(
size_t i)
const;
211 const_iterator
end(
void)
const;
226 row_iterator
end_row(
size_t i);
231 const_row_iterator
end_row(
size_t i)
const;
247 size_t rows(
void)
const;
273 #ifdef YAT_HAVE_RVALUE 287 std::vector<DataWeight> vec_;
size_t columns(void) const
void swap(MatrixWeighted &other)
swap objects
DataWeight value_type
Definition: MatrixWeighted.h:53
The Department of Theoretical Physics namespace as we define it.
void resize(size_t rows, size_t columns)
Resize MatrixWeighted.
DataWeight & reference
Definition: MatrixWeighted.h:58
row_iterator end_row(size_t i)
row_iterator begin_row(size_t i)
StrideIterator< std::vector< DataWeight >::const_iterator > const_column_iterator
Definition: MatrixWeighted.h:84
Holds a pair of data and associated weight.
Definition: DataWeight.h:39
column_iterator end_column(size_t i)
column_iterator begin_column(size_t i)
const DataWeight & const_reference
Definition: MatrixWeighted.h:63
MatrixWeighted(void)
The default constructor.
StrideIterator< std::vector< DataWeight >::iterator > column_iterator
Definition: MatrixWeighted.h:78
DataWeight & operator()(size_t row, size_t column)
Element access operator.
std::vector< DataWeight >::const_iterator const_iterator
Definition: MatrixWeighted.h:73
column_iterator row_iterator
Definition: MatrixWeighted.h:89
std::vector< DataWeight >::iterator iterator
Definition: MatrixWeighted.h:68
Interface to GSL matrix.
Definition: Matrix.h:74
Weighted Matrix.
Definition: MatrixWeighted.h:47
Adaptor using a stride on underlying iterator.
Definition: StrideIterator.h:50
const_column_iterator const_row_iterator
Definition: MatrixWeighted.h:94