This website requires JavaScript.
Explore
Help
Sign In
mirror
/
eigen
Watch
2
Star
0
Fork
0
You've already forked eigen
mirror of
https://gitlab.com/libeigen/eigen.git
synced
2024-12-27 07:29:52 +08:00
Code
Issues
Packages
Projects
Releases
Wiki
Activity
1de769d122
eigen
/
doc
/
snippets
/
DenseBase_setLinSpaced.cpp
4 lines
72 B
C++
Raw
Normal View
History
Unescape
Escape
Added an ei_linspaced_op to create linearly spaced vectors. Added setLinSpaced/LinSpaced functionality to DenseBase. Improved vectorized assignment - overcomes MSVC optimization issues. CwiseNullaryOp is now requiring functors to offer 1D and 2D operators. Adapted existing functors to the new CwiseNullaryOp requirements. Added ei_plset to create packages as [a, a+1, ..., a+size]. Added more nullaray unit tests.
2010-01-27 02:42:17 +08:00
VectorXf
v
;
Unified LinSpaced in order to be conform with other setter methods as e.g. Constant.
2010-07-22 20:04:00 +08:00
v
.
setLinSpaced
(
5
,
0.5f
,
1.5f
)
.
transpose
(
)
;
Added an ei_linspaced_op to create linearly spaced vectors. Added setLinSpaced/LinSpaced functionality to DenseBase. Improved vectorized assignment - overcomes MSVC optimization issues. CwiseNullaryOp is now requiring functors to offer 1D and 2D operators. Adapted existing functors to the new CwiseNullaryOp requirements. Added ei_plset to create packages as [a, a+1, ..., a+size]. Added more nullaray unit tests.
2010-01-27 02:42:17 +08:00
cout
<
<
v
<
<
endl
;
Reference in New Issue
Copy Permalink