Matrix |
[SerializableAttribute] public abstract class MatrixStorage<T> : IEquatable<MatrixStorage<T>> where T : struct, new(), IEquatable<T>, IFormattable
The MatrixStorageT type exposes the following members.
| Name | Description | |
|---|---|---|
| MatrixStorageT | Initializes a new instance of the MatrixStorageT class. |
| Name | Description | |
|---|---|---|
| IsDense | True if the matrix storage format is dense. | |
| IsFullyMutable | True if all fields of this matrix can be set to any value. False if some fields are fixed, like on a diagonal matrix. | |
| Item | Gets or sets the value at the given row and column, with range checking. |
| Name | Description | |
|---|---|---|
| AsArray | Gets the underlying two-dimensional array when directly available. | |
| AsColumnArrays | Gets the underlying column arrays when directly available. | |
| AsColumnMajorArray | Gets the underlying column-major array when directly available. | |
| AsRowArrays | Gets the underlying row arrays when directly available. | |
| AsRowMajorArray | Gets the underlying row-major array when directly available. | |
| At(Int32, Int32) | Retrieves the requested element without range checking. | |
| At(Int32, Int32, T) | Sets the element without range checking. | |
| Clear | Sets all matrix entries to zero. | |
| Clear(Int32, Int32, Int32, Int32) | Sets a submatrix to zero. | |
| ClearColumns | Sets the specified columns to zero. | |
| ClearRows | Sets the specified rows to zero. | |
| CopyColumnTo | Copies a column into vector storage. | |
| CopyRowTo | Copies a row into vector storage. | |
| CopySubColumnTo | Copies part of a column into vector storage. | |
| CopySubMatrixTo | Copies a submatrix into another storage instance. | |
| CopySubRowTo | Copies part of a row into vector storage. | |
| CopyTo | Copies this matrix into another storage instance. | |
| Enumerate | Enumerates all matrix values. | |
| EnumerateIndexed | Enumerates all matrix values together with their indices. | |
| EnumerateNonZero | Enumerates all non-zero matrix values. | |
| EnumerateNonZeroIndexed | Enumerates all non-zero matrix values together with their indices. | |
| Equals(MatrixStorageT) | Indicates whether the current object is equal to another object of the same type. | |
| Equals(Object) |
Determines whether the specified Object is equal to the current Object.
(Overrides ObjectEquals(Object)) | |
| Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object) | |
| Find | Finds the first element matching a predicate. | |
| Find2TOther | Finds the first pair of elements from two matrices that matches a predicate. | |
| Fold2TOther, TState | Folds values from this matrix and another matrix into a single state value. | |
| FoldByColumnTU | Folds each column into a target state array. | |
| FoldByRowTU | Folds each row into a target state array. | |
| GetHashCode |
Serves as a hash function for a particular type.
(Overrides ObjectGetHashCode) | |
| GetType | Gets the Type of the current instance. (Inherited from Object) | |
| IsMutableAt | True if the specified field can be set to any value. False if the field is fixed, like an off-diagonal field on a diagonal matrix. | |
| Map2To | Maps pairs of values from two matrices into a target matrix. | |
| MapIndexedInplace | Applies an indexed mapping function to each value in place. | |
| MapIndexedToTU | Maps each indexed value into another matrix storage. | |
| MapInplace | Applies a mapping function to each value in place. | |
| MapSubMatrixIndexedToTU | Maps an indexed submatrix into another matrix storage. | |
| MapToTU | Maps each value into another matrix storage. | |
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object) | |
| ToArray | Creates a rectangular array copy of the matrix data. | |
| ToColumnArrays | Creates jagged column-array copies of the matrix data. | |
| ToColumnMajorArray | Creates a column-major array copy of the matrix data. | |
| ToRowArrays | Creates jagged row-array copies of the matrix data. | |
| ToRowMajorArray | Creates a row-major array copy of the matrix data. | |
| ToString | Returns a string that represents the current object. (Inherited from Object) | |
| TransposeTo | Copies the transpose of this matrix into another storage instance. |
| Name | Description | |
|---|---|---|
| ColumnCount | Gets the number of columns in the matrix. | |
| RowCount | Gets the number of rows in the matrix. | |
| Zero | Gets the default zero value for the storage element type. |