pub struct ComplexMatrix { /* private fields */ }Implementations§
Source§impl ComplexMatrix
impl ComplexMatrix
pub fn new( rows: usize, cols: usize, data: Vec<Complex64>, ) -> Result<Self, SolverError>
pub fn zeros(rows: usize, cols: usize) -> Result<Self, SolverError>
pub fn identity(n: usize) -> Result<Self, SolverError>
pub fn rows(&self) -> usize
pub fn columns(&self) -> usize
pub fn values(&self) -> &[Complex64]
pub fn adjoint(&self) -> Result<Self, SolverError>
Trait Implementations§
Source§impl Clone for ComplexMatrix
impl Clone for ComplexMatrix
Source§fn clone(&self) -> ComplexMatrix
fn clone(&self) -> ComplexMatrix
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ComplexMatrix
impl Debug for ComplexMatrix
Source§impl PartialEq for ComplexMatrix
impl PartialEq for ComplexMatrix
impl StructuralPartialEq for ComplexMatrix
Auto Trait Implementations§
impl Freeze for ComplexMatrix
impl RefUnwindSafe for ComplexMatrix
impl Send for ComplexMatrix
impl Sync for ComplexMatrix
impl Unpin for ComplexMatrix
impl UnsafeUnpin for ComplexMatrix
impl UnwindSafe for ComplexMatrix
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