Value | Description |
val add : Vector<'a> -> Vector<'a> -> Vector<'a> |
Add two vectors (operator +)
|
val copy : Vector<'a> -> Vector<'a> | |
val cptMax : Vector<'a> -> Vector<'a> -> Vector<'a> |
Take the pointwise maximum of two vectors
|
val cptMin : Vector<'a> -> Vector<'a> -> Vector<'a> |
Take the pointwise minimum of two vectors
|
val cptMul : Vector<'a> -> Vector<'a> -> Vector<'a> |
Point-wise multiplication of two vectors (operator .*)
|
val create : int -> 'a -> Vector<'a> |
Generate a vector of the given length where each entry contains the given value
|
val dot : Vector<'a> -> Vector<'a> -> 'a |
Dot product
|
val eops : Vector<'a> -> INumeric<'a> |
Get the dictionary of operations assocaited with the element type
The element type of the matrix must have an associated instance of INumeric<'a> (see [[GlobalAssociations]]) ((else NotSupportedException)).
|
val exists : ('a -> bool) -> Vector<'a> -> bool | |
val existsi : (int -> 'a -> bool) -> Vector<'a> -> bool | |
val fold : ('b -> 'a -> 'b) -> 'b -> Vector<'a> -> 'b | |
val foldi : (int -> 'b -> 'a -> 'b) -> 'b -> Vector<'a> -> 'b | |
val forall : ('a -> bool) -> Vector<'a> -> bool | |
val foralli : (int -> 'a -> bool) -> Vector<'a> -> bool | |
val get : Vector<'a> -> int -> 'a |
Get an element of a column vector
|
val init : int -> (int -> 'a) -> Vector<'a> |
Creation: general
|
val init_numeric : int -> (INumeric<'a> -> int -> 'a) -> Vector<'a> |
Creation: useful when the element type has associated operations.
|
val inplace_add : Vector<'a> -> Vector<'a> -> unit | |
val inplace_assign : (int -> 'a) -> Vector<'a> -> unit | |
val inplace_cptMul : Vector<'a> -> Vector<'a> -> unit | |
val inplace_mapi : (int -> 'a -> 'a) -> Vector<'a> -> unit | |
val inplace_scale : 'a -> Vector<'a> -> unit | |
val inplace_sub : Vector<'a> -> Vector<'a> -> unit | |
val length : Vector<'a> -> int |
Get the dimensions (number of rows) of a column vector. Identical to [[nrows]]
|
val map : ('a -> 'a) -> Vector<'a> -> Vector<'a> | |
val mapi : (int -> 'a -> 'a) -> Vector<'a> -> Vector<'a> | |
val neg : Vector<'a> -> Vector<'a> |
Negation of the vector (each element is negated) (unary operator -)
|
val norm : Vector<'a> -> float |
Computes the 2-norm of a vector: sqrt(x.Transpose*x).
|
val nrows : Vector<'a> -> int |
Get the number of rows of a column vector.
|
val of_array : 'a array -> Vector<'a> |
Create a vector from an array of elements
|
val of_list : 'a list -> Vector<'a> |
Create a vector from a list of numbers
|
val of_scalar : 'a -> Vector<'a> |
Create a 1-element vector
|
val of_seq : #seq<'a> -> Vector<'a> |
Create a vector from a sequence of numbers
|
val prod : Vector<'a> -> 'a |
Multiply all the elements of the matrix
|
val scale : 'a -> Vector<'a> -> Vector<'a> |
Pointwise multiplication of a matrix by a scalar
|
val set : Vector<'a> -> int -> 'a -> unit |
Set an element of a column vector
|
val sub : Vector<'a> -> Vector<'a> -> Vector<'a> |
Subtract one vector from another (operator -)
|
val sum : Vector<'a> -> 'a |
Sum all the elements of a vector
|
val to_array : Vector<'a> -> 'a array |
Return a new array containing a copy of the elements of the given vector
|
val transpose : Vector<'a> -> RowVector<'a> |
Transpose of a matrix. Use also m.Transpose
|
val zero : int -> Vector<'a> |
Return a vector of the given length where every entry is zero.
|