1 #ifndef _theplu_yat_normalizer_column_normalizer_
2 #define _theplu_yat_normalizer_column_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>
87 void operator()(
const Container2D1& matrix, Container2D2& result)
const
91 YAT_ASSERT(matrix.rows()==result.rows());
92 YAT_ASSERT(matrix.columns()==result.columns());
93 for (
size_t i=0; i<matrix.columns(); ++i)
94 normalizer_(matrix.begin_column(i), matrix.end_column(i),
95 result.begin_column(i));
Concept check for Container2D.
Definition: concept_check.h:59
void operator()(const Container2D1 &matrix, Container2D2 &result) const
Definition: ColumnNormalizer.h:87
Concept check for Mutable Container2D.
Definition: concept_check.h:125
ColumnNormalizer(void)
Default constructor.
Definition: ColumnNormalizer.h:67
T normalizer_type
Definition: ColumnNormalizer.h:62
ColumnNormalizer(T norm)
Constructor taking a functor norm.
Definition: ColumnNormalizer.h:72
Using a functor T to normalize each column.
Definition: ColumnNormalizer.h:56