Click or drag to resize

VectorStorageT Class

Represents the storage backing for a vector.
Inheritance Hierarchy

Namespace: Altaxo.Calc.LinearAlgebra.Storage
Assembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3572.0 (4.8.3572.0)
Syntax
C#
[SerializableAttribute]
public abstract class VectorStorage<T> : IEquatable<VectorStorage<T>>
where T : struct, new(), IEquatable<T>, IFormattable

Type Parameters

T
The element type.

The VectorStorageT type exposes the following members.

Constructors
 NameDescription
Protected methodVectorStorageT Initializes a new instance of the VectorStorageT class.
Top
Properties
 NameDescription
Public propertyIsDense True if the vector storage format is dense.
Public propertyItem Gets or sets the value at the given index, with range checking.
Top
Methods
 NameDescription
Public methodAsArray Returns the backing array if one is available.
Public methodAt(Int32) Retrieves the requested element without range checking.
Public methodAt(Int32, T) Sets the element without range checking.
Public methodClear Clears all elements in the storage.
Public methodClear(Int32, Int32) Clears a contiguous range of elements in the storage.
Public methodCopySubVectorTo Copies a subvector into another vector storage.
Public methodCopyTo Copies this storage into another vector storage.
Public methodCopyToColumn Copies this storage into a column of a matrix storage.
Public methodCopyToRow Copies this storage into a row of a matrix storage.
Public methodCopyToSubColumn Copies a range of elements into a column segment of a matrix storage.
Public methodCopyToSubRow Copies a range of elements into a row segment of a matrix storage.
Public methodEnumerate Enumerates all values in the storage.
Public methodEnumerateIndexed Enumerates all values in the storage together with their indices.
Public methodEnumerateNonZero Enumerates all nonzero values in the storage.
Public methodEnumerateNonZeroIndexed Enumerates all nonzero values in the storage together with their indices.
Public methodEquals(Object)Determines whether the specified object is equal to the current object.
(Overrides ObjectEquals(Object))
Public methodEquals(VectorStorageT) Indicates whether the current object is equal to another object of the same type.
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Public methodFind Finds the first element matching the specified predicate.
Public methodFind2TOther Finds the first pair of elements from two storages that matches the specified predicate.
Public methodFold2TOther, TState Folds two storages into a single accumulated state.
Public methodGetHashCodeServes as the default hash function.
(Overrides ObjectGetHashCode)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodMap2To Maps two storages into a target storage.
Public methodMapIndexedInplace Applies an indexed mapping function to each element in place.
Public methodMapIndexedToTU Maps the storage into another storage using the element index.
Public methodMapInplace Applies a mapping function to each element in place.
Public methodMapToTU Maps the storage into another storage.
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodToArray Copies the storage into a new array.
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Top
Fields
 NameDescription
Public fieldLength The length of the vector storage.
Protected fieldStatic memberZero The zero value for the element type.
Top
See Also