1 #ifndef _theplu_yat_normalizer_row_normalizer_
2 #define _theplu_yat_normalizer_row_normalizer_
26 #include "yat/utility/yat_assert.h"
27 #include "yat/utility/concept_check.h"
29 #include <boost/concept_check.hpp>
36 namespace normalizer {
73 : normalizer_(norm) {}
86 template<
class Container2D1,
class Container2D2>
88 Container2D2& result)
const
92 using utility::yat_assert;
93 YAT_ASSERT(matrix.rows()==result.rows());
94 YAT_ASSERT(matrix.columns()==result.columns());
95 for (
size_t i=0; i<matrix.rows(); ++i)
96 normalizer_(matrix.begin_row(i), matrix.end_row(i),
RowNormalizer(void)
Default constructor.
Definition: RowNormalizer.h:67
Concept check for Container2D.
Definition: concept_check.h:59
Concept check for Mutable Container2D.
Definition: concept_check.h:125
RowNormalizer(T norm)
Constructor taking a functor norm.
Definition: RowNormalizer.h:72
T normalizer_type
Definition: RowNormalizer.h:62
Using a functor T to normalize each column.
Definition: RowNormalizer.h:56
void operator()(const Container2D1 &matrix, Container2D2 &result) const
Definition: RowNormalizer.h:87