package phylogenetics

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

Module Lacaml.VecSource

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

Initialises a vector from a int->float function.

Sourceval add : vec -> vec -> vec

Vector addition.

Sourceval mul : vec -> vec -> vec

Element-wise product of two vectors.

Sourceval sum : vec -> float

Sum of the elements of a vector.

Sourceval log : vec -> vec

Element-wise logarithm of vector

Sourceval exp : vec -> vec

Element-wise exponential of matrix

Sourceval min : vec -> float

Minimum element in a vector.

Sourceval max : vec -> float

Maximum element in a vector.

Sourceval get : vec -> int -> float

Access a specific element of a vector.

Sourceval pp : Format.formatter -> vec -> unit

Prints a vector to the standard output.