CustomizingEigen_Inheritance.cpp File Reference

Go to the source code of this file.

Functions

int main ()
 

Function Documentation

◆ main()

int main ( )

Definition at line 24 of file CustomizingEigen_Inheritance.cpp.

25 {
26  MyVectorType v = MyVectorType::Ones(4);
27  v(2) += 10;
28  v = 2 * v;
29  std::cout << v.transpose() << std::endl;
30 }
Array< int, Dynamic, 1 > v
static const ConstantReturnType Ones(Index rows, Index cols)