Click or drag to resize

VectorT Class

Defines the generic class for Vector classes.
Inheritance Hierarchy

Namespace: Altaxo.Calc.LinearAlgebra
Assembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax
C#
[SerializableAttribute]
public abstract class Vector<T> : IFormattable, 
	IEquatable<Vector<T>>, IList, ICollection, IEnumerable, 
	IList<T>, ICollection<T>, IEnumerable<T>, ICloneable, IReadOnlyList<T>, 
	IReadOnlyCollection<T>, IVector<T>
where T : struct, new(), IEquatable<T>, IFormattable

Type Parameters

T
Supported data types are double, single, Altaxo.Calc.LinearAlgebra.Complex, and Altaxo.Calc.LinearAlgebra.Complex32.

The VectorT type exposes the following members.

Constructors
 NameDescription
Protected methodVectorT Initializes a new instance of the Vector class.
Top
Properties
 NameDescription
Public propertyCount Gets the length or number of dimensions of this vector.
Public propertyItemGets or sets the value at the given index.
Public propertyStorage Gets the raw vector data storage.
Top
Methods
 NameDescription
Public methodStatic memberAbs Computes the absolute value of a vector pointwise
Public methodAbsoluteMaximum Returns the value of the absolute maximum element.
Public methodAbsoluteMaximumIndex Returns the index of the absolute maximum element.
Public methodAbsoluteMinimum Returns the value of the absolute minimum element.
Public methodAbsoluteMinimumIndex Returns the index of the absolute minimum element.
Public methodStatic memberAcos Computes the acos of a vector pointwise
Public methodAdd(T) Adds a scalar to each element of the vector.
Public methodAdd(VectorT) Adds another vector to this vector.
Public methodAdd(T, VectorT) Adds a scalar to each element of the vector and stores the result in the result vector.
Public methodAdd(VectorT, VectorT) Adds another vector to this vector and stores the result into the result vector.
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.
Public methodStatic memberAsin Computes the asin of a vector pointwise
Public methodAt(Int32)Gets the value at the given index without range checking..
Public methodAt(Int32, T)Sets the value at the given index without range checking..
Public methodStatic memberAtan Computes the atan of a vector pointwise
Public methodStatic memberCeiling Computes the ceiling of a vector pointwise
Public methodClear Resets all values to zero.
Public methodClearSubVector Sets all values of a subvector to zero.
Public methodClone Returns a deep-copy clone of the vector.
Public methodCoerceZero(Double) Set all values whose absolute value is smaller than the threshold to zero, in-place.
Public methodCoerceZero(FuncT, Boolean) Set all values that meet the predicate to zero, in-place.
Public methodConjugate Return vector with complex conjugate values of the source vector
Public methodConjugate(VectorT) Complex conjugates vector and save result to result
Public methodConjugateDotProduct Computes the dot product between the conjugate of this vector and another vector.
Public methodCopySubVectorTo Copies the requested elements from this vector to another.
Public methodCopyTo Copies the values of this vector into the target vector.
Public methodStatic memberCos Computes the cos of a vector pointwise
Public methodStatic memberCosh Computes the cosh of a vector pointwise
Public methodDivide(T) Divides each element of the vector by a scalar.
Public methodDivide(T, VectorT) Divides each element of the vector by a scalar and stores the result in the result vector.
Public methodDivideByThis(T) Divides a scalar by each element of the vector.
Public methodDivideByThis(T, VectorT) Divides a scalar by each element of the vector and stores the result in the result vector.
Protected methodDoAdd(T, VectorT) Adds a scalar to each element of the vector and stores the result in the result vector.
Protected methodDoAdd(VectorT, VectorT) Adds another vector to this vector and stores the result into the result vector.
Protected methodDoConjugate Complex conjugates vector and save result to result
Protected methodDoConjugateDotProduct Computes the dot product between the conjugate of this vector and another vector.
Protected methodDoDivide Divides each element of the vector by a scalar and stores the result in the result vector.
Protected methodDoDivideByThis Divides a scalar by each element of the vector and stores the result in the result vector.
Protected methodDoDotProduct Computes the dot product between this vector and another vector.
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.
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.
Protected methodDoMultiply Multiplies a scalar to each element of the vector and stores the result in the result vector.
Protected methodDoNegate Negates vector and save result to result
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.
Protected methodDoPointwiseAbs 
Protected methodDoPointwiseAbsoluteMaximum(T, VectorT) 
Protected methodDoPointwiseAbsoluteMaximum(VectorT, VectorT) 
Protected methodDoPointwiseAbsoluteMinimum(T, VectorT) 
Protected methodDoPointwiseAbsoluteMinimum(VectorT, VectorT) 
Protected methodDoPointwiseAcos 
Protected methodDoPointwiseAsin 
Protected methodDoPointwiseAtan 
Protected methodDoPointwiseAtan2(T, VectorT) 
Protected methodDoPointwiseAtan2(VectorT, VectorT) 
Protected methodDoPointwiseCeiling 
Protected methodDoPointwiseCos 
Protected methodDoPointwiseCosh 
Protected methodDoPointwiseDivide Pointwise divide this vector with another vector and stores the result into the result vector.
Protected methodDoPointwiseExp Pointwise applies the exponential function to each value and stores the result into the result vector.
Protected methodDoPointwiseFloor 
Protected methodDoPointwiseLog Pointwise applies the natural logarithm function to each value and stores the result into the result vector.
Protected methodDoPointwiseLog10 
Protected methodDoPointwiseMaximum(T, VectorT) 
Protected methodDoPointwiseMaximum(VectorT, VectorT) 
Protected methodDoPointwiseMinimum(T, VectorT) 
Protected methodDoPointwiseMinimum(VectorT, VectorT) 
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.
Protected methodDoPointwiseMultiply Pointwise multiplies this vector with another vector and stores the result into the result vector.
Protected methodDoPointwisePower(T, VectorT) Pointwise raise this vector to an exponent and store the result into the result vector.
Protected methodDoPointwisePower(VectorT, VectorT) Pointwise raise this vector to an exponent vector and store the result into the result 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.
Protected methodDoPointwiseRound 
Protected methodDoPointwiseSign 
Protected methodDoPointwiseSin 
Protected methodDoPointwiseSinh 
Protected methodDoPointwiseSqrt 
Protected methodDoPointwiseTan 
Protected methodDoPointwiseTanh 
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.
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.
Protected methodDoSubtract(T, VectorT) Subtracts a scalar from each element of the vector and stores the result in the result vector.
Protected methodDoSubtract(VectorT, VectorT) Subtracts another vector to this vector and stores the result into the result vector.
Protected methodDoSubtractFrom Subtracts each element of the vector from a scalar and stores the result in the result vector.
Public methodDotProduct Computes the dot product between this vector and another vector.
Public methodEnumerate Returns an IEnumerable that can be used to iterate through all values of the vector.
Public methodEnumerate(Zeros) Returns an IEnumerable that can be used to iterate through all values of the vector.
Public methodEnumerateIndexed Returns an IEnumerable that can be used to iterate through all values of the vector and their index.
Public methodEnumerateIndexed(Zeros) Returns an IEnumerable that can be used to iterate through all values of the vector and their index.
Public methodEquals(Object) Determines whether the specified Object is equal to this instance.
(Overrides ObjectEquals(Object))
Public methodEquals(VectorT) Indicates whether the current object is equal to another object of the same type.
Public methodExists Returns true if at least one element satisfies a predicate. Zero elements may be skipped on sparse data structures if allowed (default).
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).
Public methodStatic memberExp Computes the exponential of a vector pointwise
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).
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).
Public methodStatic memberFloor Computes the floor of a vector pointwise
Public methodFold2TOther, TState Applies a function to update the status with each value pair of two vectors and returns the resulting status.
Public methodForAll Returns true if all elements satisfy a predicate. Zero elements may be skipped on sparse data structures if allowed (default).
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).
Public methodGetHashCode Returns a hash code for this instance.
(Overrides ObjectGetHashCode)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodInfinityNorm Calculates the infinity norm of the vector.
Public methodL1Norm Calculates the L1 norm of the vector, also known as Manhattan norm.
Public methodL2Norm Calculates the L2 norm of the vector, also known as Euclidean norm.
Public methodStatic memberLog Computes the log of a vector pointwise
Public methodStatic memberLog10 Computes the log10 of a vector pointwise
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).
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).
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.
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.
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).
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).
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).
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).
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).
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).
Public methodMaximum Returns the value of maximum element.
Public methodMaximumIndex Returns the index of the maximum element.
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodMinimum Returns the value of the minimum element.
Public methodMinimumIndex Returns the index of the minimum element.
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.
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.
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.
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.
Public methodMultiply(T) Multiplies a scalar to each element of the vector.
Public methodMultiply(T, VectorT) Multiplies a scalar to each element of the vector and stores the result in the result vector.
Public methodNegate Returns a negated vector.
Public methodNegate(VectorT) Negates vector and save result to result
Public methodNorm Computes the p-Norm.
Public methodNormalize Normalizes this vector to a unit vector with respect to the p-norm.
Public methodOuterProduct(VectorT) Computes the outer product M[i,j] = u[i]*v[j] of this and another vector.
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.
Public methodStatic memberOuterProduct(VectorT, VectorT) 
Public methodPointwiseAbs Pointwise applies the abs function to each value
Public methodPointwiseAbs(VectorT) Pointwise applies the abs function to each value
Public methodPointwiseAbsoluteMaximum(T) Pointwise applies the absolute maximum with a scalar to each value.
Public methodPointwiseAbsoluteMaximum(VectorT) Pointwise applies the absolute maximum with the values of another vector to each value.
Public methodPointwiseAbsoluteMaximum(T, VectorT) Pointwise applies the absolute maximum with a scalar to each value.
Public methodPointwiseAbsoluteMaximum(VectorT, VectorT) Pointwise applies the absolute maximum with the values of another vector to each value.
Public methodPointwiseAbsoluteMinimum(T) Pointwise applies the absolute minimum with a scalar to each value.
Public methodPointwiseAbsoluteMinimum(VectorT) Pointwise applies the absolute minimum with the values of another vector to each value.
Public methodPointwiseAbsoluteMinimum(T, VectorT) Pointwise applies the absolute minimum with a scalar to each value.
Public methodPointwiseAbsoluteMinimum(VectorT, VectorT) Pointwise applies the absolute minimum with the values of another vector to each value.
Public methodPointwiseAcos Pointwise applies the acos function to each value
Public methodPointwiseAcos(VectorT) Pointwise applies the acos function to each value
Public methodPointwiseAsin Pointwise applies the asin function to each value
Public methodPointwiseAsin(VectorT) Pointwise applies the asin function to each value
Public methodPointwiseAtan Pointwise applies the atan function to each value
Public methodPointwiseAtan(VectorT) Pointwise applies the atan function to each value
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'
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'
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
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
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.
Protected methodPointwiseBinary(ActionVectorT, VectorT, VectorT, VectorT) Helper function to apply a binary function which takes two vectors and modifies the second one in place
Public methodPointwiseCeiling Pointwise applies the ceiling function to each value
Public methodPointwiseCeiling(VectorT) Pointwise applies the ceiling function to each value
Public methodPointwiseCos Pointwise applies the cos function to each value
Public methodPointwiseCos(VectorT) Pointwise applies the cos function to each value
Public methodPointwiseCosh Pointwise applies the cosh function to each value
Public methodPointwiseCosh(VectorT) Pointwise applies the cosh function to each value
Public methodPointwiseDivide(VectorT) Pointwise divide this vector with another vector.
Public methodPointwiseDivide(VectorT, VectorT) Pointwise divide this vector with another vector and stores the result into the result vector.
Public methodPointwiseExp Pointwise applies the exponent function to each value.
Public methodPointwiseExp(VectorT) Pointwise applies the exponent function to each value.
Public methodPointwiseFloor Pointwise applies the floor function to each value
Public methodPointwiseFloor(VectorT) Pointwise applies the floor function to each value
Public methodPointwiseLog Pointwise applies the natural logarithm function to each value.
Public methodPointwiseLog(VectorT) Pointwise applies the natural logarithm function to each value.
Public methodPointwiseLog10 Pointwise applies the log10 function to each value
Public methodPointwiseLog10(VectorT) Pointwise applies the log10 function to each value
Public methodPointwiseMaximum(T) Pointwise applies the maximum with a scalar to each value.
Public methodPointwiseMaximum(VectorT) Pointwise applies the maximum with the values of another vector to each value.
Public methodPointwiseMaximum(T, VectorT) Pointwise applies the maximum with a scalar to each value.
Public methodPointwiseMaximum(VectorT, VectorT) Pointwise applies the maximum with the values of another vector to each value.
Public methodPointwiseMinimum(T) Pointwise applies the minimum with a scalar to each value.
Public methodPointwiseMinimum(VectorT) Pointwise applies the minimum with the values of another vector to each value.
Public methodPointwiseMinimum(T, VectorT) Pointwise applies the minimum with a scalar to each value.
Public methodPointwiseMinimum(VectorT, VectorT) Pointwise applies the minimum with the values of another vector to each value.
Public methodPointwiseModulus(VectorT) Pointwise canonical modulus, where the result has the sign of the divisor, of this vector with another vector.
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.
Public methodPointwiseMultiply(VectorT) Pointwise multiplies this vector with another vector.
Public methodPointwiseMultiply(VectorT, VectorT) Pointwise multiplies this vector with another vector and stores the result into the result vector.
Public methodPointwisePower(T) Pointwise raise this vector to an exponent.
Public methodPointwisePower(VectorT) Pointwise raise this vector to an exponent and store the result into the result vector.
Public methodPointwisePower(T, VectorT) Pointwise raise this vector to an exponent and store the result into the result vector.
Public methodPointwisePower(VectorT, VectorT) Pointwise raise this vector to an exponent.
Public methodPointwiseRemainder(VectorT) Pointwise remainder (% operator), where the result has the sign of the dividend, of this vector with another vector.
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.
Public methodPointwiseRound Pointwise applies the round function to each value
Public methodPointwiseRound(VectorT) Pointwise applies the round function to each value
Public methodPointwiseSign Pointwise applies the sign function to each value
Public methodPointwiseSign(VectorT) Pointwise applies the sign function to each value
Public methodPointwiseSin Pointwise applies the sin function to each value
Public methodPointwiseSin(VectorT) Pointwise applies the sin function to each value
Public methodPointwiseSinh Pointwise applies the sinh function to each value
Public methodPointwiseSinh(VectorT) Pointwise applies the sinh function to each value
Public methodPointwiseSqrt Pointwise applies the sqrt function to each value
Public methodPointwiseSqrt(VectorT) Pointwise applies the sqrt function to each value
Public methodPointwiseTan Pointwise applies the tan function to each value
Public methodPointwiseTan(VectorT) Pointwise applies the tan function to each value
Public methodPointwiseTanh Pointwise applies the tanh function to each value
Public methodPointwiseTanh(VectorT) Pointwise applies the tanh function to each value
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
Protected methodPointwiseUnary(ActionVectorT, VectorT) Helper function to apply a unary function which modifies a vector in place.
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.
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.
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.
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.
Public methodStatic memberRound Computes the rounded value of a vector pointwise
Public methodSetSubVector Copies the values of a given vector into a region in this vector.
Public methodSetValues Set the values of this vector to the given values.
Public methodStatic memberSin Computes the sin of a vector pointwise
Public methodStatic memberSinh Computes the sinh of a vector pointwise
Public methodStatic memberSqrt Computes the sqrt of a vector pointwise
Public methodSubtract(T) Subtracts a scalar from each element of the vector.
Public methodSubtract(VectorT) Subtracts another vector from this vector.
Public methodSubtract(T, VectorT) Subtracts a scalar from each element of the vector and stores the result in the result vector.
Public methodSubtract(VectorT, VectorT) Subtracts another vector to this vector and stores the result into the result vector.
Public methodSubtractFrom(T) Subtracts each element of the vector from a scalar.
Public methodSubtractFrom(T, VectorT) Subtracts each element of the vector from a scalar and stores the result in the result vector.
Public methodSubVector Creates a vector containing specified elements.
Public methodSum Computes the sum of the vector's elements.
Public methodSumMagnitudes Computes the sum of the absolute value of the vector's elements.
Public methodStatic memberTan Computes the tan of a vector pointwise
Public methodStatic memberTanh Computes the tanh of a vector pointwise
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.
Public methodToColumnMatrix Create a matrix based on this vector in column form (one single column).
Public methodToRowMatrix Create a matrix based on this vector in row form (one single row).
Public methodToString Returns a string that summarizes this vector. The maximum number of cells can be configured in the Control class.
(Overrides ObjectToString)
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.
Public methodToString(Int32, Int32, String, IFormatProvider) Returns a string that summarizes this vector, column by column and with a type header.
Public methodToTypeString Returns a string that describes the type, dimensions and shape of this vector.
Public methodToVectorString(String, IFormatProvider) Returns a string that represents the content of this vector, column by column.
Public methodToVectorString(Int32, Int32, String, IFormatProvider) Returns a string that represents the content of this vector, column by column.
Public methodToVectorString(Int32, Int32, String, String, String, FuncT, String) Returns a string that represents the content of this vector, column by column.
Public methodToVectorStringArray 
Top
Operators
 NameDescription
