Vector<'T>
Generic vector type
Union Cases
Union Case | Description |
Vector(^T [])
Signature: ^T []
|
|
ZeroVector(^T)
Signature: ^T
|
Instance members
Instance member | Description |
Convert(f)
Signature: (f:(^T -> ^a)) -> Vector<^a>
|
Converts the elements of this vector to another type, using the given conversion function |
Copy()
Signature: unit -> Vector<^T>
|
Creates a copy of this vector |
FirstItem
Signature: ^T
|
Gets the first element of this vector |
GetEnumerator()
Signature: unit -> IEnumerator<^T>
|
Returns an enumerator that iterates through the elements of this vector |
GetL1Norm()
Signature: unit -> ^T
|
Gets the L1 (Manhattan) norm of this vector |
GetL2Norm()
Signature: unit -> ^T
|
Gets the L2 (Euclidean) norm of this vector |
GetL2NormSq()
Signature: unit -> ^T
|
Gets the squared L2 (Euclidean) norm of this vector |
GetLPNorm(p)
Signature: p:^T -> ^T
|
Gets the Lp norm (or p-norm) of this vector, with the given |
GetMax()
Signature: unit -> ^T
|
Gets the maximum element of this vector |
GetMaxBy(f)
Signature: (f:(^T -> '?100554)) -> ^T
|
Gets the maximum element of this vector, compared by using Operators.max on the result of function |
GetMin()
Signature: unit -> ^T
|
Gets the minimum element of this vector |
GetMinBy(f)
Signature: (f:(^T -> '?100549)) -> ^T
|
Gets the minimum element of this vector, compared by using Operators.min on the result of function |
GetSlice(lower, upper)
Signature: (lower:int option * upper:int option) -> Vector<^T>
|
Gets a subvector between bounds |
GetSubVector(s, c)
Signature: (s:int * c:int) -> Vector<^T>
|
Creates a new vector that contains the given subrange of elements, specified by start index |
GetUnitVector()
Signature: unit -> Vector<^T>
|
Gets the unit vector codirectional with this vector |
[i]
Signature: i:int -> ^T
|
The element of this vector at the given position |
[()]
Signature: unit -> int
|
The element of this vector at the given position |
Length
Signature: int
|
Gets the total number of elements of this vector |
Split(n)
Signature: n:seq<int> -> seq<Vector<^T>>
|
Returns a sequence of vectors that are obtained by splitting this vector into subvectors whose lengths are given in sequence |
SplitEqual(n)
Signature: n:int -> seq<Vector<^T>>
|
Returns a sequence of vectors that are obtained by splitting this vector into |
ToArray()
Signature: unit -> ^T []
|
Converts this vector to an array |
ToMathematicaString()
Signature: unit -> string
|
Gets a string representation of this vector that can be pasted into a Mathematica notebook |
ToMatlabString()
Signature: unit -> string
|
Gets a string representation of this vector that can be pasted into MATLAB |
ToSeq()
Signature: unit -> seq<^T>
|
Converts this vector to a sequence |
Static members
Static member | Description |
( - )(a, b)
Signature: (a:^T * b:Vector<^T>) -> Vector<^T>
|
Subtracts each element of vector |
( - )(a, b)
Signature: (a:Vector<^T> * b:^T) -> Vector<^T>
|
Subtracts scalar |
( - )(a, b)
Signature: (a:Vector<^T> * b:Vector<^T>) -> Vector<^T>
|
Subtracts vector |
( %* )(a, b)
Signature: (a:Vector<^T> * b:Vector<^T>) -> Vector<^T>
|
Computes the cross product of vector |
( * )(a, b)
Signature: (a:^T * b:Vector<^T>) -> Vector<^T>
|
Multiplies each element of vector |
( * )(a, b)
Signature: (a:Vector<^T> * b:^T) -> Vector<^T>
|
Multiplies each element of vector |
( * )(a, b)
Signature: (a:Vector<^T> * b:Vector<^T>) -> ^T
|
Computes the inner product (dot / scalar product) of vector |
( .* )(a, b)
Signature: (a:Vector<^T> * b:Vector<^T>) -> Vector<^T>
|
Multiplies vector |
( ./ )(a, b)
Signature: (a:Vector<^T> * b:Vector<^T>) -> Vector<^T>
|
Divides vector |
( / )(a, b)
Signature: (a:^T * b:Vector<^T>) -> Vector<^T>
|
Divides scalar |
( / )(a, b)
Signature: (a:Vector<^T> * b:^T) -> Vector<^T>
|
Divides each element of vector |
( ~- )(a)
Signature: a:Vector<^T> -> Vector<^T>
|
Gets the negative of Vector |
( + )(a, b)
Signature: (a:^T * b:Vector<^T>) -> Vector<^T>
|
Adds scalar |
( + )(a, b)
Signature: (a:Vector<^T> * b:^T) -> Vector<^T>
|
Adds scalar |
( + )(a, b)
Signature: (a:Vector<^T> * b:Vector<^T>) -> Vector<^T>
|
Adds vector |
op_Explicit(v)
Signature: v:Vector<^T> -> float []
|
Converts vector |
Zero
Signature: Vector<^T>
|
ZeroVector |