package phylogenetics

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module Linear_algebra.VectorSource

Sourcetype t = vec
Sourceval length : t -> int
Sourceval init : int -> f:(int -> float) -> t

Initialises a vector from a int->float function.

Sourceval map : t -> f:(float -> float) -> t
Sourceval inplace_scal_mul : float -> t -> unit

Scalar-vector product (in-place).

Sourceval scal_mul : float -> t -> t

Scalar-vector product

Sourceval scal_add : float -> t -> t

Scalar-vector addition.

Sourceval add : t -> t -> t

Vector addition.

Sourceval mul : t -> t -> t

Element-wise product of two vectors.

Sourceval sum : t -> float

Sum of the elements of a vector.

Sourceval log : t -> t

Element-wise logarithm of vector

Sourceval exp : t -> t

Element-wise exponential of matrix

Sourceval min : t -> float

Minimum element in a vector.

Sourceval max : t -> float

Maximum element in a vector.

Sourceval get : t -> int -> float

Access a specific element of a vector.

Sourceval set : t -> int -> float -> unit

Set a specific element of a vector.

Sourceval robust_equal : tol:float -> t -> t -> bool
Sourceval of_array : float array -> t
Sourceval to_array : t -> float array
Sourceval pp : Format.formatter -> t -> unit

Prints a vector to the standard output.

OCaml

Innovation. Community. Security.