#[repr(C)]pub struct ComplexMatrix2 {
pub real: [[f64; 2]; 2],
pub imag: [[f64; 2]; 2],
}
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§
Source§impl Clone for ComplexMatrix2
impl Clone for ComplexMatrix2
Source§fn clone(&self) -> ComplexMatrix2
fn clone(&self) -> ComplexMatrix2
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ComplexMatrix2
impl Debug for ComplexMatrix2
impl Copy for ComplexMatrix2
Auto Trait Implementations§
impl Freeze for ComplexMatrix2
impl RefUnwindSafe for ComplexMatrix2
impl Send for ComplexMatrix2
impl Sync for ComplexMatrix2
impl Unpin for ComplexMatrix2
impl UnwindSafe for ComplexMatrix2
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more