Struct quest_sys::ComplexMatrix2
source · #[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 more