Sparse |
[SerializableAttribute] public class SparseVectorStorage<T> : VectorStorage<T> where T : struct, new(), IEquatable<T>, IFormattable
The SparseVectorStorageT type exposes the following members.
| Name | Description | |
|---|---|---|
| IsDense |
True if the vector storage format is dense.
(Overrides VectorStorageTIsDense) | |
| Item |
Gets or sets the value at the given index, with range checking.
(Inherited from VectorStorageT) |
| Name | Description | |
|---|---|---|
| AsArray |
Returns the backing array if one is available.
(Inherited from VectorStorageT) | |
| At(Int32) |
Retrieves the requested element without range checking.
(Overrides VectorStorageTAt(Int32)) | |
| At(Int32, T) |
Sets the element without range checking.
(Overrides VectorStorageTAt(Int32, T)) | |
| Clear |
Clears all elements in the storage.
(Overrides VectorStorageTClear) | |
| Clear(Int32, Int32) |
Clears a contiguous range of elements in the storage.
(Overrides VectorStorageTClear(Int32, Int32)) | |
| CopySubVectorTo |
Copies a subvector into another vector storage.
(Inherited from VectorStorageT) | |
| CopyTo |
Copies this storage into another vector storage.
(Inherited from VectorStorageT) | |
| CopyToColumn |
Copies this storage into a column of a matrix storage.
(Inherited from VectorStorageT) | |
| CopyToRow |
Copies this storage into a row of a matrix storage.
(Inherited from VectorStorageT) | |
| CopyToSubColumn |
Copies a range of elements into a column segment of a matrix storage.
(Inherited from VectorStorageT) | |
| CopyToSubRow |
Copies a range of elements into a row segment of a matrix storage.
(Inherited from VectorStorageT) | |
| Enumerate |
Enumerates all values in the storage.
(Overrides VectorStorageTEnumerate) | |
| EnumerateIndexed |
Enumerates all values in the storage together with their indices.
(Overrides VectorStorageTEnumerateIndexed) | |
| EnumerateNonZero |
Enumerates all nonzero values in the storage.
(Overrides VectorStorageTEnumerateNonZero) | |
| EnumerateNonZeroIndexed |
Enumerates all nonzero values in the storage together with their indices.
(Overrides VectorStorageTEnumerateNonZeroIndexed) | |
| Equals(Object) | Determines whether the specified object is equal to the current object. (Inherited from VectorStorageT) | |
| Equals(VectorStorageT) |
Indicates whether the current object is equal to another object of the same type.
(Overrides VectorStorageTEquals(VectorStorageT)) | |
| 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 the specified predicate.
(Overrides VectorStorageTFind(FuncT, Boolean, Zeros)) | |
| Find2TOther |
Finds the first pair of elements from two storages that matches the specified predicate.
(Inherited from VectorStorageT) | |
| Fold2TOther, TState |
Folds two storages into a single accumulated state.
(Inherited from VectorStorageT) | |
| GetHashCode |
Returns a hash code for this instance.
(Overrides VectorStorageTGetHashCode) | |
| GetType | Gets the Type of the current instance. (Inherited from Object) | |
| Map2To |
Maps two storages into a target storage.
(Inherited from VectorStorageT) | |
| MapIndexedInplace |
Applies an indexed mapping function to each element in place.
(Overrides VectorStorageTMapIndexedInplace(FuncInt32, T, T, Zeros)) | |
| MapIndexedToTU |
Maps the storage into another storage using the element index.
(Inherited from VectorStorageT) | |
| MapInplace |
Applies a mapping function to each element in place.
(Overrides VectorStorageTMapInplace(FuncT, T, Zeros)) | |
| MapToTU |
Maps the storage into another storage.
(Inherited from VectorStorageT) | |
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object) | |
| OfEnumerable | Creates a sparse vector storage from an enumerable sequence. | |
| OfIndexedEnumerable(Int32, IEnumerableTupleInt32, T) | Creates a sparse vector storage from indexed values. | |
| OfIndexedEnumerable(Int32, IEnumerableValueTupleInt32, T) | Creates a sparse vector storage from indexed tuple values. | |
| OfInit | Creates a sparse vector storage initialized by an index-based initializer. | |
| OfValue | Creates a sparse vector storage initialized with a constant value. | |
| OfVector | Creates a sparse vector storage from another vector storage. | |
| ToArray |
Copies the storage into a new array.
(Overrides VectorStorageTToArray) | |
| ToString | Returns a string that represents the current object. (Inherited from Object) |
| Name | Description | |
|---|---|---|
| Indices | Array that contains the indices of the non-zero values. | |
| Length |
The length of the vector storage.
(Inherited from VectorStorageT) | |
| ValueCount | Gets the number of non-zero elements in the vector. | |
| Values | Array that contains the non-zero elements of the vector. |