pub struct CsMatrix<T: Scalar, R: Dim = Dynamic, C: Dim = Dynamic, S: CsStorage<T, R, C> = CsVecStorage<T, R, C>> { /* private fields */ }
Expand description

A compressed sparse column matrix.

Implementations

Creates a new compressed sparse column matrix with the specified dimension and nvals possible non-zero values.

The size of the data buffer.

The number of rows of this matrix.

The number of rows of this matrix.

The shape of this matrix.

Whether this matrix is square or not.

Should always return true.

This method is generally used for debugging and should typically not be called in user code. This checks that the row inner indices of this matrix are sorted. It takes O(n) time, where nisself.len(). All operations of CSC matrices on nalgebra assume, and will return, sorted indices. If at any time this is_sortedmethod returnsfalse`, then, something went wrong and an issue should be open on the nalgebra repository with details on how to reproduce this.

Computes the transpose of this sparse matrix.

Iterator through all the mutable values of this sparse matrix.

Creates a column-compressed sparse matrix from a sparse matrix in triplet form.

Creates a column-compressed sparse matrix from a sparse matrix in triplet form.

Solve a lower-triangular system with a dense right-hand-side.

Solve a lower-triangular system with self transposed and a dense right-hand-side.

Solve in-place a lower-triangular system with a dense right-hand-side.

Solve a lower-triangular system with self transposed and a dense right-hand-side.

Solve a lower-triangular system with a sparse right-hand-side.

Trait Implementations

The resulting type after applying the + operator.
Performs the + operation. Read more
Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Converts to this type from the input type.
Converts to this type from the input type.
The resulting type after applying the * operator.
Performs the * operation. Read more
The resulting type after applying the * operator.
Performs the * operation. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
The archived version of the pointer metadata for this type.
Converts some archived metadata to the pointer metadata for itself.
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
Deserializes using the given deserializer

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 for metadata in pointers and references to Self.
Should always be Self
The inverse inclusion map: attempts to construct self from the equivalent element of its superset. Read more
Checks if self is actually part of its subset T (and can be converted to it).
Use with care! Same as self.to_subset but without any property checks. Always succeeds.
The inclusion map: converts self to the equivalent element of its superset.
The inverse inclusion map: attempts to construct self from the equivalent element of its superset. Read more
Checks if self is actually part of its subset T (and can be converted to it).
Use with care! Same as self.to_subset but without any property checks. Always succeeds.
The inclusion map: converts self to the equivalent element of its superset.
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
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.