package phylogenetics

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

Module Make.VectorSource

Sourcetype symbol = t
include module type of struct include Linear_algebra.Vector end
Sourceval length : t -> int
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 to_array : t -> float array
Sourceval pp : Format.formatter -> t -> unit

Prints a vector to the standard output.

Sourceval iteri : t -> f:(int -> float -> 'a) -> unit
Sourceval init : (int -> float) -> t
Sourceval normalize : t -> t
Sourceval of_array_exn : float Core.Array.t -> t
Sourceval of_array : float Core.Array.t -> t option
Sourceval map2 : t -> t -> f:(float -> float -> float) -> t
Sourceval mapi : t -> f:(int -> float -> float) -> t
Sourceval foldi : t -> init:'a -> f:(int -> 'a -> float -> 'a) -> 'a
Sourceval fold : t -> init:'a -> f:('a -> float -> 'a) -> 'a
Sourceval counti : t -> f:(int -> float -> bool) -> int
Sourceval count : t -> f:(float -> bool) -> int
Sourceval maxi : t -> int * Core.Float.t

Element with maximum value. In case of ties, it is the first one encountered