111 InternalState& s = state.
toState<InternalState>();
115 s.resize(sizeX1,sizeX2,
m_base);
116 result.resize(sizeX1,sizeX2);
118 for(std::size_t i = 0; i != sizeX1; ++i){
119 for(std::size_t j = 0; j != sizeX2; ++j){
121 result(i,j) = sum(response)/(response.size1() * response.size2());
143 RealMatrix
const& coefficients,
148 InternalState
const& s = state.
toState<InternalState>();
152 for(std::size_t i = 0; i != sizeX1; ++i){
153 for(std::size_t j = 0; j != sizeX2; ++j){
158 RealMatrix setCoeff(size1,size2, coefficients(i,j)/(size1 * size2));
161 noalias(gradient) += grad;