class_FixedReshaped.cpp File Reference

Go to the source code of this file.

Functions

int main (int, char **)
 
template<typename Derived >
Eigen::Reshaped< Derived, 4, 2 > reshape_helper (Eigen::MatrixBase< Derived > &m)
 

Function Documentation

◆ main()

int main ( int  ,
char **   
)

Definition at line 11 of file class_FixedReshaped.cpp.

12 {
13  Eigen::MatrixXd m(2, 4);
14  m << 1, 2, 3, 4,
15  5, 6, 7, 8;
17  std::cout << "matrix m is:" << std::endl << m << std::endl;
18  std::cout << "matrix n is:" << std::endl << n << std::endl;
19  return 0;
20 }
Matrix3f m
int n
The matrix class, also used for vectors and row-vectors.
Definition: Matrix.h:182
Eigen::Reshaped< Derived, 4, 2 > reshape_helper(Eigen::MatrixBase< Derived > &m)

◆ reshape_helper()

template<typename Derived >
Eigen::Reshaped<Derived, 4, 2> reshape_helper ( Eigen::MatrixBase< Derived > &  m)

Definition at line 6 of file class_FixedReshaped.cpp.

7 {
8  return Eigen::Reshaped<Derived, 4, 2>(m.derived());
9 }
Expression of a fixed-size or dynamic-size reshape.
Definition: Reshaped.h:99