Click or drag to resize

DenseVectorStorageT Class

Stores a dense vector in contiguous memory.
Inheritance Hierarchy
SystemObject
  Altaxo.Calc.LinearAlgebra.StorageVectorStorageT
    Altaxo.Calc.LinearAlgebra.StorageDenseVectorStorageT

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

Type Parameters

T
The type of the stored values.

The DenseVectorStorageT type exposes the following members.

Properties
 NameDescription
Public propertyIsDense True if the vector storage format is dense.
(Overrides VectorStorageTIsDense)
Public propertyItem Gets or sets the value at the given index, with range checking.
(Inherited from VectorStorageT)
Top
Methods
 NameDescription
Public methodAsArray Returns the backing array if one is available.
(Overrides VectorStorageTAsArray)
Public methodAt(Int32) Retrieves the requested element without range checking.
(Overrides VectorStorageTAt(Int32))
Public methodAt(Int32, T) Sets the element without range checking.
(Overrides VectorStorageTAt(Int32, T))
Public methodClear Clears all elements in the storage.
(Overrides VectorStorageTClear)
Public methodClear(Int32, Int32) Clears a contiguous range of elements in the storage.
(Overrides VectorStorageTClear(Int32, Int32))
Public methodCopySubVectorTo Copies a subvector into another vector storage.
(Inherited from VectorStorageT)
Public methodCopyTo Copies this storage into another vector storage.
(Inherited from VectorStorageT)
Public methodCopyToColumn Copies this storage into a column of a matrix storage.
(Inherited from VectorStorageT)
Public methodCopyToRow Copies this storage into a row of a matrix storage.
(Inherited from VectorStorageT)
Public methodCopyToSubColumn Copies a range of elements into a column segment of a matrix storage.
(Inherited from VectorStorageT)
Public methodCopyToSubRow Copies a range of elements into a row segment of a matrix storage.
(Inherited from VectorStorageT)
Public methodEnumerate Enumerates all values in the storage.
(Overrides VectorStorageTEnumerate)
Public methodEnumerateIndexed Enumerates all values in the storage together with their indices.
(Overrides VectorStorageTEnumerateIndexed)
Public methodEnumerateNonZero Enumerates all nonzero values in the storage.
(Overrides VectorStorageTEnumerateNonZero)
Public methodEnumerateNonZeroIndexed Enumerates all nonzero values in the storage together with their indices.
(Overrides VectorStorageTEnumerateNonZeroIndexed)
Public methodEquals(Object)Determines whether the specified object is equal to the current object.
(Inherited from VectorStorageT)
Public methodEquals(VectorStorageT) Indicates whether the current object is equal to another object of the same type.
(Inherited from VectorStorageT)
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.
(Overrides VectorStorageTFind(FuncT, Boolean, Zeros))
Public methodFind2TOther Finds the first pair of elements from two storages that matches the specified predicate.
(Inherited from VectorStorageT)
Public methodFold2TOther, TState Folds two storages into a single accumulated state.
(Inherited from VectorStorageT)
Public methodGetHashCodeServes as the default hash function.
(Inherited from VectorStorageT)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodMap2To Maps two storages into a target storage.
(Inherited from VectorStorageT)
Public methodMapIndexedInplace Applies an indexed mapping function to each element in place.
(Overrides VectorStorageTMapIndexedInplace(FuncInt32, T, T, Zeros))
Public methodMapIndexedToTU Maps the storage into another storage using the element index.
(Inherited from VectorStorageT)
Public methodMapInplace Applies a mapping function to each element in place.
(Overrides VectorStorageTMapInplace(FuncT, T, Zeros))
Public methodMapToTU Maps the storage into another storage.
(Inherited from VectorStorageT)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodStatic memberOfEnumerable Creates a dense vector storage from an enumerable sequence.
Public methodStatic memberOfIndexedEnumerable(Int32, IEnumerableTupleInt32, T) Creates a dense vector storage from indexed values.
Public methodStatic memberOfIndexedEnumerable(Int32, IEnumerableValueTupleInt32, T) Creates a dense vector storage from indexed tuple values.
Public methodStatic memberOfInit Creates a dense vector storage initialized by an index-based initializer.
Public methodStatic memberOfValue Creates a dense vector storage initialized with a constant value.
Public methodStatic memberOfVector Creates a dense vector storage from another vector storage.
Public methodToArray Copies the storage into a new array.
(Overrides VectorStorageTToArray)
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Top
Fields
 NameDescription
Public fieldData Gets the backing array for the vector values.
Public fieldLength The length of the vector storage.
(Inherited from VectorStorageT)
Top
See Also