32 #ifndef SHARK_MODELS_NORMALIZER_H 33 #define SHARK_MODELS_NORMALIZER_H 56 template <
class DataType = RealVector>
79 :
m_A(dimension, dimension)
100 {
return "Normalizer"; }
121 return boost::shared_ptr<State>(
new EmptyState());
128 return (
m_A.size() != 0);
169 std::size_t dim =
m_A.size();
172 RealVector param(2 * dim);
178 RealVector param(dim);
188 std::size_t dim =
m_A.size();
218 m_A.resize(dimension);
226 SHARK_CHECK(diagonal.size() == offset.size(),
"[Normalizer::setStructure] dimension conflict");
235 void eval(BatchInputType
const& input, BatchOutputType& output)
const 238 output.resize(input.size1(), input.size2());
247 void eval(BatchInputType
const& input, BatchOutputType& output,
State& state)
const