Click or drag to resize

SparseVector Class

A vector with sparse storage, intended for very large vectors where most of the cells are zero.
Inheritance Hierarchy
SystemObject
  Altaxo.Calc.LinearAlgebraVectorSingle
    Altaxo.Calc.LinearAlgebra.SingleVector
      Altaxo.Calc.LinearAlgebra.SingleSparseVector

Namespace: Altaxo.Calc.LinearAlgebra.Single
Assembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax
C#
[SerializableAttribute]
public class SparseVector : Vector

The SparseVector type exposes the following members.

Constructors
 NameDescription
Public methodSparseVector(Int32) Create a new sparse vector with the given length. All cells of the vector will be initialized to zero.
Public methodSparseVector(SparseVectorStorageSingle) 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.
Top
Properties
 NameDescription
Public propertyCount Gets the length or number of dimensions of this vector.
(Inherited from VectorT)
Public propertyItemGets or sets the value at the given index.
(Inherited from VectorT)
Public propertyNonZerosCount Gets the number of non zero elements in the vector.
Public propertyStorage Gets the raw vector data storage.
(Inherited from VectorT)
Top
Methods
 NameDescription
Public methodAbsoluteMaximum Returns the value of the absolute maximum element.
(Inherited from Vector)
Public methodAbsoluteMaximumIndex Returns the index of the absolute maximum element.
(Overrides VectorAbsoluteMaximumIndex)
Public methodAbsoluteMinimum Returns the value of the absolute minimum element.
(Inherited from Vector)
Public methodAbsoluteMinimumIndex Returns the index of the absolute minimum element.
(Overrides VectorAbsoluteMinimumIndex)
Public methodAdd(T) Adds a scalar to each element of the vector.
(Inherited from VectorT)
Public methodAdd(VectorT) Adds another vector to this vector.
(Inherited from VectorT)
Public methodAdd(T, VectorT) Adds a scalar to each element of the vector and stores the result in the result vector.
(Inherited from VectorT)
Public methodAdd(VectorT, VectorT) Adds another vector to this vector and stores the result into the result vector.
(Inherited from VectorT)
Public methodAsArray Returns the internal array of this vector if, and only if, this vector is stored by such an array internally. Otherwise returns null. Changes to the returned array and the vector will affect each other. Use ToArray instead if you always need an independent array.
(Inherited from VectorT)
Public methodAt(Int32)Gets the value at the given index without range checking..
(Inherited from VectorT)
Public methodAt(Int32, T)Sets the value at the given index without range checking..
(Inherited from VectorT)
Public methodClear Resets all values to zero.
(Inherited from VectorT)
Public methodClearSubVector Sets all values of a subvector to zero.
(Inherited from VectorT)
Public methodClone Returns a deep-copy clone of the vector.
(Inherited from VectorT)
Public methodCoerceZero(Double) Set all values whose absolute value is smaller than the threshold to zero.
(Inherited from Vector)
Public methodCoerceZero(FuncT, Boolean) Set all values that meet the predicate to zero, in-place.
(Inherited from VectorT)
Public methodConjugate Return vector with complex conjugate values of the source vector
(Inherited from VectorT)
Public methodConjugate(VectorT) Complex conjugates vector and save result to result
(Inherited from VectorT)
Public methodConjugateDotProduct Computes the dot product between the conjugate of this vector and another vector.
(Inherited from VectorT)
Public methodCopySubVectorTo Copies the requested elements from this vector to another.
(Inherited from VectorT)
Public methodCopyTo Copies the values of this vector into the target vector.
(Inherited from VectorT)
Public methodStatic memberCreate(Int32, FuncInt32, Single) Create a new sparse vector and initialize each value using the provided init function.
Public methodStatic memberCreate(Int32, Single) Create a new sparse vector and initialize each value using the provided value.
Public methodDivide(T) Divides each element of the vector by a scalar.
(Inherited from VectorT)
Public methodDivide(T, VectorT) Divides each element of the vector by a scalar and stores the result in the result vector.
(Inherited from VectorT)
Public methodDivideByThis(T) Divides a scalar by each element of the vector.
(Inherited from VectorT)
Public methodDivideByThis(T, VectorT) Divides a scalar by each element of the vector and stores the result in the result vector.
(Inherited from VectorT)
Protected methodDoAdd(Single, VectorSingle) Adds a scalar to each element of the vector and stores the result in the result vector. Warning, the new 'sparse vector' with a non-zero scalar added to it will be a 100% filled sparse vector and very inefficient. Would be better to work with a dense vector instead.
(Overrides VectorDoAdd(Single, VectorSingle))
Protected methodDoAdd(VectorSingle, VectorSingle) Adds another vector to this vector and stores the result into the result vector.
(Overrides VectorDoAdd(VectorSingle, VectorSingle))
Protected methodDoConjugate Conjugates vector and save result to result
(Inherited from Vector)
Protected methodDoConjugateDotProduct Computes the dot product between the conjugate of this vector and another vector.
(Inherited from Vector)
Protected methodDoDivide Divides each element of the vector by a scalar and stores the result in the result vector.
(Inherited from Vector)
Protected methodDoDivideByThis Divides a scalar by each element of the vector and stores the result in the result vector.
(Inherited from Vector)
Protected methodDoDotProduct Computes the dot product between this vector and another vector.
(Overrides VectorDoDotProduct(VectorSingle))
Protected methodDoModulus Computes the canonical modulus, where the result has the sign of the divisor, for each element of the vector for the given divisor.
(Overrides VectorDoModulus(Single, VectorSingle))
Protected methodDoModulusByThis Computes the canonical modulus, where the result has the sign of the divisor, for the given dividend for each element of the vector.
(Inherited from Vector)
Protected methodDoMultiply Multiplies a scalar to each element of the vector and stores the result in the result vector.
(Overrides VectorDoMultiply(Single, VectorSingle))
Protected methodDoNegate Negates vector and saves result to result
(Overrides VectorDoNegate(VectorSingle))
Protected methodDoOuterProduct Computes the outer product M[i,j] = u[i]*v[j] of this and another vector and stores the result in the result matrix.
(Inherited from VectorT)
Protected methodDoPointwiseAbs
(Inherited from Vector)
Protected methodDoPointwiseAbsoluteMaximum(Single, VectorSingle)
(Inherited from Vector)
Protected methodDoPointwiseAbsoluteMaximum(VectorSingle, VectorSingle)
(Inherited from Vector)
Protected methodDoPointwiseAbsoluteMinimum(Single, VectorSingle)
(Inherited from Vector)
Protected methodDoPointwiseAbsoluteMinimum(VectorSingle, VectorSingle)
(Inherited from Vector)
Protected methodDoPointwiseAcos
(Inherited from Vector)
Protected methodDoPointwiseAsin
(Inherited from Vector)
Protected methodDoPointwiseAtan
(Inherited from Vector)
Protected methodDoPointwiseAtan2(Single, VectorSingle)
(Inherited from Vector)
Protected methodDoPointwiseAtan2(VectorSingle, VectorSingle)
(Inherited from Vector)
Protected methodDoPointwiseCeiling
(Inherited from Vector)
Protected methodDoPointwiseCos
(Inherited from Vector)
Protected methodDoPointwiseCosh
(Inherited from Vector)
Protected methodDoPointwiseDivide Pointwise divide this vector with another vector and stores the result into the result vector.
(Inherited from Vector)
Protected methodDoPointwiseExp Pointwise applies the exponential function to each value and stores the result into the result vector.
(Inherited from Vector)
Protected methodDoPointwiseFloor
(Inherited from Vector)
Protected methodDoPointwiseLog Pointwise applies the natural logarithm function to each value and stores the result into the result vector.
(Inherited from Vector)
Protected methodDoPointwiseLog10
(Inherited from Vector)
Protected methodDoPointwiseMaximum(Single, VectorSingle)
(Inherited from Vector)
Protected methodDoPointwiseMaximum(VectorSingle, VectorSingle)
(Inherited from Vector)
Protected methodDoPointwiseMinimum(Single, VectorSingle)
(Inherited from Vector)
Protected methodDoPointwiseMinimum(VectorSingle, VectorSingle)
(Inherited from Vector)
Protected methodDoPointwiseModulus Pointwise canonical modulus, where the result has the sign of the divisor, of this vector with another vector and stores the result into the result vector.
(Inherited from Vector)
Protected methodDoPointwiseMultiply Pointwise multiplies this vector with another vector and stores the result into the result vector.
(Overrides VectorDoPointwiseMultiply(VectorSingle, VectorSingle))
Protected methodDoPointwisePower(Single, VectorSingle) Pointwise raise this vector to an exponent and store the result into the result vector.
(Inherited from Vector)
Protected methodDoPointwisePower(VectorSingle, VectorSingle) Pointwise raise this vector to an exponent vector and store the result into the result vector.
(Inherited from Vector)
Protected methodDoPointwiseRemainder Pointwise remainder (% operator), where the result has the sign of the dividend, of this vector with another vector and stores the result into the result vector.
(Inherited from Vector)
Protected methodDoPointwiseRound
(Inherited from Vector)
Protected methodDoPointwiseSign
(Inherited from Vector)
Protected methodDoPointwiseSin
(Inherited from Vector)
Protected methodDoPointwiseSinh
(Inherited from Vector)
Protected methodDoPointwiseSqrt
(Inherited from Vector)
Protected methodDoPointwiseTan
(Inherited from Vector)
Protected methodDoPointwiseTanh
(Inherited from Vector)
Protected methodDoRemainder Computes the remainder (% operator), where the result has the sign of the dividend, for each element of the vector for the given divisor.
(Overrides VectorDoRemainder(Single, VectorSingle))
Protected methodDoRemainderByThis Computes the remainder (% operator), where the result has the sign of the dividend, for the given dividend for each element of the vector.
(Inherited from Vector)
Protected methodDoSubtract(Single, VectorSingle) Subtracts a scalar from each element of the vector and stores the result in the result vector.
(Overrides VectorDoSubtract(Single, VectorSingle))
Protected methodDoSubtract(VectorSingle, VectorSingle) Subtracts another vector to this vector and stores the result into the result vector.
(Overrides VectorDoSubtract(VectorSingle, VectorSingle))
Protected methodDoSubtractFrom Subtracts each element of the vector from a scalar and stores the result in the result vector.
(Inherited from VectorT)
Public methodDotProduct Computes the dot product between this vector and another vector.
(Inherited from VectorT)
Public methodEnumerate Returns an IEnumerable that can be used to iterate through all values of the vector.
(Inherited from VectorT)
Public methodEnumerate(Zeros) Returns an IEnumerable that can be used to iterate through all values of the vector.
(Inherited from VectorT)
Public methodEnumerateIndexed Returns an IEnumerable that can be used to iterate through all values of the vector and their index.
(Inherited from VectorT)
Public methodEnumerateIndexed(Zeros) Returns an IEnumerable that can be used to iterate through all values of the vector and their index.
(Inherited from VectorT)
Public methodEquals(Object) Determines whether the specified Object is equal to this instance.
(Inherited from VectorT)
Public methodEquals(VectorT) Indicates whether the current object is equal to another object of the same type.
(Inherited from VectorT)
Public methodExists Returns true if at least one element satisfies a predicate. Zero elements may be skipped on sparse data structures if allowed (default).
(Inherited from VectorT)
Public methodExists2TOther Returns true if at least one element pairs of two vectors of the same size satisfies a predicate. Zero elements may be skipped on sparse data structures if allowed (default).
(Inherited from VectorT)
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 Returns a tuple with the index and value of the first element satisfying a predicate, or null if none is found. Zero elements may be skipped on sparse data structures if allowed (default).
(Inherited from VectorT)
Public methodFind2TOther Returns a tuple with the index and values of the first element pair of two vectors of the same size satisfying a predicate, or null if none is found. Zero elements may be skipped on sparse data structures if allowed (default).
(Inherited from VectorT)
Public methodFold2TOther, TState Applies a function to update the status with each value pair of two vectors and returns the resulting status.
(Inherited from VectorT)
Public methodForAll Returns true if all elements satisfy a predicate. Zero elements may be skipped on sparse data structures if allowed (default).
(Inherited from VectorT)
Public methodForAll2TOther Returns true if all element pairs of two vectors of the same size satisfy a predicate. Zero elements may be skipped on sparse data structures if allowed (default).
(Inherited from VectorT)
Public methodGetHashCode Returns a hash code for this instance.
(Inherited from VectorT)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodInfinityNorm Calculates the infinity norm of the vector.
(Overrides VectorInfinityNorm)
Public methodL1Norm Calculates the L1 norm of the vector, also known as Manhattan norm.
(Overrides VectorL1Norm)
Public methodL2Norm Calculates the L2 norm of the vector, also known as Euclidean norm.
(Inherited from Vector)
Public methodMap(FuncT, T, VectorT, Zeros) Applies a function to each value of this vector and replaces the value in the result vector. If forceMapZero is not set to true, zero values may or may not be skipped depending on the actual data storage implementation (relevant mostly for sparse vectors).
(Inherited from VectorT)
Public methodMapTU(FuncT, TU, Zeros) Applies a function to each value of this vector and returns the results as a new vector. If forceMapZero is not set to true, zero values may or may not be skipped depending on the actual data storage implementation (relevant mostly for sparse vectors).
(Inherited from VectorT)
Public methodMap2(FuncT, T, T, VectorT, Zeros) Applies a function to each value pair of two vectors and returns the results as a new vector.
(Inherited from VectorT)
Public methodMap2(FuncT, T, T, VectorT, VectorT, Zeros) Applies a function to each value pair of two vectors and replaces the value in the result vector.
(Inherited from VectorT)
Public methodMapConvertTU Applies a function to each value of this vector and replaces the value in the result vector. If forceMapZero is not set to true, zero values may or may not be skipped depending on the actual data storage implementation (relevant mostly for sparse vectors).
(Inherited from VectorT)
Public methodMapIndexed(FuncInt32, T, T, VectorT, Zeros) Applies a function to each value of this vector and replaces the value in the result vector. The index of each value (zero-based) is passed as first argument to the function. If forceMapZero is not set to true, zero values may or may not be skipped depending on the actual data storage implementation (relevant mostly for sparse vectors).
(Inherited from VectorT)
Public methodMapIndexedTU(FuncInt32, T, TU, Zeros) Applies a function to each value of this vector and returns the results as a new vector. The index of each value (zero-based) is passed as first argument to the function. If forceMapZero is not set to true, zero values may or may not be skipped depending on the actual data storage implementation (relevant mostly for sparse vectors).
(Inherited from VectorT)
Public methodMapIndexedConvertTU Applies a function to each value of this vector and replaces the value in the result vector. The index of each value (zero-based) is passed as first argument to the function. If forceMapZero is not set to true, zero values may or may not be skipped depending on the actual data storage implementation (relevant mostly for sparse vectors).
(Inherited from VectorT)
Public methodMapIndexedInplace Applies a function to each value of this vector and replaces the value with its result. The index of each value (zero-based) is passed as first argument to the function. If forceMapZero is not set to true, zero values may or may not be skipped depending on the actual data storage implementation (relevant mostly for sparse vectors).
(Inherited from VectorT)
Public methodMapInplace Applies a function to each value of this vector and replaces the value with its result. If forceMapZero is not set to true, zero values may or may not be skipped depending on the actual data storage implementation (relevant mostly for sparse vectors).
(Inherited from VectorT)
Public methodMaximum Returns the value of maximum element.
(Inherited from VectorT)
Public methodMaximumIndex Returns the index of the maximum element.
(Overrides VectorMaximumIndex)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodMinimum Returns the value of the minimum element.
(Inherited from VectorT)
Public methodMinimumIndex Returns the index of the minimum element.
(Overrides VectorMinimumIndex)
Public methodModulus(T) Computes the canonical modulus, where the result has the sign of the divisor, for each element of the vector for the given divisor.
(Inherited from VectorT)
Public methodModulus(T, VectorT) Computes the canonical modulus, where the result has the sign of the divisor, for each element of the vector for the given divisor.
(Inherited from VectorT)
Public methodModulusByThis(T) Computes the canonical modulus, where the result has the sign of the divisor, for the given dividend for each element of the vector.
(Inherited from VectorT)
Public methodModulusByThis(T, VectorT) Computes the canonical modulus, where the result has the sign of the divisor, for the given dividend for each element of the vector.
(Inherited from VectorT)
Public methodMultiply(T) Multiplies a scalar to each element of the vector.
(Inherited from VectorT)
Public methodMultiply(T, VectorT) Multiplies a scalar to each element of the vector and stores the result in the result vector.
(Inherited from VectorT)
Public methodNegate Returns a negated vector.
(Inherited from VectorT)
Public methodNegate(VectorT) Negates vector and save result to result
(Inherited from VectorT)
Public methodNorm Computes the p-Norm.
(Overrides VectorNorm(Double))
Public methodNormalize Normalizes this vector to a unit vector with respect to the p-norm.
(Inherited from Vector)
Public methodStatic memberOfEnumerable 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 memberOfIndexedEnumerable(Int32, IEnumerableTupleInt32, Single) 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 memberOfIndexedEnumerable(Int32, IEnumerableValueTupleInt32, Single) 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 memberOfVector 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 methodOuterProduct(VectorT) Computes the outer product M[i,j] = u[i]*v[j] of this and another vector.
(Inherited from VectorT)
Public methodOuterProduct(VectorT, MatrixT) Computes the outer product M[i,j] = u[i]*v[j] of this and another vector and stores the result in the result matrix.
(Inherited from VectorT)
Public methodStatic memberParse Creates a float sparse vector based on a string. The string can be in the following formats (without the quotes): 'n', 'n,n,..', '(n,n,..)', '[n,n,...]', where n is a float.
Public methodPointwiseAbs Pointwise applies the abs function to each value
(Inherited from VectorT)
Public methodPointwiseAbs(VectorT) Pointwise applies the abs function to each value
(Inherited from VectorT)
Public methodPointwiseAbsoluteMaximum(T) Pointwise applies the absolute maximum with a scalar to each value.
(Inherited from VectorT)
Public methodPointwiseAbsoluteMaximum(VectorT) Pointwise applies the absolute maximum with the values of another vector to each value.
(Inherited from VectorT)
Public methodPointwiseAbsoluteMaximum(T, VectorT) Pointwise applies the absolute maximum with a scalar to each value.
(Inherited from VectorT)
Public methodPointwiseAbsoluteMaximum(VectorT, VectorT) Pointwise applies the absolute maximum with the values of another vector to each value.
(Inherited from VectorT)
Public methodPointwiseAbsoluteMinimum(T) Pointwise applies the absolute minimum with a scalar to each value.
(Inherited from VectorT)
Public methodPointwiseAbsoluteMinimum(VectorT) Pointwise applies the absolute minimum with the values of another vector to each value.
(Inherited from VectorT)
Public methodPointwiseAbsoluteMinimum(T, VectorT) Pointwise applies the absolute minimum with a scalar to each value.
(Inherited from VectorT)
Public methodPointwiseAbsoluteMinimum(VectorT, VectorT) Pointwise applies the absolute minimum with the values of another vector to each value.
(Inherited from VectorT)
Public methodPointwiseAcos Pointwise applies the acos function to each value
(Inherited from VectorT)
Public methodPointwiseAcos(VectorT) Pointwise applies the acos function to each value
(Inherited from VectorT)
Public methodPointwiseAsin Pointwise applies the asin function to each value
(Inherited from VectorT)
Public methodPointwiseAsin(VectorT) Pointwise applies the asin function to each value
(Inherited from VectorT)
Public methodPointwiseAtan Pointwise applies the atan function to each value
(Inherited from VectorT)
Public methodPointwiseAtan(VectorT) Pointwise applies the atan function to each value
(Inherited from VectorT)
Public methodPointwiseAtan2(VectorT) Pointwise applies the atan2 function to each value of the current vector and a given other vector being the 'x' of atan2 and the 'this' vector being the 'y'
(Inherited from VectorT)
Public methodPointwiseAtan2(VectorT, VectorT) Pointwise applies the atan2 function to each value of the current vector and a given other vector being the 'x' of atan2 and the 'this' vector being the 'y'
(Inherited from VectorT)
Protected methodPointwiseBinary(ActionT, VectorT, T) Helper function to apply a binary function which takes a scalar and a vector and modifies the latter in place. A copy of the "this" vector is therefore first made and then passed to f together with the scalar argument. The copy is then returned as the result
(Inherited from VectorT)
Protected methodPointwiseBinary(ActionVectorT, VectorT, VectorT) Helper function to apply a binary function which takes two vectors and modifies the latter in place. A copy of the "this" vector is first made and then passed to f together with the other vector. The copy is then returned as the result
(Inherited from VectorT)
Protected methodPointwiseBinary(ActionT, VectorT, T, VectorT) Helper function to apply a binary function which takes a scalar and a vector, modifies the latter in place and returns void.
(Inherited from VectorT)
Protected methodPointwiseBinary(ActionVectorT, VectorT, VectorT, VectorT) Helper function to apply a binary function which takes two vectors and modifies the second one in place
(Inherited from VectorT)
Public methodPointwiseCeiling Pointwise applies the ceiling function to each value
(Inherited from VectorT)
Public methodPointwiseCeiling(VectorT) Pointwise applies the ceiling function to each value
(Inherited from VectorT)
Public methodPointwiseCos Pointwise applies the cos function to each value
(Inherited from VectorT)
Public methodPointwiseCos(VectorT) Pointwise applies the cos function to each value
(Inherited from VectorT)
Public methodPointwiseCosh Pointwise applies the cosh function to each value
(Inherited from VectorT)
Public methodPointwiseCosh(VectorT) Pointwise applies the cosh function to each value
(Inherited from VectorT)
Public methodPointwiseDivide(VectorT) Pointwise divide this vector with another vector.
(Inherited from VectorT)
Public methodPointwiseDivide(VectorT, VectorT) Pointwise divide this vector with another vector and stores the result into the result vector.
(Inherited from VectorT)
Public methodPointwiseExp Pointwise applies the exponent function to each value.
(Inherited from VectorT)
Public methodPointwiseExp(VectorT) Pointwise applies the exponent function to each value.
(Inherited from VectorT)
Public methodPointwiseFloor Pointwise applies the floor function to each value
(Inherited from VectorT)
Public methodPointwiseFloor(VectorT) Pointwise applies the floor function to each value
(Inherited from VectorT)
Public methodPointwiseLog Pointwise applies the natural logarithm function to each value.
(Inherited from VectorT)
Public methodPointwiseLog(VectorT) Pointwise applies the natural logarithm function to each value.
(Inherited from VectorT)
Public methodPointwiseLog10 Pointwise applies the log10 function to each value
(Inherited from VectorT)
Public methodPointwiseLog10(VectorT) Pointwise applies the log10 function to each value
(Inherited from VectorT)
Public methodPointwiseMaximum(T) Pointwise applies the maximum with a scalar to each value.
(Inherited from VectorT)
Public methodPointwiseMaximum(VectorT) Pointwise applies the maximum with the values of another vector to each value.
(Inherited from VectorT)
Public methodPointwiseMaximum(T, VectorT) Pointwise applies the maximum with a scalar to each value.
(Inherited from VectorT)
Public methodPointwiseMaximum(VectorT, VectorT) Pointwise applies the maximum with the values of another vector to each value.
(Inherited from VectorT)
Public methodPointwiseMinimum(T) Pointwise applies the minimum with a scalar to each value.
(Inherited from VectorT)
Public methodPointwiseMinimum(VectorT) Pointwise applies the minimum with the values of another vector to each value.
(Inherited from VectorT)
Public methodPointwiseMinimum(T, VectorT) Pointwise applies the minimum with a scalar to each value.
(Inherited from VectorT)
Public methodPointwiseMinimum(VectorT, VectorT) Pointwise applies the minimum with the values of another vector to each value.
(Inherited from VectorT)
Public methodPointwiseModulus(VectorT) Pointwise canonical modulus, where the result has the sign of the divisor, of this vector with another vector.
(Inherited from VectorT)
Public methodPointwiseModulus(VectorT, VectorT) Pointwise canonical modulus, where the result has the sign of the divisor, of this vector with another vector and stores the result into the result vector.
(Inherited from VectorT)
Public methodPointwiseMultiply(VectorT) Pointwise multiplies this vector with another vector.
(Inherited from VectorT)
Public methodPointwiseMultiply(VectorT, VectorT) Pointwise multiplies this vector with another vector and stores the result into the result vector.
(Inherited from VectorT)
Public methodPointwisePower(T) Pointwise raise this vector to an exponent.
(Inherited from VectorT)
Public methodPointwisePower(VectorT) Pointwise raise this vector to an exponent and store the result into the result vector.
(Inherited from VectorT)
Public methodPointwisePower(T, VectorT) Pointwise raise this vector to an exponent and store the result into the result vector.
(Inherited from VectorT)
Public methodPointwisePower(VectorT, VectorT) Pointwise raise this vector to an exponent.
(Inherited from VectorT)
Public methodPointwiseRemainder(VectorT) Pointwise remainder (% operator), where the result has the sign of the dividend, of this vector with another vector.
(Inherited from VectorT)
Public methodPointwiseRemainder(VectorT, VectorT) Pointwise remainder (% operator), where the result has the sign of the dividend, this vector with another vector and stores the result into the result vector.
(Inherited from VectorT)
Public methodPointwiseRound Pointwise applies the round function to each value
(Inherited from VectorT)
Public methodPointwiseRound(VectorT) Pointwise applies the round function to each value
(Inherited from VectorT)
Public methodPointwiseSign Pointwise applies the sign function to each value
(Inherited from VectorT)
Public methodPointwiseSign(VectorT) Pointwise applies the sign function to each value
(Inherited from VectorT)
Public methodPointwiseSin Pointwise applies the sin function to each value
(Inherited from VectorT)
Public methodPointwiseSin(VectorT) Pointwise applies the sin function to each value
(Inherited from VectorT)
Public methodPointwiseSinh Pointwise applies the sinh function to each value
(Inherited from VectorT)
Public methodPointwiseSinh(VectorT) Pointwise applies the sinh function to each value
(Inherited from VectorT)
Public methodPointwiseSqrt Pointwise applies the sqrt function to each value
(Inherited from VectorT)
Public methodPointwiseSqrt(VectorT) Pointwise applies the sqrt function to each value
(Inherited from VectorT)
Public methodPointwiseTan Pointwise applies the tan function to each value
(Inherited from VectorT)
Public methodPointwiseTan(VectorT) Pointwise applies the tan function to each value
(Inherited from VectorT)
Public methodPointwiseTanh Pointwise applies the tanh function to each value
(Inherited from VectorT)
Public methodPointwiseTanh(VectorT) Pointwise applies the tanh function to each value
(Inherited from VectorT)
Protected methodPointwiseUnary(ActionVectorT) Helper function to apply a unary function to a vector. The function f modifies the vector given to it in place. Before its called, a copy of the 'this' vector with the same dimension is first created, then passed to f. The copy is returned as the result
(Inherited from VectorT)
Protected methodPointwiseUnary(ActionVectorT, VectorT) Helper function to apply a unary function which modifies a vector in place.
(Inherited from VectorT)
Public methodRemainder(T) Computes the remainder (vector % divisor), where the result has the sign of the dividend, for each element of the vector for the given divisor.
(Inherited from VectorT)
Public methodRemainder(T, VectorT) Computes the remainder (vector % divisor), where the result has the sign of the dividend, for each element of the vector for the given divisor.
(Inherited from VectorT)
Public methodRemainderByThis(T) Computes the remainder (dividend % vector), where the result has the sign of the dividend, for the given dividend for each element of the vector.
(Inherited from VectorT)
Public methodRemainderByThis(T, VectorT) Computes the remainder (dividend % vector), where the result has the sign of the dividend, for the given dividend for each element of the vector.
(Inherited from VectorT)
Public methodSetSubVector Copies the values of a given vector into a region in this vector.
(Inherited from VectorT)
Public methodSetValues Set the values of this vector to the given values.
(Inherited from VectorT)
Public methodSubtract(T) Subtracts a scalar from each element of the vector.
(Inherited from VectorT)
Public methodSubtract(VectorT) Subtracts another vector from this vector.
(Inherited from VectorT)
Public methodSubtract(T, VectorT) Subtracts a scalar from each element of the vector and stores the result in the result vector.
(Inherited from VectorT)
Public methodSubtract(VectorT, VectorT) Subtracts another vector to this vector and stores the result into the result vector.
(Inherited from VectorT)
Public methodSubtractFrom(T) Subtracts each element of the vector from a scalar.
(Inherited from VectorT)
Public methodSubtractFrom(T, VectorT) Subtracts each element of the vector from a scalar and stores the result in the result vector.
(Inherited from VectorT)
Public methodSubVector Creates a vector containing specified elements.
(Inherited from VectorT)
Public methodSum Computes the sum of the vector's elements.
(Overrides VectorSum)
Public methodSumMagnitudes Computes the sum of the absolute value of the vector's elements.
(Inherited from VectorT)
Public methodToArray Returns the data contained in the vector as an array. The returned array will be independent from this vector. A new memory block will be allocated for the array.
(Inherited from VectorT)
Public methodToColumnMatrix Create a matrix based on this vector in column form (one single column).
(Inherited from VectorT)
Public methodToRowMatrix Create a matrix based on this vector in row form (one single row).
(Inherited from VectorT)
Public methodToString Returns a string that summarizes this vector. The maximum number of cells can be configured in the Control class.
(Inherited from VectorT)
Public methodToString(String, IFormatProvider) Returns a string that summarizes this vector. The maximum number of cells can be configured in the Control class. The format string is ignored.
(Inherited from VectorT)
Public methodToString(Int32, Int32, String, IFormatProvider) Returns a string that summarizes this vector, column by column and with a type header.
(Inherited from VectorT)
Public methodToTypeString
(Overrides VectorTToTypeString)
Public methodToVectorString(String, IFormatProvider) Returns a string that represents the content of this vector, column by column.
(Inherited from VectorT)
Public methodToVectorString(Int32, Int32, String, IFormatProvider) Returns a string that represents the content of this vector, column by column.
(Inherited from VectorT)
Public methodToVectorString(Int32, Int32, String, String, String, FuncT, String) Returns a string that represents the content of this vector, column by column.
(Inherited from VectorT)
Public methodToVectorStringArray
(Inherited from VectorT)
Public methodStatic memberTryParse(String, SparseVector) Converts the string representation of a real sparse vector to float-precision sparse vector equivalent. A return value indicates whether the conversion succeeded or failed.
Public methodStatic memberTryParse(String, IFormatProvider, SparseVector) Converts the string representation of a real sparse vector to float-precision sparse vector equivalent. A return value indicates whether the conversion succeeded or failed.
Top
Operators
 NameDescription
Public operatorStatic memberAddition(SparseVector, SparseVector) Adds two Vectors together and returns the results.
Public operatorStatic memberDivision(SparseVector, Single) Divides a vector with a scalar.
Public operatorStatic memberModulus(SparseVector, Single) Computes the remainder (% operator), where the result has the sign of the dividend, of each element of the vector of the given divisor.
Public operatorStatic memberMultiply(Single, SparseVector) Multiplies a vector with a scalar.
Public operatorStatic memberMultiply(SparseVector, SparseVector) Computes the dot product between two Vectors.
Public operatorStatic memberMultiply(SparseVector, Single) Multiplies a vector with a scalar.
Public operatorStatic memberSubtraction(SparseVector, SparseVector) Subtracts two Vectors and returns the results.
Public operatorStatic memberUnaryNegation(SparseVector) Returns a Vector containing the negated values of rightSide.
Top
Extension Methods
 NameDescription
Public Extension MethodToComplex32 Gets a single precision complex vector with the real parts from the given vector.
(Defined by VectorExtensions)
Public Extension MethodToDouble Converts a vector to double precision.
(Defined by VectorExtensions)
Top
Remarks
The sparse vector is not thread safe.
See Also