package core_bench

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

Module Linear_algebra.MatSource

Matrices

Sourcetype t = float array array
include Sexplib0.Sexpable.S with type t := t
Sourceval t_of_sexp : Sexplib0.Sexp.t -> t
Sourceval sexp_of_t : t -> Sexplib0.Sexp.t
Sourceval copy : t -> t

Copy a matrix

Sourceval create0 : rows:int -> cols:int -> t

Create a matrix of 0s

Sourceval create_per_row : rows:int -> cols:int -> f:(int -> float) -> t
Sourceval get_column : t -> int -> Vec.t

Extract a column. Data is copied. Indices start at 0.

Sourceval almost_equal : tol:float -> t -> t -> bool

Comparison up to a tolerance for testing purposes.