package owl-base

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

Module Owl_numdiff_generic_sig.ImplSource

Parameters

module A : Owl_types.Ndarray_Numdiff with type elt = float

Signature

Type definition
Sourcetype arr

General ndarray type

Sourcetype elt

Scalar type

Basic functions
Sourceval diff : (elt -> elt) -> elt -> elt

derivative of f : scalar -> scalar.

Sourceval diff' : (elt -> elt) -> elt -> elt * elt

derivative of f : scalar -> scalar, return both f x and f' x.

Sourceval diff2 : (elt -> elt) -> elt -> elt

second order derivative of f : float -> float.

Sourceval diff2' : (elt -> elt) -> elt -> elt * elt

second order derivative of f : float -> float, return f x and f' x.

Sourceval grad : (arr -> elt) -> arr -> arr

gradient of f : vector -> scalar.

Sourceval grad' : (arr -> elt) -> arr -> arr * arr

gradient of f : vector -> scalar, return f x and g x.

Sourceval jacobian : (arr -> arr) -> arr -> arr

jacobian of f : vector -> vector.

Sourceval jacobian' : (arr -> arr) -> arr -> arr * arr

jacobian of f : vector -> vector, return f x and j x.

Sourceval jacobianT : (arr -> arr) -> arr -> arr

transposed jacobian of f : vector -> vector.

Sourceval jacobianT' : (arr -> arr) -> arr -> arr * arr

transposed jacobian of f : vector -> vector, return f x and j x.

OCaml

Innovation. Community. Security.