mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-07-04 04:05:19 +08:00
AsciiQuickReference: added .real(), .imag()
(transplanted from 11462c1a291bdb9c0ac27db25fef364e51632484 )
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…
x
Reference in New Issue
Block a user