Home My Page Projects Code Snippets Project Openings diderot
Summary Activity Tracker Tasks SCM

SCM Repository

[diderot] Annotation of /branches/vis15/src/compiler/basis/basis-names.sml
ViewVC logotype

Annotation of /branches/vis15/src/compiler/basis/basis-names.sml

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3431 - (view) (download)

1 : jhr 3391 (* basis-names.sml
2 :     *
3 :     * This code is part of the Diderot Project (http://diderot-language.cs.uchicago.edu)
4 :     *
5 :     * COPYRIGHT (c) 2015 The University of Chicago
6 :     * All rights reserved.
7 :     *
8 :     * Builtin names used for Basis functions.
9 :     *)
10 :    
11 :     structure BasisNames =
12 :     struct
13 :    
14 :     (* import the operator names from parse-tree/operators.sml *)
15 :     open Operators
16 :    
17 :     (* reduction operators *)
18 :     val fn_all = Atom.atom "all"
19 :     val fn_exists = Atom.atom "exists"
20 :     val fn_max = Atom.atom "max" (* also used as a regular function *)
21 :     val fn_mean = Atom.atom "mean"
22 :     val fn_min = Atom.atom "min" (* also used as a regular function *)
23 :     val fn_product = Atom.atom "product"
24 :     val fn_sum = Atom.atom "sum"
25 :     val fn_variance = Atom.atom "variance"
26 :    
27 :     (* function names *)
28 :     val fn_abs = Atom.atom "abs"
29 :     val fn_border = Atom.atom "border"
30 :     val fn_clamp = Atom.atom "clamp"
31 :     val fn_det = Atom.atom "det"
32 :     val fn_dist = Atom.atom "dist"
33 :     val fn_evecs = Atom.atom "evecs"
34 :     val fn_evals = Atom.atom "evals"
35 :     val fn_image = Atom.atom "image"
36 :     val fn_inside = Atom.atom "inside"
37 :     val fn_length = Atom.atom "length"
38 :     val fn_lerp = Atom.atom "lerp"
39 : jhr 3398 val fn_load = Atom.atom "load"
40 :     val fn_max = Atom.atom "max"
41 :     val fn_min = Atom.atom "min"
42 : jhr 3391 val fn_mirror = Atom.atom "mirror"
43 :     val fn_modulate = Atom.atom "modulate"
44 :     val fn_normalize = Atom.atom "normalize"
45 :     val fn_principleEvec = Atom.atom "principleEvec"
46 : jhr 3398 val fn_size = Atom.atom "size"
47 : jhr 3391 val fn_trace = Atom.atom "trace"
48 :     val fn_transpose = Atom.atom "transpose"
49 : jhr 3398 val fn_wrap = Atom.atom "wrap"
50 : jhr 3391
51 : jhr 3398 (* lifted math functions *)
52 :     val fn_acos = Atom.atom "acos"
53 :     val fn_asin = Atom.atom "asin"
54 :     val fn_cos = Atom.atom "cos"
55 :     val fn_sin = Atom.atom "sin"
56 :     val fn_sqrt = Atom.atom "sqrt"
57 :    
58 : jhr 3391 (* Query function names *)
59 :     val fn_sphere = Atom.atom "sphere"
60 :    
61 : jhr 3431 (* Sets of strands *)
62 :     val set_active = Atom.atom "active"
63 :     val set_all = Atom.atom "all"
64 :     val set_stable = Atom.atom "stable"
65 :    
66 : jhr 3391 (* kernel names *)
67 :     val kn_bspln3 = Atom.atom "bspln3"
68 :     val kn_bspln5 = Atom.atom "bspln5"
69 :     val kn_c4hexic = Atom.atom "c4hexic"
70 :     val kn_ctmr = Atom.atom "ctmr"
71 :     val kn_tent = Atom.atom "tent"
72 :    
73 :     end

root@smlnj-gforge.cs.uchicago.edu
ViewVC Help
Powered by ViewVC 1.0.0