Click or drag to resize

VectorBuilderT Class

Generic linear algebra type builder, for situations where a matrix or vector must be created in a generic way. Usage of generic builders should not be required in normal user code.
Inheritance Hierarchy
SystemObject
  Altaxo.Calc.LinearAlgebraVectorBuilderT

Namespace: Altaxo.Calc.LinearAlgebra
Assembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax
C#
public abstract class VectorBuilder<T>
where T : struct, new(), IEquatable<T>, IFormattable

Type Parameters

T

[Missing <typeparam name="T"/> documentation for "T:Altaxo.Calc.LinearAlgebra.VectorBuilder`1"]

The VectorBuilderT type exposes the following members.

Constructors
 NameDescription
Protected methodVectorBuilderTInitializes a new instance of the VectorBuilderT class
Top
Properties
 NameDescription
Public propertyOne Gets the value of 1.0 for type T.
Public propertyZero Gets the value of 0.0 for type T.
Top
Methods
 NameDescription
Public methodDense(DenseVectorStorageT) Create a new dense vector straight from an initialized vector storage instance. The storage is used directly without copying. Intended for advanced scenarios where you're working directly with storage for performance or interop reasons.
Public methodDense(Int32) Create a dense vector of T with the given size.
Public methodDense(T) Create a dense vector of T that is directly bound to the specified array.
Public methodDense(Int32, T) Create a new dense vector and initialize each value using the provided value.
Public methodDense(Int32, FuncInt32, T) Create a new dense vector and initialize each value using the provided init function.
Public methodDenseOfArray Create a new dense vector as a copy of the given array. This new vector will be independent from the array. A new memory block will be allocated for storing the vector.
Public methodDenseOfEnumerable Create a new dense vector as a copy of the given enumerable. This new vector will be independent from the enumerable. A new memory block will be allocated for storing the vector.
Public methodDenseOfIndexed(Int32, IEnumerableTupleInt32, T) Create a new dense vector as a copy of the given indexed enumerable. Keys must be provided at most once, zero is assumed if a key is omitted. This new vector will be independent from the enumerable. A new memory block will be allocated for storing the vector.
Public methodDenseOfIndexed(Int32, IEnumerableValueTupleInt32, T) Create a new dense vector as a copy of the given indexed enumerable. Keys must be provided at most once, zero is assumed if a key is omitted. This new vector will be independent from the enumerable. A new memory block will be allocated for storing the vector.
Public methodDenseOfVector Create a new dense vector as a copy of the given other vector. This new vector will be independent from the other vector. A new memory block will be allocated for storing the vector.
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
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 methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodOfStorage Create a new vector straight from an initialized matrix storage instance. If you have an instance of a discrete storage type instead, use their direct methods instead.
Public methodRandom(Int32) Create a new dense vector with values sampled from the standard distribution with a system random source.
Public methodRandom(Int32, IContinuousDistribution) Create a new dense vector with values sampled from the provided random distribution.
Public methodRandom(Int32, Int32) Create a new dense vector with values sampled from the standard distribution with a system random source.
Public methodSameAs(VectorT, VectorT) Create a new vector with a type that can represent and is closest to both provided samples and the dimensions of example.
Public methodSameAs(MatrixT, VectorT, Int32) Create a new vector with a type that can represent and is closest to both provided samples.
Public methodSameAs(VectorT, VectorT, Int32) Create a new vector with a type that can represent and is closest to both provided samples.
Public methodSameAsTU(VectorTU) Create a new vector with the same kind and dimension of the provided example.
Public methodSameAsTU(MatrixTU, Int32) Create a new vector with the same kind of the provided example.
Public methodSameAsTU(VectorTU, Int32) Create a new vector with the same kind of the provided example.
Public methodSparse(Int32) Create a sparse vector of T with the given size.
Public methodSparse(SparseVectorStorageT) Create a new sparse vector straight from an initialized vector storage instance. The storage is used directly without copying. Intended for advanced scenarios where you're working directly with storage for performance or interop reasons.
Public methodSparse(Int32, T) Create a new sparse vector and initialize each value using the provided value.
Public methodSparse(Int32, FuncInt32, T) Create a new sparse vector and initialize each value using the provided init function.
Public methodSparseOfArray Create a new sparse vector as a copy of the given array. This new vector will be independent from the array. A new memory block will be allocated for storing the vector.
Public methodSparseOfEnumerable Create a new sparse vector as a copy of the given enumerable. This new vector will be independent from the enumerable. A new memory block will be allocated for storing the vector.
Public methodSparseOfIndexed(Int32, IEnumerableTupleInt32, T) Create a new sparse vector as a copy of the given indexed enumerable. Keys must be provided at most once, zero is assumed if a key is omitted. This new vector will be independent from the enumerable. A new memory block will be allocated for storing the vector.
Public methodSparseOfIndexed(Int32, IEnumerableValueTupleInt32, T) Create a new sparse vector as a copy of the given indexed enumerable. Keys must be provided at most once, zero is assumed if a key is omitted. This new vector will be independent from the enumerable. A new memory block will be allocated for storing the vector.
Public methodSparseOfVector Create a new sparse vector as a copy of the given other vector. This new vector will be independent from the other vector. A new memory block will be allocated for storing the vector.
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Top
See Also