[][src]Struct contest_algorithms::math::num::Matrix

pub struct Matrix { /* fields omitted */ }

Implementations

impl Matrix[src]

pub fn zero(rows: usize, cols: usize) -> Self[src]

pub fn one(cols: usize) -> Self[src]

pub fn vector(vec: &[f64], as_row: bool) -> Self[src]

pub fn pow(&self, exp: u64) -> Self[src]

pub fn rows(&self) -> usize[src]

pub fn transpose(&self) -> Self[src]

pub fn recip(&self) -> Self[src]

Trait Implementations

impl<'_> Add<&'_ Matrix> for &'_ Matrix[src]

type Output = Matrix

The resulting type after applying the + operator.

impl Clone for Matrix[src]

impl Debug for Matrix[src]

impl Index<usize> for Matrix[src]

type Output = [f64]

The returned type after indexing.

impl IndexMut<usize> for Matrix[src]

impl<'_> Mul<&'_ Matrix> for &'_ Matrix[src]

type Output = Matrix

The resulting type after applying the * operator.

impl<'_> Mul<f64> for &'_ Matrix[src]

type Output = Matrix

The resulting type after applying the * operator.

impl<'_> Neg for &'_ Matrix[src]

type Output = Matrix

The resulting type after applying the - operator.

impl PartialEq<Matrix> for Matrix[src]

impl StructuralPartialEq for Matrix[src]

impl<'_> Sub<&'_ Matrix> for &'_ Matrix[src]

type Output = Matrix

The resulting type after applying the - operator.

Auto Trait Implementations

impl RefUnwindSafe for Matrix

impl Send for Matrix

impl Sync for Matrix

impl Unpin for Matrix

impl UnwindSafe for Matrix

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.