mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
Merge WrapArray into FromArray. Less code. The downside is that we're using one more
const_cast. But I think that anyway trying to maintain const strictness in Eigen2 is not worth the hassle. Konstantin: so the code snippet I sent you won't work anymore, replace wrapArray with fromArray. CCMAIL:konst.heil@stud.uni-heidelberg.de
This commit is contained in:
@@ -32,10 +32,5 @@ int main(int, char **)
|
||||
cout << "Column 1 of m2 is:" << endl << m2.col(1) << endl;
|
||||
cout << "The transpose of m2 is:" << endl << m2.transpose() << endl;
|
||||
cout << "The matrix m2 with row 0 and column 1 removed is:" << endl << m2.minor(0,1) << endl;
|
||||
|
||||
double a1[3] = {1.0, 3.0, 2.0};
|
||||
double a2[3];
|
||||
Vector3d::wrapArray(a2) = 2 * Vector3d::fromArray(a1);
|
||||
cout << Vector3d::fromArray(a2) << endl;
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user