pub struct Matrix(/* private fields */);Expand description
A matrix.
Implementations§
Source§impl Matrix
impl Matrix
pub fn height(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn iter(&self) -> impl Iterator<Item = &Vector>
pub fn iter_mut(&mut self) -> impl Iterator<Item = &mut Vector>
pub fn len(&self) -> usize
pub fn transpose(&self) -> Self
pub fn width(&self) -> usize
pub fn zero(height: usize, width: usize) -> Self
Trait Implementations§
Source§impl FromIterator<Vector> for Matrix
impl FromIterator<Vector> for Matrix
Source§impl IntoIterator for Matrix
impl IntoIterator for Matrix
Source§impl<const D: usize, const I: usize, const J: usize, const K: usize, const L: usize> Mul<&TensorTuple<TensorRank2<D, I, J>, TensorRank2<D, K, L>>> for &Matrix
impl<const D: usize, const I: usize, const J: usize, const K: usize, const L: usize> Mul<&TensorTuple<TensorRank2<D, I, J>, TensorRank2<D, K, L>>> for &Matrix
Source§fn mul(
self,
tensor_tuple: &TensorTuple<TensorRank2<D, I, J>, TensorRank2<D, K, L>>,
) -> Self::Output
fn mul( self, tensor_tuple: &TensorTuple<TensorRank2<D, I, J>, TensorRank2<D, K, L>>, ) -> Self::Output
Performs the
* operation. Read moreSource§impl<const D: usize, const I: usize> Mul<&TensorVector<TensorRank1<D, I>>> for &Matrix
impl<const D: usize, const I: usize> Mul<&TensorVector<TensorRank1<D, I>>> for &Matrix
Source§impl TensorVec for Matrix
impl TensorVec for Matrix
Source§fn append(&mut self, other: &mut Self)
fn append(&mut self, other: &mut Self)
Moves all the elements of other into self, leaving other empty.
Source§fn capacity(&self) -> usize
fn capacity(&self) -> usize
Returns the total number of elements the vector can hold without reallocating.
Source§fn new() -> Self
fn new() -> Self
Constructs a new, empty Vec, not allocating until elements are pushed onto it.
Source§fn remove(&mut self, index: usize) -> Self::Item
fn remove(&mut self, index: usize) -> Self::Item
Removes an element from the Vec and returns it, shifting elements to the left.
Source§fn swap_remove(&mut self, index: usize) -> Self::Item
fn swap_remove(&mut self, index: usize) -> Self::Item
Removes an element from the Vec and returns it, replacing it with the last element.
impl StructuralPartialEq for Matrix
Auto Trait Implementations§
impl Freeze for Matrix
impl RefUnwindSafe for Matrix
impl Send for Matrix
impl Sync for Matrix
impl Unpin for Matrix
impl UnwindSafe for Matrix
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