Vector<T> Class
Represents a vector, a one-dimensional array of
real numbers.
Definition
Namespace: Numerics.NET
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3
C#
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3
public abstract class Vector<T> : IEnumerable,
IFormattable, IList<T>, ICollection<T>, IEnumerable<T>, IEquatable<Vector<T>>,
ISummarizable, IVector, IDataFrame, ICloneable, ISerializable,
IStructuralEquatable, IStructuralComparable
- Inheritance
- Object → Vector<T>
- Derived
- Implements
- IDataFrame, ISummarizable, IVector, ICollection<T>, IEnumerable<T>, IList<T>, IEnumerable, IStructuralComparable, IStructuralEquatable, ICloneable, IEquatable<Vector<T>>, IFormattable, ISerializable
Type Parameters
- T
Remarks
A vector class represents a one-dimensional array of T precision floating-point numbers.
A vector class provides methods and properties for all the common operations on vectors, including norms, dot products, as well as retrieving extreme values from a vector.
Overloaded versions of the major arithmetic operators are provided for languages that support them. For languages that don't support operator overloading, equivalent static methods are supplied.
To allow for greater efficiency, overloaded instance methods are available for many compound operations on vectors.
Constructors
Vector<T>(Int32, ArrayAttributes) | Constructs a new vector with the specified number of elements. |
Vector<T>(SerializationInfo, StreamingContext) | Constructs a new vector from serialization values. |
Properties
Attributes | Gets attributes associated with the vector. |
Can | Gets whether the vector can be reshaped into a matrix. |
Count |
Gets the number of items that are not missing.
Preliminary |
Element | Gets the element type of the vector. |
Format | Gets or sets the format to use for each element when creating a string representation of the vector. |
Index |
Gets or sets the index of labels for the vector.
Preliminary |
IsImmutable | Gets whether the vector's elements are immutable. |
IsRead | Gets whether the vector can be written to. |
IsSparse | Gets a value that indicates whether the vector is sparse. |
Item[Func<T, Boolean>] | Gets or sets the elements of a vector that match the specified condition. |
Item[IEnumerable<Int32>] | Gets or sets the elements of the vector with the specified indexes. |
Item[Index] | Gets or sets a specific element of this vector. |
Item[Int32] | Gets or sets a specific element of this vector. |
Item[Range] | Gets or sets a range of elements of the vector. |
Item[Range] | Gets or sets a range of elements of the vector. |
Item[Vector<Boolean>] | Gets or sets the elements of a vector that match the specified condition. |
Length | Gets the number of elements in the vector. |
May | Gets or sets whether the vector may contain missing values that require special handling in calculations. |
Missing | Gets or sets the value that is used to represent missing values. |
Missing | Gets how missing values are represented in the vector. |
Name | Gets or sets the name of the vector. |
Nonzero | Gets the number of nonzero elements in the vector. |
Nonzero | Gets a collection of IndexValuePair<T> objects representing the nonzero elements of this instance. |
Precedence | Infrastructure. This property supports the Numerics.NET infrastructure and is not intended to be used directly from your code. |
Methods
Abs | Computes the absolute values of the elements of a vector. |
Abs | Computes the absolute values of the elements of a vector in-place. |
Absolute | Returns the index of the element in this vector that has the largest absolute value. |
Absolute | Returns the index of the element in this vector that has the smallest absolute value. |
Accumulate<TAccumulator>(TAccumulator) | Adds the elements of the vector to the specified accumulator. |
Accumulate<TAccumulator>(TAccumulator, Int32, Int32) | Adds the elements of the vector to the specified accumulator. |
Accumulate | Adds the elements of the vector that match a predicate to the specified accumulator. |
Accumulate | Adds the elements of the vector that match a predicate to the specified accumulator. |
Acos | Computes the inverse cosine of the elements of a vector. |
Acosh | Computes the inverse hyperbolic cosine of the elements of a vector. |
Acosh | Computes the inverse hyperbolic cosine of the elements of a vector in-place. |
Acos | Computes the inverse cosine of the elements of a vector in-place. |
Add( | Adds a vector and a constant. |
Add( | Adds a vector and a constant. |
Add | Adds a constant to a vector in-place. |
Add | Adds two vectors. |
Add | Adds a constant to a vector. |
Add | Adds another vector to this vector in-place. |
Add | Adds a vector and a constant. |
Add | Adds the product of a matrix and a Vector<T> to this Vector<T>. |
Add | Adds the product of a matrix and a Vector<T> to this Vector<T>. |
Add | Adds two vectors. |
Add | Adds two vectors. |
Add | Adds a scaled vector to this vector. |
Add | Adds the scaled product of a matrix and a Vector<T> to this Vector<T>. |
Add | Adds the scaled product of a matrix and a vector in-place to a vector. |
Aggregate( | Applies the specified aggregator to the vector. |
Aggregate( | Applies the specified aggregator to the vector. |
Aggregate<TResult>(AggregatorGroup<TResult>) | Applies the specified aggregator to the vector. |
Aggregate<TResult>(Aggregator<T, TResult>, Nullable<Boolean>) | Applies the specified aggregator to the vector. |
Aggregate<TResult>(AggregatorGroup<TResult>, Boolean) | Applies the specified aggregator to the vector. |
Aggregate | Returns a new vector that aggregates the columns according to the specified grouping. |
Aggregate | Aggregates the vector according to the specified grouping. |
Aggregate | Returns a new vector that aggregates the columns according to the specified grouping. |
Aggregate | Returns a new matrix that aggregates the elements according to the specified pivot grouping. |
Aggregate | Returns a new matrix that aggregates the elements according to the specified pivot grouping. |
All | Returns whether all the elements of the vector satisfy a condition. |
Angle | Returns the angle between two vectors. |
Any | Returns whether any of the elements of the vector satisfy a condition. |
AsCategorical( | Returns a categorical vector containing the same data as this vector. |
AsCategorical( | Returns a categorical vector containing the same data as this vector. |
AsDense | Returns this vector as a dense vector. |
AsDense | Returns this vector as a dense vector. |
Asin | Computes the inverse sine of the elements of a vector. |
AsIndex |
Converts a vector to an index.
Preliminary |
Asinh | Computes the inverse hyperbolic sine of the elements of a vector. |
Asinh | Computes the inverse hyperbolic sine of the elements of a vector in-place. |
Asin | Computes the inverse sine of the elements of a vector in-place. |
Atan2As | Computes the four-quadrant inverse tangent of the corresponding elements of two matrices. |
Atan2As | Computes the four-quadrant inverse tangent of the elements of a vector. |
Atan | Computes the inverse tangent of the elements of a vector. |
Atanh | Computes the inverse hyperbolic tangent of the elements of a vector. |
Atanh | Computes the inverse hyperbolic tangent of the elements of a vector in-place. |
Atan | Computes the inverse tangent of the elements of a vector in-place. |
Broadcast | Broadcasts the elements of the vector along the specified dimension. |
Broadcast | Broadcasts the elements of the vector along the specified dimension. |
By<K> | Enables accessing elements of an indexed vector using strongly typed indexes. |
Cast<U> | Casts the elements of the vector to the specified type. |
Cast | Casts the elements of the vector to the specified type. |
Ceiling | Computes the smallest integers greater than the elements of a vector. |
Ceiling | Computes the smallest integers greater than the elements of a vector in-place. |
Clip | Returns a vector whose elements are the components of a vector constrained to be within the specified interval. |
Clone() | Makes a copy of this vector. |
Clone( | Makes a copy of this vector using the specified method. |
Clone | If possible, gives this instance its own copy of its elements. |
Conjugate() | Conjugates the elements of a vector and returns the result. |
Conjugate( | Returns the conjugate of a vector. |
Conjugate | Conjugates the elements of a vector. |
Conjugate | Returns the dot product of this vector with another vector. |
Conjugate | Conjugates all elements of a vector in-place. |
Copy | Copies the elements of this vector to an array. |
Copy | Copies the elements of this vector to an untyped vector. |
Copy | Copies the elements of this vector to a span. |
Copy | Copies the elements of this vector to a span slice. |
Copy | Copies the elements of this vector to an array. |
Copy | Copies the elements of this vector to another vector. |
Copy | Copies the elements of this vector to an array. |
Copy | Copies the elements of this vector to another vector starting at the specified position. |
Copy | Copies the elements of this vector to another vector, if it exists; otherwise clones the vector using the specified method. |
Cos | Computes the cosine of the elements of a vector. |
Cosh | Computes the hyperbolic cosine of the elements of a vector. |
Cosh | Computes the hyperbolic cosine of the elements of a vector in-place. |
Cos | Computes the cosine of the elements of a vector in-place. |
Cross | Returns the cross product of two 3D vectors. |
Cumulative | Gets the product of the elements of the vector. |
Cumulative | Gets the product of the elements of the vector. |
Cumulative | Gets the product of the elements of the vector. |
Cumulative | Gets the sum of the elements of the vector. |
Cumulative | Gets the sum of the elements of the vector. |
Cumulative | Gets the cumulative sum of the elements of the vector. |
Difference | Computes the forward or backward difference of a vector. |
Dispose() | Releases unmanaged resources. |
Dispose( | Releases unmanaged resources. |
Divide | Divides a vector by a constant. |
Divide | Divides a vector in-place by a constant. |
Dot | Returns the dot product of this vector with another vector. |
Elementwise | Multiplies two vectors element-wise. |
Elementwise | Multiplies two vectors element-wise. |
Elementwise | Divides two vectors element-wise. |
Elementwise | Divides two vectors element-wise. |
Elementwise | Divides this vector in-place element-wise by another vector. |
Elementwise | Multiplies two vectors element-wise. |
Elementwise | Multiplies this vector in-place element-wise by another vector. |
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 a power from the corresponding elements in another vector. |
Elementwise | Raises two vectors element-wise. |
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 in-place to a constant power. |
Elementwise | Raises the elements of a vector in-place to a constant power. |
Elementwise | Raises this vector in-place element-wise by another vector. |
Elementwise | Raises this vector in-place element-wise by another vector. |
Ensure | Ensures that every element in the vector can be written to. |
Ensure | Ensures that the element at the specified index in the vector can be written to. |
Ensure | Ensures that the element at the specified index in the vector can be written to. |
Ensure | Ensures that the element at the specified index in the vector can be written to. |
Equals( |
Determines whether the specified Object
is equal to the current Vector<T>.
(Overrides Object.Equals(Object)) |
Equals( | Determines whether the specified Vector<T> is equal to the current Vector<T>. |
Equals( | Returns whether an object is structurally equal to this instance. |
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. |
Exp | Computes the exponential of the elements of a vector. |
Exp | Computes the exponential of the elements of a vector in-place. |
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 | Enumerates the indexes that match a condition. |
Floor | Computes the largest integers smaller than the elements of a vector. |
Floor | Computes the largest integers smaller than the elements of a vector in-place. |
Get<K>(K) | Gets the value with the specified key. |
Get<K1, K2>(K1, K2) | Gets the value at the specified key. |
Get | Returns an enumerator over the elements of the vector. |
Get |
Returns the hash code for this instance.
(Overrides Object.GetHashCode()) |
Get | Returns a hash code for this instance. |
Get | Gets an integer array that specifies the locations of missing values. |
Get | Gets a boolean array that specifies the locations of missing values. |
Get | Gets the value in the vector whose key in the index is nearest to the specified key. |
Get | Returns a vector containing the items nearest to the specified key values. |
Get |
Populates a SerializationInfo with the values
needed to serialize the target object.
Obsolete. |
Get | Returns a vector whose elements are a subset of the elements of this instance |
Get | Returns a vector whose elements are a subset of the elements of this instance |
Get | Returns a vector whose elements are a subset of the elements of this instance |
Get | Returns a vector whose elements are a subset of the elements of this instance |
Get | Returns a vector whose elements are a subset of the elements of this instance. |
Get | Returns a vector whose elements are a subset of the elements of this instance |
Get | Returns a vector whose elements are a subset of the elements of this instance |
Get | Returns a vector whose elements are a subset of the elements of this instance. |
Get | Returns a vector whose elements are a subset of the elements of this instance. |
Get | Gets the Type of the current instance. (Inherited from Object) |
Get | Gets the vector element at the specified position. |
Get |
Gets the value at the specified key.
Preliminary |
Get | Returns the elements of a vector that match the specified condition. |
Get | Returns a vector that contains the specified subset of elements of the vector. |
Get | Returns a new vector that contains the elements of the vector with the specified indexes. |
Get | Returns a new vector that contains the elements of the vector with the specified indexes. |
Get |
Returns a vector containing the items at the specified key values.
Preliminary |
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. |
Hypot | Computes the square root of the sum of the squared corresponding elements of this vector and another vector. |
IsElement | Gets whether the value of the element at the specified index can be changed. |
IsMissing | Returns whether the value at the specified index is missing. |
Keys | Enumerates all keys and associated values. |
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 greater than or equal to the corresponding elements of another vector. |
Less | Checks if the elements of one vector are greater than or equal to the corresponding elements of another vector. |
Log10Core | Computes the base 10 logarithm of the elements of a vector. |
Log10In | Computes the logarithm of the elements of a vector in-place. |
Log | Computes the 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 in-place. |
Log | Computes the logarithm of the elements of a vector in-place. |
Make | Protects the vector from changes in values or structure. |
Map<U>(Func<T, U>) | Applies a function to the elements of a vector and returns the result. |
Map<U>(Func<T, U>, Vector<T>) | Applies a function to the elements of a vector and returns the result in a new vector. |
Map<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 corresponding elements of two vectors. |
Map | Applies a function to the corresponding elements of two vectors. |
Map | Applies a function to the elements of a vector. |
Map | Applies a function to the elements of a vector. |
Map | Applies a function in-place to the elements of a vector. |
Map | Applies a function in-place to the elements of a vector. |
Map | Applies a function in-place to the elements of a vector as the second argument. |
Map | Applies a function to the elements of a vector. |
Map | Applies a function to the elements of a vector. |
Map | Applies a function to the elements of a vector. |
Map | Applies a function to the elements of a vector that meet a condition and returns the result. |
Map | Applies a function to the elements of a vector that meet a condition and returns the result. |
Map | Applies a function to the elements of a vector. |
Map | Applies a function to the elements of a vector. |
Max() | Returns the value of the largest element in this vector. |
Max( | Returns the value of the largest element in this 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. |
Max | Returns the index of the largest element in this vector. |
Max | Returns a vector whose elements are the maximum of the components of a vector and a real number. |
Memberwise | Creates a shallow copy of the current Object. (Inherited from Object) |
Min() | Returns the value of the smallest element in this vector. |
Min( | Returns the value of the smallest element in this 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. |
Min | Returns the index of the smallest element in this vector. |
Min | Returns a vector whose elements are the minimum of the components of a vector and a real number. |
Multiply | Multiplies a vector by a constant. |
Multiply | Multiplies a vector in-place by the specified factor. |
Multiply | Multiplies a Vector<T> by a Matrix<T>. |
Negate | Negates a vector in-place. |
Norm() | Returns the two-norm of the vector. |
Norm( | Returns the norm of the specified order of this vector. |
Norm( | Returns the norm of the specified order of this vector. |
Normalize | Scales the vector to make its two-norm equal to one. |
Norm | Returns the norm of the specified order of this vector. |
Norm | Returns the norm of the specified order of this vector. |
Norm | Returns the square of the two-norm of this 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. |
One | Returns the one-norm of this vector. |
Permute | Permutes a vector. |
Permute | Permutes a vector. |
Permute | Permutes a vector. |
Product | Gets the product of the elements of the vector. |
Project | Returns the projection of one vector onto another. |
Protect | Returns a read-only copy of the vector. |
Protect | Protects the vector from changes in values or structure. |
Reciprocal | Computes the inverses (reciprocals) of the elements of a vector. |
Reciprocal | Computes the inverses (reciprocals) of the elements of a vector in-place. |
Remove | Removes all the missing values from a vector and returns the result. |
Replace | Replaces all missing values in the vector with the specified value. |
Replace | Replaces all missing values in the vector with the corresponding element in another vector. |
Replace | Replaces all missing values in a vector with the specified value. |
Replace | Replaces all missing values in the vector with the specified value in-place. |
Replace | Replaces all missing values in the vector with the corresponding element in another vector in-place. |
Replace | Replaces all missing values in a vector with the specified value in-place. |
Replace | Replaces all missing values in a vector with the specified value. |
Replace | Replaces all missing values in the vector with the corresponding element in another vector. |
Replace | Replaces all missing values in a vector with the previous or next non-missing value. |
Replace | Replaces every occurrence of a value with a new value. |
Replace | Replaces every occurrence of a value with a new value. |
Replace | Replaces every occurrence of a value with a new value. |
Resample( | Returns a new vector that resamples the values in the vector using the specified recurrence pattern and aggregator. |
Resample<R>(Index<R>, Direction, TypePreservingAggregatorGroup) | Returns a new vector that resamples the values in the vector using the specified index and aggregator. |
Resample<U>(Recurrence, Direction, AggregatorGroup<U>) | Returns a new vector that resamples the values in the vector using the specified recurrence pattern and aggregator. |
Resample<R, U>(Index<R>, Direction, AggregatorGroup<U>) | Returns a new vector that resamples the values in the vector using the specified index and aggregator. |
Reshape | Returns a matrix that contains the vector elements columnwise. |
Set | Declares that the value at the specified index is missing. |
Set | Sets all the elements of the vector to 0. |
Set | Sets all the elements of the vector to the specified value. |
Set | Sets the vector element at the specified position to the specified value. |
Set |
Sets the value at the specified key value.
Preliminary |
Set | Sets a range of elements of the vector to the specified value. |
Set | Sets the elements of a vector that match the specified condition to the specified value. |
Set | Sets all the elements that meet a condition to the specified value. |
Set | Sets the elements of a vector that match the specified condition. |
Shallow | Makes a shallow copy of this vector. |
Sin | Computes the sine of the elements of a vector. |
Sinh | Computes the hyperbolic sine of the elements of a vector. |
Sinh | Computes the hyperbolic sine of the elements of a vector in-place. |
Sin | Computes the sine of the elements of a vector in-place. |
Sort | Sorts the vector in ascending order. |
Sort | Sorts the vector in the specified order. |
Sort | Sorts the vector in the specified order. |
Sqrt | Computes the square root of the elements of a vector. |
Sqrt | Computes the square root of the elements of a vector in-place. |
Subtract | Subtracts a constant from a vector. |
Subtract | Subtracts one vector from another. |
Subtract | Subtracts a vector from a constant. |
Subtract | Subtracts one vector from another. |
Subtract | Subtracts a constant value from the elements of this vector in-place. |
Subtract | Subtracts another vector from this vector in-place. |
Subtract | Subtracts the product of a matrix and a Vector<T> from this Vector<T>. |
Sum | Gets the sum of the elements of the vector. |
Summarize() | Returns a summary of the contents of the matrix using the default summary options. |
Summarize( | Returns a summary of the contents of the matrix using the specified options. |
Swap | Exchanges two elements of the vector. |
Tan | Computes the tangent of the elements of a vector. |
Tanh | Computes the hyperbolic tangent of the elements of a vector. |
Tanh | Computes the hyperbolic tangent of the elements of a vector in-place. |
Tan | Computes the tangent of the elements of a vector in-place. |
ToArray | Gets the elements of the vector. |
ToColumn | Creates a matrix with the vector as its only column.. |
ToData | Returns a data frame with the current vector as its only column. |
ToData | Returns a data frame with the current vector as its only column. |
ToDense | Makes a copy of this instance and returns it as a dense vector. |
ToDense | Makes a copy of this instance and returns it as a dense vector. |
Top | Returns a vector containing the specified number of elements from the top of the sorted vector. |
ToRow | Creates a matrix with the vector as its only column.. |
ToSparse | Creates a copy of the vector as a SparseVector<T>. |
ToString() | Returns a string that represents the current object. (Overrides Object.ToString()) |
ToString( | Converts the numeric value of this vector instance to its equivalent string representation, using the specified format. |
ToString( | Returns a String representation of this vector. |
ToString | Writes a string representation of this Vector<T> to an instance of StringBuilder using the specified number format. |
Try | Applies the specified aggregator to the vector. |
Try | Applies the specified aggregator to the vector. |
Try | Applies the specified aggregator to the vector. |
Try | Attempts to convert the elements of the vector to the specified type. |
Try | Ensures that every element in the vector can be written to. |
Try | Ensures that the element at the specified index in the vector can be written to. |
Try | Ensures that the element at the specified index in the vector can be written to. |
Try | Attempts to get the value with the specified key. |
Unstack<R, C> | Returns a data frame that contains the values in the vector arranged according to the levels in a hierarchical index. |
Weighted | Returns the weighted two-norm of the vector. |
Weighted | Returns the square of the weighted two-norm of the vector. |
Window<U>(Int32, AggregatorGroup<U>) | Returns a new vector that aggregates the values in a sliding window of the specified size. |
Window<U>(Int32, Int32, Boolean, AggregatorGroup<U>) | Returns a new vector that aggregates the values in a sliding window of the specified size. |
With | Sets the name of a vector to the specified value. |
Operators
Addition( | Adds a vector and a constant. |
Addition( | Adds a vector and a constant. |
Addition( | Adds two vectors. |
Addition | Defines the compound addition assignment operator for a vector and a scalar in F#. |
Addition | Defines the compound addition assignment operator for vectors in F#. |
Division( | Divides a vector by a constant. |
Division | Defines the compound division assignment operator for a vector and a scalar in F#. |
Dot | Defines the element-wise division operator for vectors in F#. |
Dot | Defines the element-wise division compound assignment operator for vectors in F#. |
Dot | Checks if the elements of one vector are equal to a constant. |
Dot | Checks if the elements of one vector are equal to a constant. |
Dot | Checks if the elements of one vector are equal to the corresponding elements of another vector. |
Dot | Checks if the elements of one vector are greater than a constant. |
Dot | Checks if the elements of one vector are greater than a constant. |
Dot | Checks if the elements of one vector are greater than the corresponding elements of another vector. |
Dot | Checks if the elements of one vector are greater than or equal to a constant. |
Dot | Checks if the elements of one vector are greater than or equal to a constant. |
Dot | Checks if the elements of one vector are greater than or equal to the corresponding elements of another vector. |
Dot | Checks if the elements of one vector are less than a constant. |
Dot | Checks if the elements of one vector are less than a constant. |
Dot | Checks if the elements of one vector are less than the corresponding elements of another vector. |
Dot | Checks if the elements of one vector are less than or equal to a constant. |
Dot | Checks if the elements of one vector are less than or equal to a constant. |
Dot | Checks if the elements of one vector are less than or equal to the corresponding elements of another vector. |
Dot | Checks if the elements of one vector are not equal to a constant. |
Dot | Checks if the elements of one vector are not equal to a constant. |
Dot | Checks if the elements of one vector are not equal to the corresponding elements of another vector. |
Dot | Defines the element-wise multiplication operator for vectors in F#. |
Dot | Defines the element-wise multiplication compound assignment operator for vectors in F#. |
Dot | Defines the element-wise exponentiation operator for matrices in F#. |
Dot | Defines the componentwise exponentiation operator for matrices in F#. |
Dot | Defines the componentwise exponentiation operator for matrices in F#. |
Dot | Defines the componentwise exponentiation operator for matrices in F#. |
Equality( | Returns whether two instances of vector are equal. |
Implicit(T[] to Vector<T>) | Implicitly converts an array of T to a Vector<T>. |
Inequality( | Returns whether two instances of vector are not equal. |
Multiply( | Multiplies a vector by a constant. |
Multiply( | Multiplies a vector by a constant. |
Multiply | Defines the compound multiplication assignment operator for a vector and a scalar in F#. |
Subtraction( | Subtracts a vector from a constant. |
Subtraction( | Subtracts a constant from a vector. |
Subtraction( | Subtracts two vectors. |
Subtraction | Defines the compound subtraction assignment operator for a vector and a scalar in F#. |
Subtraction | Defines the compound subtraction assignment operator for vectors in F#. |
Unary | Negates a vector. |
Extension Methods
Abs<T> |
Returns a vector whose elements are the absolute values of the components of another vector.
(Defined by Vector) |
Abs |
Computes the absolute values of the elements of a vector.
(Defined by Vector) |
Absolute |
Returns the value of the element in this
vector that has the largest absolute
value.
(Defined by Vector) |
Absolute |
Returns the value of the element in this
vector that has the largest absolute
value.
(Defined by Vector) |
Absolute |
Returns the value of the element in this
vector that has the smallest absolute
value.
(Defined by Vector) |
Absolute |
Returns the value of the element in this
vector that has the smallest absolute
value.
(Defined by Vector) |
Acos<T> |
Computes the inverse cosine of the elements of a vector.
(Defined by Vector) |
Acosh<T> |
Computes the inverse hyperbolic cosine of the elements of a vector.
(Defined by Vector) |
Acosh |
Computes the inverse hyperbolic cosine of the elements of a vector.
(Defined by Vector) |
Acos |
Computes the inverse cosine of the elements of a vector.
(Defined by Vector) |
Add |
Adds two vectors.
(Defined by Vector) |
Add |
Adds the product of a matrix and a vector to a vector.
(Defined by Vector) |
Add |
Adds the product of a matrix and a vector to a vector.
(Defined by Vector) |
Add |
Adds the scaled product of a matrix and a vector to a vector.
(Defined by Vector) |
Add |
Adds two vectors.
(Defined by Vector) |
Add |
Adds the scaled product of a matrix and a vector to a vector.
(Defined by Vector) |
Add |
Adds the scaled product of a matrix and a vector to a vector.
(Defined by Vector) |
Add |
Adds the scaled product of a matrix and a vector to a vector.
(Defined by Vector) |
Aggregate<T> |
Applies an accumulator function over the elements of a vector.
(Defined by LinqExtensions) |
Aggregate<T, TAccumulate> |
Applies an accumulator function over the elements of a vector.
(Defined by LinqExtensions) |
Aggregate<T, TAccumulate, TResult> |
Aggregates the elements of a vector using the specified accumulator
and seed value.
(Defined by LinqExtensions) |
All<T> |
Returns whether all values in a vector satisfy the specified
predicate.
(Defined by Vector) |
Angle<T> |
Returns the angle between two vectors.
(Defined by Vector) |
Any<T> |
Returns whether at least one value in a vector satisfies a predicate.
(Defined by Vector) |
Asin<T> |
Computes the inverse sine of the elements of a vector.
(Defined by Vector) |
Asinh<T> |
Computes the inverse hyperbolic sine of the elements of a vector.
(Defined by Vector) |
Asinh |
Computes the inverse hyperbolic sine of the elements of a vector.
(Defined by Vector) |
Asin |
Computes the inverse sine of the elements of a vector.
(Defined by Vector) |
Atan<T> |
Computes the inverse tangent of the elements of a vector.
(Defined by Vector) |
Atan2<T> |
Computes the four-quadrant inverse tangent of the corresponding elements
of two matrices.
(Defined by Vector) |
Atan2Into<T> |
Computes the four-quadrant inverse tangent of the corresponding elements
of two matrices.
(Defined by Vector) |
Atanh<T> |
Computes the inverse hyperbolic tangent of the elements of a vector.
(Defined by Vector) |
Atanh |
Computes the inverse hyperbolic tangent of the elements of a vector.
(Defined by Vector) |
Atan |
Computes the inverse tangent of the elements of a vector.
(Defined by Vector) |
Bin<T> |
Sorts values into bins and returns the result as a categorical vector.
(Defined by Vector) |
Bin<T> |
Sorts values into bins and returns the result as a categorical vector.
(Defined by Vector) |
Bin<T> |
Sorts values into bins and returns the result as a categorical vector.
(Defined by Vector) |
Bin<T> |
Sorts values into bins and returns the result as a categorical vector.
(Defined by Vector) |
Bin<T> |
Sorts values into bins and returns the result as a categorical vector.
(Defined by Vector) |
Ceiling<T> |
Returns a vector whose elements are the components of another vector
rounded up to the nearest integer.
(Defined by Vector) |
Ceiling |
Computes the smallest integers greater than the elements of a vector.
(Defined by Vector) |
Central |
Returns the specified central moment of the elements of a vector.
(Defined by Stats) |
Clip<T> |
Returns a vector whose elements are the components of a vector
constrained to be within the specified interval.
(Defined by Vector) |
Clip |
Returns a vector whose elements are the components of a vector
constrained to be within the specified interval.
(Defined by Vector) |
Concat<T> |
Concatenates two vectors.
(Defined by LinqExtensions) |
Conjugate<T> |
Returns the conjugate of a vector.
(Defined by Vector) |
Conjugate |
Conjugates the elements of a vector.
(Defined by Vector) |
Correlation<T> |
Gets the Pearson correlation coefficient between two sets of values.
(Defined by Stats) |
Correlation |
Gets the Pearson correlation coefficient between two sets of values.
(Defined by Stats) |
Cos<T> |
Computes the cosine of the elements of a vector.
(Defined by Vector) |
Cosh<T> |
Computes the hyperbolic cosine of the elements of a vector.
(Defined by Vector) |
Cosh |
Computes the hyperbolic cosine of the elements of a vector.
(Defined by Vector) |
Cos |
Computes the cosine of the elements of a vector.
(Defined by Vector) |
Covariance<T> |
Gets the covariance between two sets of values.
(Defined by Stats) |
Covariance |
Gets the covariance between two sets of values.
(Defined by Stats) |
Create |
Returns a histogram of a vector using the specified bin arrangement.
(Defined by Histogram) |
Cross |
Returns the cross product of two 3D vectors.
(Defined by Vector) |
Difference<T> |
Computes the forward or backward difference of a vector.
(Defined by Vector) |
Difference |
Computes the forward or backward difference of a vector.
(Defined by Vector) |
Dot |
Returns the dot product of two vectors.
(Defined by Vector) |
Elementwise |
Raises the element of a vector to a constant power.
(Defined by Vector) |
Elementwise |
Raises the elements of a vector to a power
from the corresponding elements in another vector.
(Defined by Vector) |
Elementwise |
Raises the elements of a vector to an integer power
from the corresponding elements in another vector.
(Defined by Vector) |
Elementwise |
Raises the element of a vector to a constant power.
(Defined by Vector) |
Elementwise |
Raises the element of a vector to a constant power.
(Defined by Vector) |
Elementwise |
Raises the elements of a vector to a power
from the corresponding elements in another vector.
(Defined by Vector) |
Elementwise |
Raises the elements of a vector to an integer power
from the corresponding elements in another vector.
(Defined by Vector) |
Elementwise |
Raises the element of a vector to a constant power.
(Defined by Vector) |
Exp<T> |
Computes the exponential of the elements of a vector.
(Defined by Vector) |
Exp |
Computes the exponential of the elements of a vector.
(Defined by Vector) |
Floor<T> |
Returns a vector whose elements are the components of another vector
rounded down to the nearest integer.
(Defined by Vector) |
Floor |
Computes the largest integers smaller than the elements of a vector.
(Defined by Vector) |
Group<T> |
Returns a grouping by the unique elements in a list.
(Defined by Grouping) |
Group<T> |
Returns a grouping by the unique elements in a sequence.
(Defined by Grouping) |
Group<T> |
Returns a grouping by the unique elements in a list
using the specified comparer to determine equality.
(Defined by Grouping) |
Group<T> |
Returns a grouping by the unique elements in a sequence
using the specified comparer to determine equality.
(Defined by Grouping) |
Group |
Groups the elements of a vector according to the specified key selector function.
(Defined by LinqExtensions) |
Group |
Groups the elements of a vector according to the specified
key selector function and key comparer.
(Defined by LinqExtensions) |
Group |
Groups the elements of a vector according to the specified
key selector and element selector functions.
(Defined by LinqExtensions) |
Group |
Groups the elements of a vector according to the specified key selector function
and creates a result value from each group and its key.
(Defined by LinqExtensions) |
Group |
Groups the elements of a vector according to the specified
key selector and element selector functions, and key comparer.
(Defined by LinqExtensions) |
Group |
Groups the elements of a vector according to the specified key selector function
and creates a result value from each group and its key. Key values are compared
using the specified comparer.
(Defined by LinqExtensions) |
Group |
Groups the elements of a vector according to the specified key selector function
and creates a result value from each group and its key.
The elements of each group are projected using the specified function.
(Defined by LinqExtensions) |
Group |
Groups the elements of a vector according to the specified key selector function
and creates a result value from each group and its key. Key values are compared
using the specified comparer, and the elements of each group are projected
using the specified function.
(Defined by LinqExtensions) |
Harmonic |
Returns the harmonic mean of the elements of a vector.
(Defined by Stats) |
Harmonic |
Returns the harmonic mean of the elements of a vector.
(Defined by Stats) |
Hypot<T> |
Computes the square root of the sum of the squared corresponding elements
of two matrices.
(Defined by Vector) |
Hypot |
Computes the square root of the sum of the squared corresponding elements
of two matrices.
(Defined by Vector) |
Infinity |
Returns the infinity norm of a vector.
(Defined by VectorExtensions) |
Inter |
Returns the inter-quartile range of the elements of a numerical variable.
(Defined by Stats) |
Join<T> |
Joins two vectors.
(Defined by Vector) |
Kurtosis<T> |
Returns the kurtosis supplement of the elements of a vector.
(Defined by Stats) |
Kurtosis |
Returns the kurtosis supplement of the elements of an array.
(Defined by Stats) |
Lag<T> |
Returns a vector whose observations are moved ahead by
one observation.
(Defined by VectorExtensions) |
Lag<T> |
Returns a vector whose observations are moved ahead by
the specified number of observations.
(Defined by VectorExtensions) |
Lag<T> |
Returns a vector whose observations are moved ahead by
the specified number of observations.
(Defined by VectorExtensions) |
Log<T> |
Returns a vector whose elements are the logarithms of the components of another vector.
(Defined by Vector) |
Log<T> |
Returns a vector whose elements are the logarithms of the components of another vector.
(Defined by Vector) |
Log10<T> |
Returns a vector whose elements are the base 10 logarithms of the components of another vector.
(Defined by Vector) |
Log10Into<T> |
Computes the base 10 logarithm of the elements of a vector.
(Defined by Vector) |
Log |
Computes the logarithm of the elements of a vector.
(Defined by Vector) |
Log |
Computes the logarithm of the elements of a vector.
(Defined by Vector) |
Make |
Returns a distributed version of a vector.
(Defined by DistributedExtensions) |
Max<T> |
Returns the value of the largest component of a vector.
(Defined by Vector) |
Max<T> |
Returns a vector whose elements are the maximums of the components of two vectors.
(Defined by Vector) |
Max<T> |
Returns a vector whose elements are the maximum of the components of a vector
and a real number.
(Defined by Vector) |
Max |
Returns a vector whose elements are the maximums of the components of two vectors.
(Defined by Vector) |
Max |
Returns a vector whose elements are the maximum of the components of a vector
and a real number.
(Defined by Vector) |
Mean<T> |
Returns the mean of the elements of a vector.
(Defined by Stats) |
Mean |
Returns the mean of the elements of a vector.
(Defined by Stats) |
Median<T> |
Returns the median of the elements of a vector.
(Defined by Stats) |
Min<T> |
Returns the value of the smallest component of a vector.
(Defined by Vector) |
Min<T> |
Returns a vector whose elements are the minimums of the components of two vectors.
(Defined by Vector) |
Min<T> |
Returns a vector whose elements are the minimum of the components of a vector
and a real number.
(Defined by Vector) |
Min |
Returns a vector whose elements are the minimums of the components of two vectors.
(Defined by Vector) |
Min |
Returns a vector whose elements are the minimum of the components of a vector
and a real number.
(Defined by Vector) |
Moment<T> |
Returns the specified raw moment of the elements of an array.
(Defined by Stats) |
Multiply |
Multiplies a vector by a constant.
(Defined by Vector) |
Negate |
Negates a vector.
(Defined by Vector) |
One |
Returns the one-norm of a vector.
(Defined by VectorExtensions) |
Percentile<T> |
Gets the specified percentile.
(Defined by Stats) |
Permute<T> |
Permutes a vector.
(Defined by Vector) |
Population |
Returns the kurtosis supplement of the elements of an array.
(Defined by Stats) |
Population |
Returns the kurtosis supplement of the elements of an array.
(Defined by Stats) |
Population |
Returns the population skewness of the elements of an array.
(Defined by Stats) |
Population |
Returns the population skewness of the elements of an array.
(Defined by Stats) |
Population |
Returns the population standard deviation of the elements of a vector.
(Defined by Stats) |
Population |
Returns the population standard deviation of the elements of a vector.
(Defined by Stats) |
Population |
Returns the variance of the elements of a vector.
(Defined by Stats) |
Population |
Returns the variance of the elements of a vector.
(Defined by Stats) |
Product<T> |
Returns the product of the components of a vector.
(Defined by Vector) |
Project<T> |
Returns the projection of one vector onto another.
(Defined by Vector) |
Quantile<T> |
Gets the specified quantile.
(Defined by VectorExtensions) |
Quantiles<T> |
Gets the specified quantile.
(Defined by VectorExtensions) |
Range<T> |
Returns the range of the elements of a numerical variable.
(Defined by Stats) |
Ranks<T> |
Returns the ranks of the observations.
(Defined by Stats) |
Reciprocal<T> |
Returns a vector whose elements are the inverses (reciprocals) of the components of another vector.
(Defined by Vector) |
Reciprocal |
Computes the inverses (reciprocals) of the elements of a vector.
(Defined by Vector) |
Round<T> |
Returns a vector whose elements are the components of another vector
rounded to the nearest integer.
(Defined by Vector) |
Round<T> |
Returns a vector whose elements are the components of another vector
rounded to the nearest integer.
(Defined by Matrix) |
Select<T, TResult> |
Projects each element of a vector into a new form.
(Defined by LinqExtensions) |
Select<T, TResult> |
Projects each element of a vector into a new form by incorporating the elements index.
(Defined by LinqExtensions) |
Select |
Projects each element of a vector to a vector and flattens the resulting
vectors into one vector.
(Defined by LinqExtensions) |
Select |
Projects each element of a vector to a vector incorporating the element's index
and flattens the resulting vectors into one vector.
(Defined by LinqExtensions) |
Select |
Projects each element of a vector to a vector
and flattens the resulting vectors into one vector,
and applies a selector function to each element of the flattened vector.
(Defined by LinqExtensions) |
Select |
Projects each element of a vector to a vector incorporating the element's index
and flattens the resulting vectors into one vector,
and applies a selector function to each element of the flattened vector.
(Defined by LinqExtensions) |
Sin<T> |
Computes the sine of the elements of a vector.
(Defined by Vector) |
Sinh<T> |
Computes the hyperbolic sine of the elements of a vector.
(Defined by Vector) |
Sinh |
Computes the hyperbolic sine of the elements of a vector.
(Defined by Vector) |
Sin |
Computes the sine of the elements of a vector.
(Defined by Vector) |
Skewness<T> |
Returns the skewness of the elements of an array.
(Defined by Stats) |
Skewness |
Returns the skewness of the elements of an array.
(Defined by Stats) |
Sort<T> |
Sorts a vector in ascending order.
(Defined by Vector) |
Sort<T> |
Sorts a vector in the specified order.
(Defined by Vector) |
Sort<T> |
Sorts a vector in the specified order and also returns the sorting permutation.
(Defined by Vector) |
Split |
Splits a vector according to the specified grouping.
(Defined by Vector) |
Split |
Splits a vector according to the specified grouping.
(Defined by Vector) |
Sqrt<T> |
Computes the square root of the elements of a vector.
(Defined by Vector) |
Sqrt |
Computes the square root of the elements of a vector.
(Defined by Vector) |
Squared |
Returns the norm of the difference of two vectors.
(Defined by Vector) |
Standard |
Returns the standard deviation of the elements of a vector.
(Defined by Stats) |
Standard |
Returns the standard deviation of the elements of a sequence.
(Defined by Stats) |
Standard |
Returns the standard deviation of the elements of a vector.
(Defined by Stats) |
Subtract |
Subtracts one vector from another.
(Defined by Vector) |
Subtract |
Subtracts two vectors.
(Defined by Vector) |
Sum<T> |
Computes the sum of the sequence of values.
(Defined by ArrayMath) |
Sum<T> |
Returns the sum of the components of a vector.
(Defined by Vector) |
Sum<T, U> |
Computes the sum of the sequence of values that are obtained
by invoking a transform function on each element of the input sequence.
(Defined by ArrayMath) |
Sum<T, T2, U> |
Computes the sum of the sequence of values that are obtained
by invoking a transform function on each pair of elements of
the input sequences.
(Defined by ArrayMath) |
Sum |
Returns the sum of the elements of a vector.
(Defined by Stats) |
Tan<T> |
Computes the tangent of the elements of a vector.
(Defined by Vector) |
Tanh<T> |
Computes the hyperbolic tangent of the elements of a vector.
(Defined by Vector) |
Tanh |
Computes the hyperbolic tangent of the elements of a vector.
(Defined by Vector) |
Tan |
Computes the tangent of the elements of a vector.
(Defined by Vector) |
ToJson<T> |
Returns a string containing a vector in JSON format.
(Defined by JsonFile) |
ToLookup<T, TKey> |
Creates a lookup from a vector according to the specified key selector function.
(Defined by LinqExtensions) |
ToLookup<T, TKey> |
Creates a lookup from a vector according to the specified
key selector function and key comparer.
(Defined by LinqExtensions) |
ToLookup<T, TKey, TElement> |
Creates a lookup from a vector according to the specified
key selector and element selector functions.
(Defined by LinqExtensions) |
ToLookup<T, TKey, TElement> |
Creates a lookup from a vector according to the specified
key selector and element selector functions, and key comparer.
(Defined by LinqExtensions) |
Trimmed |
Returns the trimmed mean of the elements of a numerical variable.
(Defined by Stats) |
Truncate<T> |
Returns a vector whose elements are the components of another vector
rounded to the nearest integer towards zero.
(Defined by Matrix) |
Two |
Returns the two-norm of a vector.
(Defined by VectorExtensions) |
Unstack<R, C> |
Transforms a vector with a two-level index into a data frame whose columns
correspond to the second level in the index.
(Defined by DataFrame) |
Variance<T> |
Returns the variance of the elements of a vector.
(Defined by Stats) |
Variance |
Returns the variance of the elements of a span.
(Defined by Stats) |
Weighted |
Returns the mean of the variable with observations weighted by the specified vector.
(Defined by Stats) |
Weighted |
Returns the standard deviation of the variable with observations weighted by the specified vector.
(Defined by Stats) |
Where<T> |
Filters the elements of a vector based on a predicate.
(Defined by LinqExtensions) |
Where<T> |
Filters the elements of a vector based on a predicate.
Each element's index is used in the logic of the predicate function.
(Defined by LinqExtensions) |