pub struct Mat<T> { /* private fields */ }
Implementations§
source§impl<T> Mat<T>
impl<T> Mat<T>
pub fn new_from_data(rows: usize, cols: usize, data: Vec<T>) -> Mat<T>
pub fn new(n: usize, m: usize) -> Mat<T>
pub fn rows(&self) -> usize
pub fn cols(&self) -> usize
sourcepub unsafe fn set_rows(&mut self, n: usize)
pub unsafe fn set_rows(&mut self, n: usize)
Set Matrix Rows Manually
§Safety
This only sets the value for rows, and does not include any guarantees that the number of elements is equal to rows x columns after the operation takes place.
Trait Implementations§
source§impl<T> Matrix<T> for Mat<T>
impl<T> Matrix<T> for Mat<T>
source§impl<T: PartialEq> PartialEq for Mat<T>
impl<T: PartialEq> PartialEq for Mat<T>
impl<T> StructuralPartialEq for Mat<T>
Auto Trait Implementations§
impl<T> RefUnwindSafe for Mat<T>where
T: RefUnwindSafe,
impl<T> Send for Mat<T>where
T: Send,
impl<T> Sync for Mat<T>where
T: Sync,
impl<T> Unpin for Mat<T>where
T: Unpin,
impl<T> UnwindSafe for Mat<T>where
T: UnwindSafe,
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