Eigen 3.4.90
doc
examples
Functions
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
}
v
Array< int, Dynamic, 1 > v
Definition:
Array_initializer_list_vector_cxx11.cpp:1
Eigen::DenseBase::Ones
static const ConstantReturnType Ones(Index rows, Index cols)
Definition:
CwiseNullaryOp.h:659