package owl-ode

  1. Overview
  2. Docs

Source file symplectic_d.ml

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# 1 "src/ode/symplectic/symplectic_d.ml"
(*
 * OWL - OCaml Scientific and Engineering Computing
 * OWL-ODE - Ordinary Differential Equation Solvers
 *
 * Copyright (c) 2019 Ta-Chu Kao <tck29@cam.ac.uk>
 * Copyright (c) 2019 Marcello Seri <m.seri@rug.nl>
 *)


type mat = Owl_dense_matrix_d.mat

include Symplectic_generic.Make (Owl_dense_ndarray.D)

module Symplectic_Euler = struct
  type s = mat * mat
  type t = mat
  type output = mat * mat * mat
  let solve = prepare symplectic_euler_s
end

module PseudoLeapfrog = struct
  type s = mat * mat
  type t = mat
  type output = mat * mat * mat
  let solve = prepare pseudoleapfrog_s
end

module Leapfrog = struct
  type s = mat * mat
  type t = mat
  type output = mat * mat * mat
  let solve = prepare leapfrog_s
end

module Ruth3 = struct
  type s = mat * mat
  type t = mat
  type output = mat * mat * mat
  let solve = prepare ruth3_s
end

module Ruth4 = struct
  type s = mat * mat
  type t = mat
  type output = mat * mat * mat
  let solve = prepare ruth4_s
end
OCaml

Innovation. Community. Security.