class_Reshaped.cpp
Go to the documentation of this file.
1 #include <Eigen/Core>
2 #include <iostream>
3 using namespace std;
4 using namespace Eigen;
5 
6 template<typename Derived>
9 {
10  return Reshaped<const Derived>(m.derived(), rows, cols);
11 }
12 
13 int main(int, char**)
14 {
15  MatrixXd m(3, 4);
16  m << 1, 4, 7, 10,
17  2, 5, 8, 11,
18  3, 6, 9, 12;
19  cout << m << endl;
21  cout << "Matrix m is:" << endl << m << endl;
22  cout << "Matrix n is:" << endl << n << endl;
23 }
Matrix3f m
const Reshaped< const Derived > reshape_helper(const MatrixBase< Derived > &m, int rows, int cols)
int n
Namespace containing all symbols from the Eigen library.
Definition: jet.h:637
Definition: BFloat16.h:88
int main(int, char **)
A matrix or vector expression mapping an existing expression.
Definition: Ref.h:281
Expression of a fixed-size or dynamic-size reshape.
Definition: Reshaped.h:96
Base class for all dense matrices, vectors, and expressions.
Definition: MatrixBase.h:48


gtsam
Author(s):
autogenerated on Tue Jul 4 2023 02:34:01