Returns a row slice as a 1 * F matrix, where F is the number of features.
| 163 | |
| 164 | // Returns a row slice as a 1 * F matrix, where F is the number of features. |
| 165 | Eigen::TensorMap<Eigen::Tensor<const float, 2, Eigen::RowMajor>> |
| 166 | RowAsMatrix() const { |
| 167 | return Eigen::TensorMap<Eigen::Tensor<const float, 2, Eigen::RowMajor>>( |
| 168 | data_matrix.data() + row_index * data_matrix.dimension(1), 1, |
| 169 | data_matrix.dimension(1)); |
| 170 | } |
| 171 | |
| 172 | const TTypes<float>::ConstMatrix data_matrix; |
| 173 | const int64 row_index; |
no test coverage detected