11 #ifndef BEMBEL_SRC_SPLINE_UNROLL_HPP_
12 #define BEMBEL_SRC_SPLINE_UNROLL_HPP_
23 inline Eigen::Matrix<T, -1, 1>
Unroll(
24 const Eigen::Matrix<T, -1, -1> &input_matrix) noexcept {
25 const int nx = input_matrix.cols();
26 const int ny = input_matrix.rows();
28 Eigen::Matrix<T, -1, 1> out(nx * ny, 1);
29 for (
int i = 0; i < nx; i++) {
30 for (
int j = 0; j < ny; j++) out(i * ny + j) = input_matrix(j, i);
Eigen::Matrix< T, -1, 1 > Unroll(const Eigen::Matrix< T, -1, -1 > &input_matrix) noexcept
Tiny helper functions.
Routines for the evalutation of pointwise errors.