Click or drag to resize

CreateVector Class

[Missing <summary> documentation for "T:Altaxo.Calc.LinearAlgebra.CreateVector"]

Inheritance Hierarchy
SystemObject
  Altaxo.Calc.LinearAlgebraCreateVector

Namespace: Altaxo.Calc.LinearAlgebra
Assembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax
C#
public static class CreateVector

The CreateVector type exposes the following members.

Methods
 NameDescription
Public methodStatic memberDenseT(T) Create a dense vector of T that is directly bound to the specified array.
Public methodStatic memberDenseT(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 methodStatic memberDenseT(Int32) Create a dense vector of T with the given size.
Public methodStatic memberDenseT(Int32, T) Create a new dense vector and initialize each value using the provided value.
Public methodStatic memberDenseT(Int32, FuncInt32, T) Create a new dense vector and initialize each value using the provided init function.
Public methodStatic memberDenseOfArrayT 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 methodStatic memberDenseOfEnumerableT 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 methodStatic memberDenseOfIndexedT(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 methodStatic memberDenseOfIndexedT(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 methodStatic memberDenseOfVectorT 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 methodStatic memberRandomT(Int32) Create a new dense vector with values sampled from the standard distribution with a system random source.
Public methodStatic memberRandomT(Int32, IContinuousDistribution) Create a new dense vector with values sampled from the provided random distribution.
Public methodStatic memberRandomT(Int32, Int32) Create a new dense vector with values sampled from the standard distribution with a system random source.
Public methodStatic memberSameAsT(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 methodStatic memberSameAsT(MatrixT, VectorT, Int32) Create a new vector with a type that can represent and is closest to both provided samples.
Public methodStatic memberSameAsT(VectorT, VectorT, Int32) Create a new vector with a type that can represent and is closest to both provided samples.
Public methodStatic memberSameAsT, TU(VectorTU) Create a new vector with the same kind and dimension of the provided example.
Public methodStatic memberSameAsT, TU(MatrixTU, Int32) Create a new vector with the same kind of the provided example.
Public methodStatic memberSameAsT, TU(VectorTU, Int32) Create a new vector with the same kind of the provided example.
Public methodStatic memberSparseT(Int32) Create a sparse vector of T with the given size.
Public methodStatic memberSparseT(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 methodStatic memberSparseT(Int32, T) Create a new sparse vector and initialize each value using the provided value.
Public methodStatic memberSparseT(Int32, FuncInt32, T) Create a new sparse vector and initialize each value using the provided init function.
Public methodStatic memberSparseOfArrayT 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 methodStatic memberSparseOfEnumerableT 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 methodStatic memberSparseOfIndexedT(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 methodStatic memberSparseOfIndexedT(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 methodStatic memberSparseOfVectorT 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 methodStatic memberWithStorageT 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.
Top
See Also