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));