| 228 | } |
| 229 | |
| 230 | void print_impl(std::ostream& o, const std::string& class_name, int indent = 0) const { |
| 231 | o << std::string(indent, ' ') << class_name; |
| 232 | if (this->components_) { |
| 233 | int n = T::RowsAtCompileTime * T::ColsAtCompileTime; |
| 234 | for (int i = 0; i < n; ++i) { |
| 235 | o << " " << (*components_)(i); |
| 236 | } |
| 237 | } |
| 238 | o << std::endl; |
| 239 | } |
| 240 | |
| 241 | virtual ~eigen_base() { |
| 242 | delete this->components_; |