VectorT Class |
[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
The VectorT type exposes the following members.
Name | Description | |
---|---|---|
Count | Gets the length or number of dimensions of this vector. | |
Item | Gets or sets the value at the given index. | |
Storage | Gets the raw vector data storage. |
Name | Description | |
---|---|---|
Abs | Computes the absolute value of a vector pointwise | |
AbsoluteMaximum | Returns the value of the absolute maximum element. | |
AbsoluteMaximumIndex | Returns the index of the absolute maximum element. | |
AbsoluteMinimum | Returns the value of the absolute minimum element. | |
AbsoluteMinimumIndex | Returns the index of the absolute minimum element. | |
Acos | Computes the acos of a vector pointwise | |
Add(T) | Adds a scalar to each element of the vector. | |
Add(VectorT) | Adds another vector to this vector. | |
Add(T, VectorT) | Adds a scalar to each element of the vector and stores the result in the result vector. | |
Add(VectorT, VectorT) | Adds another vector to this vector and stores the result into the result vector. | |
AsArray | 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. | |
Asin | Computes the asin of a vector pointwise | |
At(Int32) | Gets the value at the given index without range checking.. | |
At(Int32, T) | Sets the value at the given index without range checking.. | |
Atan | Computes the atan of a vector pointwise | |
Ceiling | Computes the ceiling of a vector pointwise | |
Clear | Resets all values to zero. | |
ClearSubVector | Sets all values of a subvector to zero. | |
Clone | Returns a deep-copy clone of the vector. | |
CoerceZero(Double) | Set all values whose absolute value is smaller than the threshold to zero, in-place. | |
CoerceZero(FuncT, Boolean) | Set all values that meet the predicate to zero, in-place. | |
Conjugate | Return vector with complex conjugate values of the source vector | |
Conjugate(VectorT) | Complex conjugates vector and save result to result | |
ConjugateDotProduct | Computes the dot product between the conjugate of this vector and another vector. | |
CopySubVectorTo | Copies the requested elements from this vector to another. | |
CopyTo | Copies the values of this vector into the target vector. | |
Cos | Computes the cos of a vector pointwise | |
Cosh | Computes the cosh of a vector pointwise | |
Divide(T) | Divides each element of the vector by a scalar. | |
Divide(T, VectorT) | Divides each element of the vector by a scalar and stores the result in the result vector. | |
DivideByThis(T) | Divides a scalar by each element of the vector. | |
DivideByThis(T, VectorT) | Divides a scalar by each element of the vector and stores the result in the result vector. | |
DoAdd(T, VectorT) | Adds a scalar to each element of the vector and stores the result in the result vector. | |
DoAdd(VectorT, VectorT) | Adds another vector to this vector and stores the result into the result vector. | |
DoConjugate | Complex conjugates vector and save result to result | |
DoConjugateDotProduct | Computes the dot product between the conjugate of this vector and another vector. | |
DoDivide | Divides each element of the vector by a scalar and stores the result in the result vector. | |
DoDivideByThis | Divides a scalar by each element of the vector and stores the result in the result vector. | |
DoDotProduct | Computes the dot product between this vector and another vector. | |
DoModulus | Computes the canonical modulus, where the result has the sign of the divisor, for each element of the vector for the given divisor. | |
DoModulusByThis | Computes the canonical modulus, where the result has the sign of the divisor, for the given dividend for each element of the vector. | |
DoMultiply | Multiplies a scalar to each element of the vector and stores the result in the result vector. | |
DoNegate | Negates vector and save result to result | |
DoOuterProduct | Computes the outer product M[i,j] = u[i]*v[j] of this and another vector and stores the result in the result matrix. | |
DoPointwiseAbs | ||
DoPointwiseAbsoluteMaximum(T, VectorT) | ||
DoPointwiseAbsoluteMaximum(VectorT, VectorT) | ||
DoPointwiseAbsoluteMinimum(T, VectorT) | ||
DoPointwiseAbsoluteMinimum(VectorT, VectorT) | ||
DoPointwiseAcos | ||
DoPointwiseAsin | ||
DoPointwiseAtan | ||
DoPointwiseAtan2(T, VectorT) | ||
DoPointwiseAtan2(VectorT, VectorT) | ||
DoPointwiseCeiling | ||
DoPointwiseCos | ||
DoPointwiseCosh | ||
DoPointwiseDivide | Pointwise divide this vector with another vector and stores the result into the result vector. | |
DoPointwiseExp | Pointwise applies the exponential function to each value and stores the result into the result vector. | |
DoPointwiseFloor | ||
DoPointwiseLog | Pointwise applies the natural logarithm function to each value and stores the result into the result vector. | |
DoPointwiseLog10 | ||
DoPointwiseMaximum(T, VectorT) | ||
DoPointwiseMaximum(VectorT, VectorT) | ||
DoPointwiseMinimum(T, VectorT) | ||
DoPointwiseMinimum(VectorT, VectorT) | ||
DoPointwiseModulus | 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. | |
DoPointwiseMultiply | Pointwise multiplies this vector with another vector and stores the result into the result vector. | |
DoPointwisePower(T, VectorT) | Pointwise raise this vector to an exponent and store the result into the result vector. | |
DoPointwisePower(VectorT, VectorT) | Pointwise raise this vector to an exponent vector and store the result into the result vector. | |
DoPointwiseRemainder | 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. | |
DoPointwiseRound | ||
DoPointwiseSign | ||
DoPointwiseSin | ||
DoPointwiseSinh | ||
DoPointwiseSqrt | ||
DoPointwiseTan | ||
DoPointwiseTanh | ||
DoRemainder | Computes the remainder (% operator), where the result has the sign of the dividend, for each element of the vector for the given divisor. | |
DoRemainderByThis | Computes the remainder (% operator), where the result has the sign of the dividend, for the given dividend for each element of the vector. | |
DoSubtract(T, VectorT) | Subtracts a scalar from each element of the vector and stores the result in the result vector. | |
DoSubtract(VectorT, VectorT) | Subtracts another vector to this vector and stores the result into the result vector. | |
DoSubtractFrom | Subtracts each element of the vector from a scalar and stores the result in the result vector. | |
DotProduct | Computes the dot product between this vector and another vector. | |
Enumerate | Returns an IEnumerable that can be used to iterate through all values of the vector. | |
Enumerate(Zeros) | Returns an IEnumerable that can be used to iterate through all values of the vector. | |
EnumerateIndexed | Returns an IEnumerable that can be used to iterate through all values of the vector and their index. | |
EnumerateIndexed(Zeros) | Returns an IEnumerable that can be used to iterate through all values of the vector and their index. | |
Equals(Object) |
Determines whether the specified Object is equal to this instance.
(Overrides ObjectEquals(Object)) | |
Equals(VectorT) | Indicates whether the current object is equal to another object of the same type. | |
Exists | Returns true if at least one element satisfies a predicate. Zero elements may be skipped on sparse data structures if allowed (default). | |
Exists2TOther | 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). | |
Exp | Computes the exponential of a vector pointwise | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object) | |
Find | 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). | |
Find2TOther | 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). | |
Floor | Computes the floor of a vector pointwise | |
Fold2TOther, TState | Applies a function to update the status with each value pair of two vectors and returns the resulting status. | |
ForAll | Returns true if all elements satisfy a predicate. Zero elements may be skipped on sparse data structures if allowed (default). | |
ForAll2TOther | 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). | |
GetHashCode |
Returns a hash code for this instance.
(Overrides ObjectGetHashCode) | |
GetType | Gets the Type of the current instance. (Inherited from Object) | |
InfinityNorm | Calculates the infinity norm of the vector. | |
L1Norm | Calculates the L1 norm of the vector, also known as Manhattan norm. | |
L2Norm | Calculates the L2 norm of the vector, also known as Euclidean norm. | |
Log | Computes the log of a vector pointwise | |
Log10 | Computes the log10 of a vector pointwise | |
Map(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). | |
MapTU(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). | |
Map2(FuncT, T, T, VectorT, Zeros) | Applies a function to each value pair of two vectors and returns the results as a new vector. | |
Map2(FuncT, T, T, VectorT, VectorT, Zeros) | Applies a function to each value pair of two vectors and replaces the value in the result vector. | |
MapConvertTU | 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). | |
MapIndexed(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). | |
MapIndexedTU(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). | |
MapIndexedConvertTU | 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). | |
MapIndexedInplace | 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). | |
MapInplace | 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). | |
Maximum | Returns the value of maximum element. | |
MaximumIndex | Returns the index of the maximum element. | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object) | |
Minimum | Returns the value of the minimum element. | |
MinimumIndex | Returns the index of the minimum element. | |
Modulus(T) | Computes the canonical modulus, where the result has the sign of the divisor, for each element of the vector for the given divisor. | |
Modulus(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. | |
ModulusByThis(T) | Computes the canonical modulus, where the result has the sign of the divisor, for the given dividend for each element of the vector. | |
ModulusByThis(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. | |
Multiply(T) | Multiplies a scalar to each element of the vector. | |
Multiply(T, VectorT) | Multiplies a scalar to each element of the vector and stores the result in the result vector. | |
Negate | Returns a negated vector. | |
Negate(VectorT) | Negates vector and save result to result | |
Norm | Computes the p-Norm. | |
Normalize | Normalizes this vector to a unit vector with respect to the p-norm. | |
OuterProduct(VectorT) | Computes the outer product M[i,j] = u[i]*v[j] of this and another vector. | |
OuterProduct(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. | |
OuterProduct(VectorT, VectorT) | ||
PointwiseAbs | Pointwise applies the abs function to each value | |
PointwiseAbs(VectorT) | Pointwise applies the abs function to each value | |
PointwiseAbsoluteMaximum(T) | Pointwise applies the absolute maximum with a scalar to each value. | |
PointwiseAbsoluteMaximum(VectorT) | Pointwise applies the absolute maximum with the values of another vector to each value. | |
PointwiseAbsoluteMaximum(T, VectorT) | Pointwise applies the absolute maximum with a scalar to each value. | |
PointwiseAbsoluteMaximum(VectorT, VectorT) | Pointwise applies the absolute maximum with the values of another vector to each value. | |
PointwiseAbsoluteMinimum(T) | Pointwise applies the absolute minimum with a scalar to each value. | |
PointwiseAbsoluteMinimum(VectorT) | Pointwise applies the absolute minimum with the values of another vector to each value. | |
PointwiseAbsoluteMinimum(T, VectorT) | Pointwise applies the absolute minimum with a scalar to each value. | |
PointwiseAbsoluteMinimum(VectorT, VectorT) | Pointwise applies the absolute minimum with the values of another vector to each value. | |
PointwiseAcos | Pointwise applies the acos function to each value | |
PointwiseAcos(VectorT) | Pointwise applies the acos function to each value | |
PointwiseAsin | Pointwise applies the asin function to each value | |
PointwiseAsin(VectorT) | Pointwise applies the asin function to each value | |
PointwiseAtan | Pointwise applies the atan function to each value | |
PointwiseAtan(VectorT) | Pointwise applies the atan function to each value | |
PointwiseAtan2(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' | |
PointwiseAtan2(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' | |
PointwiseBinary(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 | |
PointwiseBinary(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 | |
PointwiseBinary(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. | |
PointwiseBinary(ActionVectorT, VectorT, VectorT, VectorT) | Helper function to apply a binary function which takes two vectors and modifies the second one in place | |
PointwiseCeiling | Pointwise applies the ceiling function to each value | |
PointwiseCeiling(VectorT) | Pointwise applies the ceiling function to each value | |
PointwiseCos | Pointwise applies the cos function to each value | |
PointwiseCos(VectorT) | Pointwise applies the cos function to each value | |
PointwiseCosh | Pointwise applies the cosh function to each value | |
PointwiseCosh(VectorT) | Pointwise applies the cosh function to each value | |
PointwiseDivide(VectorT) | Pointwise divide this vector with another vector. | |
PointwiseDivide(VectorT, VectorT) | Pointwise divide this vector with another vector and stores the result into the result vector. | |
PointwiseExp | Pointwise applies the exponent function to each value. | |
PointwiseExp(VectorT) | Pointwise applies the exponent function to each value. | |
PointwiseFloor | Pointwise applies the floor function to each value | |
PointwiseFloor(VectorT) | Pointwise applies the floor function to each value | |
PointwiseLog | Pointwise applies the natural logarithm function to each value. | |
PointwiseLog(VectorT) | Pointwise applies the natural logarithm function to each value. | |
PointwiseLog10 | Pointwise applies the log10 function to each value | |
PointwiseLog10(VectorT) | Pointwise applies the log10 function to each value | |
PointwiseMaximum(T) | Pointwise applies the maximum with a scalar to each value. | |
PointwiseMaximum(VectorT) | Pointwise applies the maximum with the values of another vector to each value. | |
PointwiseMaximum(T, VectorT) | Pointwise applies the maximum with a scalar to each value. | |
PointwiseMaximum(VectorT, VectorT) | Pointwise applies the maximum with the values of another vector to each value. | |
PointwiseMinimum(T) | Pointwise applies the minimum with a scalar to each value. | |
PointwiseMinimum(VectorT) | Pointwise applies the minimum with the values of another vector to each value. | |
PointwiseMinimum(T, VectorT) | Pointwise applies the minimum with a scalar to each value. | |
PointwiseMinimum(VectorT, VectorT) | Pointwise applies the minimum with the values of another vector to each value. | |
PointwiseModulus(VectorT) | Pointwise canonical modulus, where the result has the sign of the divisor, of this vector with another vector. | |
PointwiseModulus(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. | |
PointwiseMultiply(VectorT) | Pointwise multiplies this vector with another vector. | |
PointwiseMultiply(VectorT, VectorT) | Pointwise multiplies this vector with another vector and stores the result into the result vector. | |
PointwisePower(T) | Pointwise raise this vector to an exponent. | |
PointwisePower(VectorT) | Pointwise raise this vector to an exponent and store the result into the result vector. | |
PointwisePower(T, VectorT) | Pointwise raise this vector to an exponent and store the result into the result vector. | |
PointwisePower(VectorT, VectorT) | Pointwise raise this vector to an exponent. | |
PointwiseRemainder(VectorT) | Pointwise remainder (% operator), where the result has the sign of the dividend, of this vector with another vector. | |
PointwiseRemainder(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. | |
PointwiseRound | Pointwise applies the round function to each value | |
PointwiseRound(VectorT) | Pointwise applies the round function to each value | |
PointwiseSign | Pointwise applies the sign function to each value | |
PointwiseSign(VectorT) | Pointwise applies the sign function to each value | |
PointwiseSin | Pointwise applies the sin function to each value | |
PointwiseSin(VectorT) | Pointwise applies the sin function to each value | |
PointwiseSinh | Pointwise applies the sinh function to each value | |
PointwiseSinh(VectorT) | Pointwise applies the sinh function to each value | |
PointwiseSqrt | Pointwise applies the sqrt function to each value | |
PointwiseSqrt(VectorT) | Pointwise applies the sqrt function to each value | |
PointwiseTan | Pointwise applies the tan function to each value | |
PointwiseTan(VectorT) | Pointwise applies the tan function to each value | |
PointwiseTanh | Pointwise applies the tanh function to each value | |
PointwiseTanh(VectorT) | Pointwise applies the tanh function to each value | |
PointwiseUnary(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 | |
PointwiseUnary(ActionVectorT, VectorT) | Helper function to apply a unary function which modifies a vector in place. | |
Remainder(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. | |
Remainder(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. | |
RemainderByThis(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. | |
RemainderByThis(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. | |
Round | Computes the rounded value of a vector pointwise | |
SetSubVector | Copies the values of a given vector into a region in this vector. | |
SetValues | Set the values of this vector to the given values. | |
Sin | Computes the sin of a vector pointwise | |
Sinh | Computes the sinh of a vector pointwise | |
Sqrt | Computes the sqrt of a vector pointwise | |
Subtract(T) | Subtracts a scalar from each element of the vector. | |
Subtract(VectorT) | Subtracts another vector from this vector. | |
Subtract(T, VectorT) | Subtracts a scalar from each element of the vector and stores the result in the result vector. | |
Subtract(VectorT, VectorT) | Subtracts another vector to this vector and stores the result into the result vector. | |
SubtractFrom(T) | Subtracts each element of the vector from a scalar. | |
SubtractFrom(T, VectorT) | Subtracts each element of the vector from a scalar and stores the result in the result vector. | |
SubVector | Creates a vector containing specified elements. | |
Sum | Computes the sum of the vector's elements. | |
SumMagnitudes | Computes the sum of the absolute value of the vector's elements. | |
Tan | Computes the tan of a vector pointwise | |
Tanh | Computes the tanh of a vector pointwise | |
ToArray | 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. | |
ToColumnMatrix | Create a matrix based on this vector in column form (one single column). | |
ToRowMatrix | Create a matrix based on this vector in row form (one single row). | |
ToString |
Returns a string that summarizes this vector.
The maximum number of cells can be configured in the Control class.
(Overrides ObjectToString) | |
ToString(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. | |
ToString(Int32, Int32, String, IFormatProvider) | Returns a string that summarizes this vector, column by column and with a type header. | |
ToTypeString | Returns a string that describes the type, dimensions and shape of this vector. | |
ToVectorString(String, IFormatProvider) | Returns a string that represents the content of this vector, column by column. | |
ToVectorString(Int32, Int32, String, IFormatProvider) | Returns a string that represents the content of this vector, column by column. | |
ToVectorString(Int32, Int32, String, String, String, FuncT, String) | Returns a string that represents the content of this vector, column by column. | |
ToVectorStringArray |
Name | Description | |
---|---|---|
Addition(T, VectorT) | Adds a scalar to each element of a vector. | |
Addition(VectorT, T) | Adds a scalar to each element of a vector. | |
Addition(VectorT, VectorT) | Adds two Vectors together and returns the results. | |
Division(T, VectorT) | Divides a scalar with a vector. | |
Division(VectorT, T) | Divides a vector with a scalar. | |
Division(VectorT, VectorT) | Pointwise divides two Vectors. | |
DotDivide(VectorT, VectorT) | ||
DotHat(VectorT, T) | ||
DotHat(VectorT, VectorT) | ||
DotMultiply(VectorT, VectorT) | ||
DotPercent(VectorT, VectorT) | ||
Modulus(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. | |
Modulus(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. | |
Modulus(VectorT, VectorT) | Computes the pointwise remainder (% operator), where the result has the sign of the dividend, of each element of two vectors. | |
Multiply(T, VectorT) | Multiplies a vector with a scalar. | |
Multiply(VectorT, T) | Multiplies a vector with a scalar. | |
Multiply(VectorT, VectorT) | Computes the dot product between two Vectors. | |
Subtraction(T, VectorT) | Subtracts each element of a vector from a scalar. | |
Subtraction(VectorT, T) | Subtracts a scalar from each element of a vector. | |
Subtraction(VectorT, VectorT) | Subtracts two Vectors and returns the results. | |
UnaryNegation(VectorT) | Returns a Vector containing the negated values of rightSide. | |
UnaryPlus(VectorT) | Returns a Vector containing the same values of rightSide. |
Name | Description | |
---|---|---|
AddRangeT |
Adds a range of items to a collection.
(Defined by ListExtensions) | |
AlmostEqualT |
Compares two vectors and determines if they are equal within the specified maximum error.
(Defined by Precision) | |
AlmostEqualT |
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) | |
AlmostEqualRelativeT |
Compares two vectors and determines if they are equal within the specified maximum error.
(Defined by Precision) | |
AlmostEqualRelativeT |
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) | |
ElementsAtT | (Defined by VectorMath) | |
ElementsWhereT | (Defined by VectorMath) | |
ElementsWhereT | (Defined by VectorMath) | |
ExchangePositionsT |
Exchange the positions of two items in a list.
(Defined by ListExtensions) | |
FillWithT | (Defined by ListExtensions) | |
FillWithT | (Defined by VectorMath) | |
FirstOrT |
Returns the first value of the enumeration, or, if the enumeration is empty, the other value provided in the arguments.
(Defined by EnumerableExtensions) | |
FlattenFromRootToLeavesT |
Converts a recursive data structure into a flat list. The root element is enumerated before its corresponding child element(s).
(Defined by EnumerableExtensions) | |
ForEachDoT |
Executes an action for each element of the sequence.
(Defined by EnumerableExtensions) | |
GetPossibleStepsToMoveTowardsHigherIndicesT |
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) | |
GetPossibleStepsToMoveTowardsLowerIndicesT |
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) | |
HasSingleElementT |
Determines whether the specified enumeration has exactly one element.
(Defined by EnumerableExtensions) | |
IndexOfT |
Gets the index of an item in a enumeration or list.
(Defined by ListExtensions) | |
IndexOfFirstT |
Gets the index the of first item in list that fulfills the predicate predicate (Defined by ListExtensions) | |
IndexOfFirstT |
Gets the index the of first item in list that fulfills the predicate predicate (Defined by ListExtensions) | |
IndexOfLastT |
Gets the index the of last item in list that fulfills the predicate predicate (Defined by ListExtensions) | |
IndexOfMaxT | Return 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) | |
IndexOfMinT | Return 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) | |
IndicesInt32AndValuesWhereT |
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) | |
IndicesInt32AndValuesWhereT |
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) | |
IndicesInt32WhereT |
Returns the indices of the elements which fullfill a given condition, given by the element's value.
(Defined by EnumerableExtensions) | |
IndicesInt32WhereT |
Returns the indices of the elements which fullfill a given condition, given by the element's value and its index.
(Defined by EnumerableExtensions) | |
IndicesOfMinMaxT | Return 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) | |
IsEmptyT |
Determines whether the specified enumeration is empty.
(Defined by EnumerableExtensions) | |
JoinConditionalT, T2 |
Takes a join of two sequences, but only takes into account those pair, which fulfill a given condition.
(Defined by EnumerableExtensions) | |
JoinConditionalT, T2, TResult |
Takes a join of two sequences, but only takes into account those pair, which fulfill a given condition.
(Defined by EnumerableExtensions) | |
LastOrT |
Returns the last value of the enumeration, or, if the enumeration is empty, the other value provided in the arguments.
(Defined by EnumerableExtensions) | |
MaxElementT, 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) | |
MaxOrDefaultT, M |
Evaluates the maximum of a enumeration of elements, or returns a default value if the series is empty.
(Defined by EnumerableExtensions) | |
MoveItemToIndexT |
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) | |
MoveSelectedItemsT |
Moves the selected items towards higher indices (for steps > 0) or lower indices (for steps < 0).
(Defined by ListExtensions) | |
MoveSelectedItemsToMaximumIndexT |
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) | |
MoveSelectedItemsToMinimumIndexT |
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) | |
MoveSelectedItemsTowardsHigherIndicesT |
Moves the selected items towards higher indices.
(Defined by ListExtensions) | |
MoveSelectedItemsTowardsLowerIndicesT |
Moves the selected items towards lower indices.
(Defined by ListExtensions) | |
RemoveWhereT |
Removes all items for which the predicate function returns true. (Defined by ListExtensions) | |
RemoveWhereT |
Removes all items for which the predicate function returns true. (Defined by ListExtensions) | |
SelectCombinationT |
Select a random combination, without repetition, from a data sequence by selecting k elements in original order.
(Defined by Combinatorics) | |
SelectCombinationWithRepetitionT |
Select a random combination, with repetition, from a data sequence by selecting k elements in original order.
(Defined by Combinatorics) | |
SelectPermutationT |
Select a random permutation from a data sequence by returning the provided data in random order.
Implemented using Fisher-Yates Shuffling.
(Defined by Combinatorics) | |
SelectVariationT |
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) | |
SelectVariationWithRepetitionT |
Select a random variation, with repetition, from a data sequence by randomly selecting k elements in random order.
(Defined by Combinatorics) | |
SetValuesT | (Defined by VectorMath) | |
TakeAllButLastT |
Takes all elements of the enumeration except the last element.
(Defined by EnumerableExtensions) | |
TakeFromUpperIndexExclusiveDownToLowerIndexInclusiveT |
Takes all elements of a list, starting from index upperIndexExclusive - 1 down to the index lowerIndexInclusive.
(Defined by EnumerableExtensions) | |
TakeFromUpperIndexInclusiveDownToLowerIndexInclusiveT |
Takes all elements of a list, starting from index upperIndexInclusive down to the index lowerIndexInclusive.
(Defined by EnumerableExtensions) | |
ThisOrEmptyT |
Returns either the provided enumeration, or if it is null, an empty enumeration.
(Defined by EnumerableExtensions) | |
TryGetFirstAndLastT |
Returns true and the first and last value of the enumeration, or, if the enumeration is empty, returns false.
(Defined by EnumerableExtensions) | |
TryGetSingleElementT |
Try to get the one and only element of the collection.
(Defined by EnumerableExtensions) |