Public operatorStatic memberAddition(T, VectorT) Adds a scalar to each element of a vector.
Public operatorStatic memberAddition(VectorT, T) Adds a scalar to each element of a vector.
Public operatorStatic memberAddition(VectorT, VectorT) Adds two Vectors together and returns the results.
Public operatorStatic memberDivision(T, VectorT) Divides a scalar with a vector.
Public operatorStatic memberDivision(VectorT, T) Divides a vector with a scalar.
Public operatorStatic memberDivision(VectorT, VectorT) Pointwise divides two Vectors.
Public operatorStatic memberDotDivide(VectorT, VectorT) 
Public operatorStatic memberDotHat(VectorT, T) 
Public operatorStatic memberDotHat(VectorT, VectorT) 
Public operatorStatic memberDotMultiply(VectorT, VectorT) 
Public operatorStatic memberDotPercent(VectorT, VectorT) 
Public operatorStatic memberModulus(T, VectorT) Computes the remainder (% operator), where the result has the sign of the dividend, of the given dividend of each element of the vector.
Public operatorStatic memberModulus(VectorT, T) 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 memberModulus(VectorT, VectorT) Computes the pointwise remainder (% operator), where the result has the sign of the dividend, of each element of two vectors.
Public operatorStatic memberMultiply(T, VectorT) Multiplies a vector with a scalar.
Public operatorStatic memberMultiply(VectorT, T) Multiplies a vector with a scalar.
Public operatorStatic memberMultiply(VectorT, VectorT) Computes the dot product between two Vectors.
Public operatorStatic memberSubtraction(T, VectorT) Subtracts each element of a vector from a scalar.
Public operatorStatic memberSubtraction(VectorT, T) Subtracts a scalar from each element of a vector.
Public operatorStatic memberSubtraction(VectorT, VectorT) Subtracts two Vectors and returns the results.
Public operatorStatic memberUnaryNegation(VectorT) Returns a Vector containing the negated values of rightSide.
Public operatorStatic memberUnaryPlus(VectorT) Returns a Vector containing the same values of rightSide.
Top
Fields
 NameDescription
