1 #ifndef YAPOG_MATRIX_HXX
2 # define YAPOG_MATRIX_HXX
15 , data_ (width_ * height_, data)
21 : width_ (copy.width_)
22 , height_ (copy.height_)
43 return data_.begin ();
49 return data_.begin ();
96 for (
SizeType y = 0; y < height_; ++y)
97 for (
SizeType x = 0; x < width_; ++x)
98 resized (x, y) = this->operator() (x, y);
103 template <
typename T>
106 data_[GetIndex (x, y)] = data;
109 template <
typename T>
112 return data_[GetIndex (x, y)];
115 template <
typename T>
118 return data_[GetIndex (x, y)];
121 template <
typename T>
126 return y * width_ + x;
131 #endif // YAPOG_MATRIX_HXX