mirror of
https://gitlab.com/libeigen/eigen.git
synced 2024-12-21 07:19:46 +08:00
4365a48748
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.
3 lines
139 B
C++
3 lines
139 B
C++
cout << VectorXi::LinSpaced(Sequential,7,10,4).transpose() << endl;
|
|
cout << VectorXd::LinSpaced(Sequential,0.0,1.0,5).transpose() << endl;
|