mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
add fromArray() and wrapArray().
For example, the following now works:
double a1[3] = {1.0, 3.0, 2.0}, a2[3];
Vector3d::wrapArray(a2) = 2 * Vector3d::fromArray(a1);
cout << Vector3d::fromArray(a2) << endl; // output: 2,6,4
This commit is contained in:
@@ -59,6 +59,8 @@ template<typename MatrixType> class Random;
|
||||
template<typename MatrixType> class Zero;
|
||||
template<typename MatrixType> class Identity;
|
||||
template<typename ExpressionType> class Eval;
|
||||
template<typename MatrixType> class FromArray;
|
||||
template<typename MatrixType> class WrapArray;
|
||||
|
||||
template<typename T> struct ForwardDecl
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user