Public fieldStatic memberBuild 
Public fieldStatic memberOne The value of 1.0 for type T.
Public fieldStatic memberZero The zero value for type T.
Top
Extension Methods
 NameDescription
Public Extension MethodAddRangeT Adds a range of items to a collection.
(Defined by ListExtensions)
Public Extension MethodAlmostEqualT Compares two vectors and determines if they are equal within the specified maximum error.
(Defined by Precision)
Public Extension MethodAlmostEqualT Compares two vectors and determines if they are equal to within the specified number of decimal places or not, using the number of decimal places as an absolute measure.
(Defined by Precision)
Public Extension MethodAlmostEqualRelativeT Compares two vectors and determines if they are equal within the specified maximum error.
(Defined by Precision)
Public Extension MethodAlmostEqualRelativeT Compares two vectors and determines if they are equal to within the specified number of decimal places or not. If the numbers are very close to zero an absolute difference is compared, otherwise the relative difference is compared.
(Defined by Precision)
Public Extension MethodElementsAtT
(Defined by VectorMath)
Public Extension MethodElementsWhereT
(Defined by VectorMath)
Public Extension MethodElementsWhereT
(Defined by VectorMath)
Public Extension MethodExchangePositionsT Exchange the positions of two items in a list.
(Defined by ListExtensions)
Public Extension MethodFillWithT
(Defined by ListExtensions)
Public Extension MethodFillWithT
(Defined by VectorMath)
Public Extension MethodFirstOrT Returns the first value of the enumeration, or, if the enumeration is empty, the other value provided in the arguments.
(Defined by EnumerableExtensions)
Public Extension MethodFlattenFromRootToLeavesT Converts a recursive data structure into a flat list. The root element is enumerated before its corresponding child element(s).
(Defined by EnumerableExtensions)
Public Extension MethodForEachDoT Executes an action for each element of the sequence.
(Defined by EnumerableExtensions)
Public Extension MethodGetPossibleStepsToMoveTowardsHigherIndicesT Return the number of steps that selected items can be moved towards higher indices. The selected item with the highest index determines that value.
(Defined by ListExtensions)
Public Extension MethodGetPossibleStepsToMoveTowardsLowerIndicesT Return the number of steps that selected items can be moved towards lower indices. The selected item with the lowest index determines that value.
(Defined by ListExtensions)
Public Extension MethodHasSingleElementT Determines whether the specified enumeration has exactly one element.
(Defined by EnumerableExtensions)
Public Extension MethodIndexOfT Gets the index of an item in a enumeration or list.
(Defined by ListExtensions)
Public Extension MethodIndexOfFirstT Gets the index the of first item in list that fulfills the predicate predicate
(Defined by ListExtensions)
Public Extension MethodIndexOfFirstT Gets the index the of first item in list that fulfills the predicate predicate
(Defined by ListExtensions)
Public Extension MethodIndexOfLastT Gets the index the of last item in list that fulfills the predicate predicate
(Defined by ListExtensions)
Public Extension MethodIndexOfMaxTReturn the index of the element with the maximum value in an enumerable. If multiple elements with the same minimal value exist, the index of the first element in the sequence is returned.
(Defined by EnumerableExtensions)
Public Extension MethodIndexOfMinTReturn the index of the element with the minimum value in an enumerable. If multiple elements with the same minimal value exist, the index of the first element in the sequence is returned.
(Defined by EnumerableExtensions)
Public Extension MethodIndicesInt32AndValuesWhereT Returns tuples of index and element of all elements in an enumeration which fullfill a given condition, given by the element's value.
(Defined by EnumerableExtensions)
Public Extension MethodIndicesInt32AndValuesWhereT Returns tuples of index and element of all elements in an enumeration which fullfill a given condition, given by the element's value and its index.
(Defined by EnumerableExtensions)
Public Extension MethodIndicesInt32WhereT Returns the indices of the elements which fullfill a given condition, given by the element's value.
(Defined by EnumerableExtensions)
Public Extension MethodIndicesInt32WhereT Returns the indices of the elements which fullfill a given condition, given by the element's value and its index.
(Defined by EnumerableExtensions)
Public Extension MethodIndicesOfMinMaxTReturn the index of the element with the minimum value in an enumerable. If multiple elements with the same minimal value exist, the index of the first element in the sequence is returned.
(Defined by EnumerableExtensions)
Public Extension MethodIsEmptyT Determines whether the specified enumeration is empty.
(Defined by EnumerableExtensions)
Public Extension MethodJoinConditionalT, T2 Takes a join of two sequences, but only takes into account those pair, which fulfill a given condition.
(Defined by EnumerableExtensions)
Public Extension MethodJoinConditionalT, T2, TResult Takes a join of two sequences, but only takes into account those pair, which fulfill a given condition.
(Defined by EnumerableExtensions)
Public Extension MethodLastOrT Returns the last value of the enumeration, or, if the enumeration is empty, the other value provided in the arguments.
(Defined by EnumerableExtensions)
Public Extension MethodMaxElementT, M Gets the element of a IEnumerabe that evaluates by means of a conversion function to the maximal value. This is different from Select(x => conversion(x)).Max() insofar as it not returns the maximum value, but the original element x which converts to the maximum value.
(Defined by EnumerableExtensions)
Public Extension MethodMaxOrDefaultT, M Evaluates the maximum of a enumeration of elements, or returns a default value if the series is empty.
(Defined by EnumerableExtensions)
Public Extension MethodMoveItemToIndexT Moves a item to another list position. All items inbetween the interval originalIndex and destinationIndex will slip by one position (except the item at originalIndex, which will of course move to destinationIndex.
(Defined by ListExtensions)
Public Extension MethodMoveSelectedItemsT Moves the selected items towards higher indices (for steps > 0) or lower indices (for steps < 0).
(Defined by ListExtensions)
Public Extension MethodMoveSelectedItemsToMaximumIndexT Moves the selected item so that the selected item with the formerly highest index is afterwards at the end of the list (at index list.Count-1).
(Defined by ListExtensions)
Public Extension MethodMoveSelectedItemsToMinimumIndexT Moves the selected item so that the selected item with the formerly lowest index is afterwards at the start of the list (at index 0).
(Defined by ListExtensions)
Public Extension MethodMoveSelectedItemsTowardsHigherIndicesT Moves the selected items towards higher indices.
(Defined by ListExtensions)
Public Extension MethodMoveSelectedItemsTowardsLowerIndicesT Moves the selected items towards lower indices.
(Defined by ListExtensions)
Public Extension MethodRemoveWhereT Removes all items for which the predicate function returns true.
(Defined by ListExtensions)
Public Extension MethodRemoveWhereT Removes all items for which the predicate function returns true.
(Defined by ListExtensions)
Public Extension MethodSelectCombinationT Select a random combination, without repetition, from a data sequence by selecting k elements in original order.
(Defined by Combinatorics)
Public Extension MethodSelectCombinationWithRepetitionT Select a random combination, with repetition, from a data sequence by selecting k elements in original order.
(Defined by Combinatorics)
Public Extension MethodSelectPermutationT Select a random permutation from a data sequence by returning the provided data in random order. Implemented using Fisher-Yates Shuffling.
(Defined by Combinatorics)
Public Extension MethodSelectVariationT Select a random variation, without repetition, from a data sequence by randomly selecting k elements in random order. Implemented using partial Fisher-Yates Shuffling.
(Defined by Combinatorics)
Public Extension MethodSelectVariationWithRepetitionT Select a random variation, with repetition, from a data sequence by randomly selecting k elements in random order.
(Defined by Combinatorics)
Public Extension MethodSetValuesT
(Defined by VectorMath)
Public Extension MethodTakeAllButLastT Takes all elements of the enumeration except the last element.
(Defined by EnumerableExtensions)
Public Extension MethodTakeFromUpperIndexExclusiveDownToLowerIndexInclusiveT Takes all elements of a list, starting from index upperIndexExclusive - 1 down to the index lowerIndexInclusive.
(Defined by EnumerableExtensions)
Public Extension MethodTakeFromUpperIndexInclusiveDownToLowerIndexInclusiveT Takes all elements of a list, starting from index upperIndexInclusive down to the index lowerIndexInclusive.
(Defined by EnumerableExtensions)
Public Extension MethodThisOrEmptyT Returns either the provided enumeration, or if it is null, an empty enumeration.
(Defined by EnumerableExtensions)
Public Extension MethodTryGetFirstAndLastT Returns true and the first and last value of the enumeration, or, if the enumeration is empty, returns false.
(Defined by EnumerableExtensions)
Public Extension MethodTryGetSingleElementT Try to get the one and only element of the collection.
(Defined by EnumerableExtensions)
Top
See Also