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 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl 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 T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more