| Value | Description |
val copy : Vector<'T> -> Vector<'T> | |
val cptMax : Vector<'T> -> Vector<'T> -> Vector<'T> |
Take the pointwise maximum of two vectors
|
val cptMin : Vector<'T> -> Vector<'T> -> Vector<'T> |
Take the pointwise minimum of two vectors
|
val create : int -> 'T -> Vector<'T> |
Generate a vector of the given length where each entry contains the given value
|
val dot : Vector<'T> -> Vector<'T> -> 'T |
Dot product
|
val exists : ('T -> bool) -> Vector<'T> -> bool | |
val existsi : (int -> 'T -> bool) -> Vector<'T> -> bool | |
val fold : ('State -> 'T -> 'State) -> 'State -> Vector<'T> -> 'State | |
val foldi :
(int -> 'State -> 'T -> 'State) -> 'State -> Vector<'T> -> 'State | |
val forall : ('T -> bool) -> Vector<'T> -> bool | |
val foralli : (int -> 'T -> bool) -> Vector<'T> -> bool | |
val get : Vector<'T> -> int -> 'T |
Get an element of a column vector
|
val init : int -> (int -> 'T) -> Vector<'T> |
Creation: general
|
val initNumeric : int -> (INumeric<'T> -> int -> 'T) -> Vector<'T> |
Creation: useful when the element type has associated operations.
|
val length : Vector<'T> -> int |
Get the dimensions (number of rows) of a column vector. Identical to nrows
|
val map : ('T -> 'T) -> Vector<'T> -> Vector<'T> | |
val mapi : (int -> 'T -> 'T) -> Vector<'T> -> Vector<'T> | |
val norm : Vector<'T> -> float |
Computes the 2-norm of a vector: sqrt(x.Transpose*x).
|
val of_array : 'T [] -> Vector<'T> |
Create a vector from an array of elements
|
val of_list : 'T list -> Vector<'T> |
Create a vector from a list of numbers
|
val of_scalar : 'T -> Vector<'T> |
Create a 1-element vector
|
val of_seq : seq<'T> -> Vector<'T> |
Create a vector from a sequence of numbers
|
val prod : Vector<'T> -> 'T |
Multiply all the elements of the matrix
|
val set : Vector<'T> -> int -> 'T -> unit |
Set an element of a column vector
|
val sum : Vector<'T> -> 'T |
Sum all the elements of a vector
|
val to_array : Vector<'T> -> 'T [] |
Return a new array containing a copy of the elements of the given vector
|
val transpose : Vector<'T> -> RowVector<'T> |
Transpose of a matrix. Use also m.Transpose
|
val zero : int -> Vector<'T> |
Return a vector of the given length where every entry is zero.
|