Struct quest_sys::ComplexMatrix2
source · [−]Expand description
Represents a 2x2 matrix of complex numbers.
In C, a ::ComplexMatrix2 can be initialised by separately specifying the real and imaginary components as nested arrays. \n For example,
ComplexMatrix2 m = {
.real = {{1,2},
{3,4}},
.imag = {{5,6},
{7, 8}}};specifies matrix \f[ m = \begin{pmatrix} 1 + 5,i & 2+6,i \ 3 + 7,i & 4+ 8,i \end{pmatrix} \f]
@see
- ::ComplexMatrix4
- createComplexMatrixN()
@ingroup type @author Balint Koczor @author Tyson Jones (doc)
Fields
real: [[f64; 2]; 2]imag: [[f64; 2]; 2]Trait Implementations
sourceimpl Clone for ComplexMatrix2
impl Clone for ComplexMatrix2
sourcefn clone(&self) -> ComplexMatrix2
fn clone(&self) -> ComplexMatrix2
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl Debug for ComplexMatrix2
impl Debug for ComplexMatrix2
impl Copy for ComplexMatrix2
Auto Trait Implementations
impl RefUnwindSafe for ComplexMatrix2
impl Send for ComplexMatrix2
impl Sync for ComplexMatrix2
impl Unpin for ComplexMatrix2
impl UnwindSafe for ComplexMatrix2
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more