Struct totsu_core::MatOp

source ·
pub struct MatOp<'a, L: LinAlgEx> { /* private fields */ }
Expand description

Matrix operator

Matrix struct which borrows a slice of data array and implements Operator.

Implementations§

Creates an instance

Returns MatOp instance.

  • typ: Matrix type and size.
  • array: data array slice. Column-major matrix data shall be stored if MatType::General. Symmetric packed form (the upper-triangular part in column-wise) of matrix data shall be stored if MatType::SymPack.

Trait Implementations§

Converts this type into a shared reference of the (usually inferred) input type.
Formats the value using the given formatter. Read more
Size of \(K\). Read more
Calculate \(\alpha K x + \beta y\). Read more
Calculate \(\alpha K^T x + \beta y\). Read more
Calculate \(\left[ \tau_j + \sum_{i=0}^{m-1}|K_{ij}| \right]_{j=0,…,n-1}\). Read more
Calculate \(\left[ \sigma_i + \sum_{j=0}^{n-1}|K_{ij}| \right]_{i=0,…,m-1}\). Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.