1 #ifndef _theplu_yat_utility_matrix_weighted_
2 #define _theplu_yat_utility_matrix_weighted_
28 #include "DataWeight.h"
29 #include "StrideIterator.h"
65 typedef std::vector<DataWeight>::iterator
iterator;
110 double init_weight=1.0);
234 size_t rows(
void)
const;
270 std::vector<DataWeight> vec_;
size_t columns(void) const
void swap(MatrixWeighted &other)
swap objects
DataWeight value_type
Definition: MatrixWeighted.h:50
void resize(size_t rows, size_t columns)
Resize MatrixWeighted.
DataWeight & reference
Definition: MatrixWeighted.h:55
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:81
Holds a pair of data and associated weight.
Definition: DataWeight.h:39
const MatrixWeighted & operator=(const MatrixWeighted &other)
The assignment operator.
column_iterator end_column(size_t i)
column_iterator begin_column(size_t i)
const DataWeight & const_reference
Definition: MatrixWeighted.h:60
MatrixWeighted(void)
The default constructor.
StrideIterator< std::vector< DataWeight >::iterator > column_iterator
Definition: MatrixWeighted.h:75
DataWeight & operator()(size_t row, size_t column)
Element access operator.
std::vector< DataWeight >::const_iterator const_iterator
Definition: MatrixWeighted.h:70
column_iterator row_iterator
Definition: MatrixWeighted.h:86
std::vector< DataWeight >::iterator iterator
Definition: MatrixWeighted.h:65
Interface to GSL matrix.
Definition: Matrix.h:63
Weighted Matrix.
Definition: MatrixWeighted.h:44
Adaptor using a stride on underlying iterator.
Definition: StrideIterator.h:50
const_column_iterator const_row_iterator
Definition: MatrixWeighted.h:91