package modelkit

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

Module Modelkit.Reference_backendSource

Native OCaml float64 kernels with stable fixed-order reductions.

val name : string
val sum : Vector.t -> float
val dot : Vector.t -> Vector.t -> (float, Error.t) result
val matrix_vector_product : Matrix.t -> Vector.t -> (Vector.t, Error.t) result
val transposed_matrix_vector_product : Matrix.t -> Vector.t -> (Vector.t, Error.t) result
val feature_matrix_vector_product : Feature_matrix.t -> Vector.t -> (Vector.t, Error.t) result

Dispatches to dense or CSR storage without densifying sparse input. CSR kernels visit stored entries only; dense and CSR results agree for finite operands representing the same matrix.

val transposed_feature_matrix_vector_product : Feature_matrix.t -> Vector.t -> (Vector.t, Error.t) result