AsciiQuickReference: added .real(), .imag()
(transplanted from 11462c1a29
)
This commit is contained in:
parent
c794099e69
commit
e3ab46b8c9
@ -168,6 +168,8 @@ x.cross(y) // cross(x, y) Requires #include <Eigen/Geometry>
|
|||||||
A.cast<double>(); // double(A)
|
A.cast<double>(); // double(A)
|
||||||
A.cast<float>(); // single(A)
|
A.cast<float>(); // single(A)
|
||||||
A.cast<int>(); // int32(A)
|
A.cast<int>(); // int32(A)
|
||||||
|
A.real(); // real(A)
|
||||||
|
A.imag(); // imag(A)
|
||||||
// if the original type equals destination type, no work is done
|
// if the original type equals destination type, no work is done
|
||||||
|
|
||||||
// Note that for most operations Eigen requires all operands to have the same type:
|
// Note that for most operations Eigen requires all operands to have the same type:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user