Vector Class
            Contains static methods that operate on vectors.
            
Definition
Namespace: Extreme.Mathematics
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
    C#
    
 
 
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
public static class Vector- Inheritance
 - Object → Vector
 
Methods
| Abs<T> | Returns a vector whose elements are the absolute values of the components of another vector. | 
| Abs | Computes the absolute values of the elements of a vector. | 
| Absolute | Returns the value of the element in this vector that has the largest absolute value. | 
| Absolute | Returns the value of the element in this vector that has the largest absolute value. | 
| Absolute | Returns the value of the element in this vector that has the largest absolute value. | 
| Absolute | Returns the value of the element in this vector that has the largest absolute value. | 
| Absolute | Returns the index of the component of a vector with the largest absolute value. | 
| Absolute | Returns the value of the element in this vector that has the smallest absolute value. | 
| Absolute | Returns the value of the element in this vector that has the smallest absolute value. | 
| Absolute | Returns the value of the element in this vector that has the smallest absolute value. | 
| Absolute | Returns the value of the element in this vector that has the smallest absolute value. | 
| Absolute | Returns the index of the component of a vector with the largest absolute value. | 
| Acos<T> | Computes the inverse cosine of the elements of a vector. | 
| Acosh<T> | Computes the inverse hyperbolic cosine of the elements of a vector. | 
| Acosh | Computes the inverse hyperbolic cosine of the elements of a vector. | 
| Acos | Computes the inverse cosine of the elements of a vector. | 
| Add<T>(Vector<T>, T) | Adds a vector and a constant. | 
| Add<T>(Vector<T>, Vector<T>) | Adds two vectors. | 
| Add<T>(T, Vector<T>) | Adds a vector and a constant. | 
| Add | Adds a vector and a constant. | 
| Add | Adds two vectors. | 
| Add | Adds a vector and a constant. | 
| Add | Adds the product of a matrix and a vector to a vector. | 
| Add | Adds the product of a matrix and a vector to a vector. | 
| Add | Adds the scaled product of a matrix and a vector to a vector. | 
| Add | Adds two vectors. | 
| Add | Adds two vectors. | 
| Add | Adds the scaled product of a matrix and a vector to a vector. | 
| Add | Adds the scaled product of a matrix and a vector to a vector. | 
| Add | Adds the scaled product of a matrix and a vector to a vector. | 
| Align<T, U>(Vector<T>, Vector<U>) | Aligns two vectors along their indexes using the default join type. | 
| Align<T, U>(Vector<T>, Vector<U>, JoinType) | Aligns two vectors along their indexes. | 
| All( | Returns whether all values in a vector are true. | 
| All<T>(Vector<T>, Func<T, Boolean>) | Returns whether all values in a vector satisfy the specified predicate. | 
| All<T1, T2>(Vector<T1>, Vector<T2>, Func<T1, T2, Boolean>) | Returns whether all pairs of corresponding values in two vector satisfy the specified predicate. | 
| And | Computes the logical conjunction of two boolean vectors. | 
| Angle<T> | Returns the angle between two vectors. | 
| Any( | Returns whether at least one value in a vector is true. | 
| Any<T>(Vector<T>, Func<T, Boolean>) | Returns whether at least one value in a vector satisfies a predicate. | 
| Any<T1, T2>(Vector<T1>, Vector<T2>, Func<T1, T2, Boolean>) | Returns whether all pairs of corresponding values in two vector satisfy the specified predicate. | 
| Asin<T> | Computes the inverse sine of the elements of a vector. | 
| Asinh<T> | Computes the inverse hyperbolic sine of the elements of a vector. | 
| Asinh | Computes the inverse hyperbolic sine of the elements of a vector. | 
| Asin | Computes the inverse sine of the elements of a vector. | 
| Atan<T> | Computes the inverse tangent of the elements of a vector. | 
| Atan2<T> | Computes the four-quadrant inverse tangent of the corresponding elements of two matrices. | 
| Atan2Into<T> | Computes the four-quadrant inverse tangent of the corresponding elements of two matrices. | 
| Atanh<T> | Computes the inverse hyperbolic tangent of the elements of a vector. | 
| Atanh | Computes the inverse hyperbolic tangent of the elements of a vector. | 
| Atan | Computes the inverse tangent of the elements of a vector. | 
| Bin<T>(IVector, IntervalIndex<T>) | Sorts values into bins and returns the result as a categorical vector. | 
| Bin<T>(Vector<T>, IntervalIndex<T>) | Sorts values into bins and returns the result as a categorical vector. | 
| Bin<T>(IVector, IList<T>, SpecialBins) | Sorts values into bins and returns the result as a categorical vector. | 
| Bin<T>(Vector<T>, IList<T>, SpecialBins) | Sorts values into bins and returns the result as a categorical vector. | 
| Bin<T>(Vector<T>, Int32, SpecialBins) | Sorts values into bins and returns the result as a categorical vector. | 
| Bray | Returns the Bray-Curtis distance between two vectors. | 
| Canberra | Returns the Canberra distance between two vectors. | 
| Ceiling<T> | Returns a vector whose elements are the components of another vector rounded up to the nearest integer. | 
| Ceiling | Computes the smallest integers greater than the elements of a vector. | 
| Clip<T> | Returns a vector whose elements are the components of a vector constrained to be within the specified interval. | 
| Clip | Returns a vector whose elements are the components of a vector constrained to be within the specified interval. | 
| Conjugate<T> | Returns the conjugate of a vector. | 
| Conjugate | Conjugates the elements of a vector. | 
| Convolution<T>(Vector<T>, Vector<T>) | Calculates the convolution of two vectors. | 
| Convolution<T>(Vector<Complex<T>>, Vector<Complex<T>>) | Calculates the convolution of two vectors. | 
| Correlation | Returns a distance that is a function of the correlation between two vectors. | 
| Cos<T> | Computes the cosine of the elements of a vector. | 
| Cosh<T> | Computes the hyperbolic cosine of the elements of a vector. | 
| Cosh | Computes the hyperbolic cosine of the elements of a vector. | 
| Cosine | Returns the cosine of the angle between two vectors. | 
| Cos | Computes the cosine of the elements of a vector. | 
| Count | Returns the number of elements in a boolean vector that are false. | 
| Count | Returns the number of elements in a boolean vector that are true. | 
| Create<T>(T[]) | Constructs a new vector with the specified elements. | 
| Create<T>(Int32) | Constructs a new vector with the specified length. | 
| Create<T>(IList<T>, ArrayMutability) | Constructs a new vector with the specified elements. | 
| Create<T>(T[], Boolean, ArrayMutability) | Constructs a new dense vector with the specified elements. | 
| Create<T>(Int32, ArraySlice<T>, ArrayMutability) | Constructs a new dense vector. | 
| Create<T>(Int32, Func<Int32, T>, ArrayMutability) | Constructs a new dense vector. | 
| Create<T>(Int32, T[], Boolean, ArrayMutability) | Constructs a new dense vector with the specified elements. | 
| Create<T>(Int32, T[], Int32, Int32, ArrayMutability) | Constructs a new dense vector. | 
| Create<T, K>(IDictionary<K, T>) | Creates an indexed vector from a dictionary. | 
| Create<T, K>(IDictionary<K, T>, IList<K>) | Creates an indexed vector from a dictionary. | 
| Create<T, K>(Int32, Index<K>) | Creates an indexed vector of the specified length with the specified index. | 
| Create<T, K>(IList<T>, IList<K>, ArrayMutability) | Creates an indexed vector with the specified values and corresponding keys. | 
| Create | Constructs a new BlockVector<T> with the specified length and non-zero range. | 
| Create | Constructs a new BlockVector<T> with the specified length and non-zero elements. | 
| Create | Constructs a categorical vector from a list of values. | 
| Create | Constructs a new categorical vector of the specified length. | 
| Create | Constructs a categorical vector from a list of values. | 
| Create | Constructs a categorical vector from a list of values. | 
| Create | Constructs a categorical vector from a list of values. | 
| Create | Constructs a categorical vector from an index and level indexes. | 
| Create | Constructs a new constant vector. | 
| Create | Constructs a new indexed vector. | 
| Create | Constructs a new vector whose elements are at the specified indexes in an array. | 
| Create | Constructs a new vector with elements evenly spaced in a base 10 logarithmic scale. | 
| Create | Constructs a new vector with elements evenly spaced in a logarithmic scale. | 
| Create | Constructs a new vector with elements evenly spaced in a logarithmic scale. | 
| Create | Constructs a new vector with uniform random numbers between 0 and 1. | 
| Create | Constructs a new vector with uniform random numbers between 0 and 1. | 
| Create | Constructs a new vector with normal random numbers with zero mean and unit standard deviation. | 
| Create | Constructs a new vector with normal random numbers with zero mean and unit standard deviation. | 
| Create | Constructs a new vector with elements from 0 up to the specified value. | 
| Create | Constructs a new vector with elements from the specified range.. | 
| Create | Constructs a new vector with elements from the specified range.. | 
| Create | Constructs a new vector with elements from the specified range.. | 
| Create | Constructs a new sparse vector of the specified length. | 
| Create | Constructs a new sparse vector of the specified length. | 
| Create | Constructs a new sparse vector of the specified length. | 
| Create | Constructs a new sparse vector with the specified elements. | 
| Create | Constructs a new sparse vector of the specified length. | 
| Cross | Returns the cross product of two 3D vectors. | 
| Difference<T> | Computes the forward or backward difference of a vector. | 
| Difference | Computes the forward or backward difference of a vector. | 
| Divide<T> | Divides a vector by a constant. | 
| Dot | Returns the dot product of two vectors. | 
| Elementwise | Multiplies the elements of a vector by the corresponding elements of another vector. | 
| Elementwise | Multiplies a vector element-wise by another vector. | 
| Elementwise | Divides a vector element-wise by another vector. | 
| Elementwise | Divides a scalar by each element of a vector. | 
| Elementwise | Divides a vector element-wise by another vector. | 
| Elementwise | Divides a scalar by each element of a vector. | 
| Elementwise | Multiplies the elements of a vector by the corresponding elements of another vector. | 
| Elementwise | Multiplies a vector element-wise by another vector. | 
| Elementwise | Raises the element of a vector to a constant power. | 
| Elementwise | Raises the elements of a vector to a power from the corresponding elements in another vector. | 
| Elementwise | Raises the elements of a vector to an integer power from the corresponding elements in another vector. | 
| Elementwise | Raises the element of a vector to a constant power. | 
| Elementwise | Raises the element of a vector to a constant power. | 
| Elementwise | Raises the elements of a vector to a power from the corresponding elements in another vector. | 
| Elementwise | Raises the elements of a vector to an integer power from the corresponding elements in another vector. | 
| Elementwise | Raises the element of a vector to a constant power. | 
| Equal | Checks if the elements of one vector are equal to a constant. | 
| Equal | Checks if the elements of one vector are equal to the corresponding elements of another vector. | 
| Equal | Checks if the elements of one vector are equal to a constant. | 
| Equal | Checks if the elements of one vector are equal to a constant. | 
| Equal | Checks if the elements of one vector are equal to a constant. | 
| Equal | Checks if the elements of one vector are equal to the corresponding elements of another vector. | 
| Euclidean | Returns the classic Euclidean distance between two vectors. | 
| Exp<T> | Computes the exponential of the elements of a vector. | 
| Exp | Computes the exponential of the elements of a vector. | 
| Floor<T> | Returns a vector whose elements are the components of another vector rounded down to the nearest integer. | 
| Floor | Computes the largest integers smaller than the elements of a vector. | 
| Fourier | Returns the Fourier transform of a vector. | 
| Fourier | Returns the Fourier transform of a vector. | 
| Greater | Checks if the elements of one vector are greater than a constant. | 
| Greater | Checks if the elements of one vector are greater than the corresponding elements of another vector. | 
| Greater | Checks if the elements of one vector are greater than a constant. | 
| Greater | Checks if the elements of one vector are greater than a constant. | 
| Greater | Checks if the elements of one vector are greater than a constant. | 
| Greater | Checks if the elements of one vector are greater than the corresponding elements of another vector. | 
| Greater | Checks if the elements of one vector are greater than or equal to a constant. | 
| Greater | Checks if the elements of one vector are greater than or equal to the corresponding elements of another vector. | 
| Greater | Checks if the elements of one vector are greater than or equal to a constant. | 
| Greater | Checks if the elements of one vector are greater than or equal to a constant. | 
| Greater | Checks if the elements of one vector are greater than or equal to a constant. | 
| Greater | Checks if the elements of one vector are greater than or equal to the corresponding elements of another vector. | 
| Hypot<T> | Computes the square root of the sum of the squared corresponding elements of two matrices. | 
| Hypot | Computes the square root of the sum of the squared corresponding elements of two matrices. | 
| Inverse | Returns the inverse Fourier transform of a vector. | 
| Inverse | Returns the inverse Fourier transform of a vector. | 
| Join<T>(Vector<T>[]) | Joins vectors together to form one large vector. | 
| Join<T>(Vector<T>, Vector<T>) | Joins two vectors. | 
| Less | Checks if the elements of one vector are less than a constant. | 
| Less | Checks if the elements of one vector are less than the corresponding elements of another vector. | 
| Less | Checks if the elements of one vector are less than a constant. | 
| Less | Checks if the elements of one vector are less than a constant. | 
| Less | Checks if the elements of one vector are less than a constant. | 
| Less | Checks if the elements of one vector are greater than the corresponding elements of another vector. | 
| Less | Checks if the elements of one vector are less than or equal to a constant. | 
| Less | Checks if the elements of one vector are less than or equal to the corresponding elements of another vector. | 
| Less | Checks if the elements of one vector are less than or equal to a constant. | 
| Less | Checks if the elements of one vector are less than or equal to a constant. | 
| Less | Checks if the elements of one vector are less than or equal to a constant. | 
| Less | Checks if the elements of one vector are greater than or equal to the corresponding elements of another vector. | 
| Log<T>(Vector<T>) | Returns a vector whose elements are the logarithms of the components of another vector. | 
| Log<T>(Vector<T>, T) | Returns a vector whose elements are the logarithms of the components of another vector. | 
| Log10<T> | Returns a vector whose elements are the base 10 logarithms of the components of another vector. | 
| Log10Into<T> | Computes the base 10 logarithm of the elements of a vector. | 
| Log | Computes the logarithm of the elements of a vector. | 
| Log | Computes the logarithm of the elements of a vector. | 
| Manhattan | Returns the Manhattan (city block) distance between two vectors. | 
| Map<T, U>(Func<T, U>, Vector<T>) | Applies a function to the elements of a vector and returns the result in a new vector. | 
| Map<T, U>(Func<Int32, T, U>, Vector<T>) | Applies a function to the elements of a vector and returns the result in a new vector. | 
| Map<T, U, V>(Func<T, U, V>, Vector<T>, Vector<U>) | Applies a function to the corresponding elements of two vectors and returns the result in a new vector. | 
| Map | Applies a function to the elements of a vector. | 
| Map | Applies a function to the corresponding elements of two vectors and returns the result in a third vector. | 
| Max<T>(Vector<T>) | Returns the value of the largest component of a vector. | 
| Max<T>(Vector<T>, T) | Returns a vector whose elements are the maximum of the components of a vector and a real number. | 
| Max<T>(Vector<T>, Vector<T>) | Returns a vector whose elements are the maximums of the components of two vectors. | 
| Max<T>(T, Vector<T>) | Returns a vector whose elements are the maximum of the components of a vector and a real number. | 
| Maximum | Returns the largest distance between two vectors. | 
| Max | Returns the index of the largest component of a vector. | 
| Max | Returns a vector whose elements are the maximum of the components of a vector and a real number. | 
| Max | Returns a vector whose elements are the maximums of the components of two vectors. | 
| Min<T>(Vector<T>) | Returns the value of the smallest component of a vector. | 
| Min<T>(Vector<T>, T) | Returns a vector whose elements are the minimum of the components of a vector and a real number. | 
| Min<T>(Vector<T>, Vector<T>) | Returns a vector whose elements are the minimums of the components of two vectors. | 
| Min<T>(T, Vector<T>) | Returns a vector whose elements are the minimum of the components of a vector and a real number. | 
| Min | Returns the index of the smallest component of a vector. | 
| Min | Returns a vector whose elements are the minimum of the components of a vector and a real number. | 
| Min | Returns a vector whose elements are the minimums of the components of two vectors. | 
| Minkowski | Returns the Minkowski distance between two vectors. | 
| Multiply<T>(Matrix<T>, Vector<T>) | Multiplies a vector by a matrix. | 
| Multiply<T>(Vector<T>, T) | Multiplies a vector by a constant. | 
| Multiply<T>(T, Vector<T>) | Multiplies a vector by a constant. | 
| Multiply<T>(Matrix<T>, TransposeOperation, Vector<T>) | Multiplies a vector by a matrix. | 
| Multiply | Multiplies a vector by a matrix. | 
| Multiply | Multiplies a vector by a constant. | 
| Multiply | Multiplies a vector by a constant. | 
| Multiply | Multiplies a vector by a matrix. | 
| Negate<T> | Negates a vector. | 
| Negate | Negates a vector. | 
| Not | Computes the logical negation of a boolean vector. | 
| Not | Checks if the elements of one vector are not equal to a constant. | 
| Not | Checks if the elements of one vector are not equal to the corresponding elements of another vector. | 
| Not | Checks if the elements of one vector are not equal to a constant. | 
| Not | Checks if the elements of one vector are not equal to the corresponding elements of another vector. | 
| Not | Checks if the elements of one vector are not equal to a constant. | 
| Not | Checks if the elements of one vector are not equal to a constant. | 
| Or | Computes the logical disjunction of two boolean vectors. | 
| Permute<T> | Permutes a vector. | 
| Product<T> | Returns the product of the components of a vector. | 
| Project<T> | Returns the projection of one vector onto another. | 
| Reciprocal<T> | Returns a vector whose elements are the inverses (reciprocals) of the components of another vector. | 
| Reciprocal | Computes the inverses (reciprocals) of the elements of a vector. | 
| Round<T> | Returns a vector whose elements are the components of another vector rounded to the nearest integer. | 
| Sin<T> | Computes the sine of the elements of a vector. | 
| Sinh<T> | Computes the hyperbolic sine of the elements of a vector. | 
| Sinh | Computes the hyperbolic sine of the elements of a vector. | 
| Sin | Computes the sine of the elements of a vector. | 
| Sort<T>(Vector<T>) | Sorts a vector in ascending order. | 
| Sort<T>(Vector<T>, SortOrder) | Sorts a vector in the specified order. | 
| Sort<T>(Vector<T>, SortOrder, Permutation) | Sorts a vector in the specified order and also returns the sorting permutation. | 
| Split | Splits a vector according to the specified grouping. | 
| Split | Splits a vector according to the specified grouping. | 
| Sqrt<T> | Computes the square root of the elements of a vector. | 
| Sqrt | Computes the square root of the elements of a vector. | 
| Squared | Returns the norm of the difference of two vectors. | 
| Squared | Returns the square of the Euclidean distance between two vectors. | 
| Subtract<T>(Vector<T>, T) | Subtracts a constant from a vector. | 
| Subtract<T>(Vector<T>, Vector<T>) | Subtracts two vectors. | 
| Subtract<T>(T, Vector<T>) | Subtracts a vector from a constant. | 
| Subtract | Subtracts two vectors. | 
| Subtract | Subtracts one vector from another. | 
| Subtract | Subtracts a vector from a constant. | 
| Sum<T> | Returns the sum of the components of a vector. | 
| Swap<T> | Swaps the elements of two vectors. | 
| Tan<T> | Computes the tangent of the elements of a vector. | 
| Tanh<T> | Computes the hyperbolic tangent of the elements of a vector. | 
| Tanh | Computes the hyperbolic tangent of the elements of a vector. | 
| Tan | Computes the tangent of the elements of a vector. | 
| Xor | Computes the exclusive disjunction of two boolean vectors. |