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

SCM Repository

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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 3431 - (download) (annotate)
Sat Nov 14 14:03:58 2015 UTC (3 years, 11 months ago) by jhr
File size: 2243 byte(s)
  Working on merge; some bug fixing and code cleanup
(* basis-names.sml
 *
 * This code is part of the Diderot Project (http://diderot-language.cs.uchicago.edu)
 *
 * COPYRIGHT (c) 2015 The University of Chicago
 * All rights reserved.
 *
 * Builtin names used for Basis functions.
 *)

structure BasisNames =
  struct

  (* import the operator names from parse-tree/operators.sml *)
    open Operators

  (* reduction operators *)
    val fn_all = Atom.atom "all"
    val fn_exists = Atom.atom "exists"
    val fn_max = Atom.atom "max"		(* also used as a regular function *)
    val fn_mean = Atom.atom "mean" 
    val fn_min = Atom.atom "min"		(* also used as a regular function *)
    val fn_product = Atom.atom "product" 
    val fn_sum = Atom.atom "sum" 
    val fn_variance = Atom.atom "variance" 

  (* function names *)
    val fn_abs = Atom.atom "abs"
    val fn_border = Atom.atom "border"
    val fn_clamp = Atom.atom "clamp"
    val fn_det = Atom.atom "det"
    val fn_dist = Atom.atom "dist" 
    val fn_evecs = Atom.atom "evecs"
    val fn_evals = Atom.atom "evals"
    val fn_image = Atom.atom "image"
    val fn_inside = Atom.atom "inside"
    val fn_length = Atom.atom "length"
    val fn_lerp = Atom.atom "lerp"
    val fn_load = Atom.atom "load"
    val fn_max = Atom.atom "max"
    val fn_min = Atom.atom "min"
    val fn_mirror = Atom.atom "mirror"
    val fn_modulate = Atom.atom "modulate"
    val fn_normalize = Atom.atom "normalize"
    val fn_principleEvec = Atom.atom "principleEvec"
    val fn_size = Atom.atom "size"
    val fn_trace = Atom.atom "trace"
    val fn_transpose = Atom.atom "transpose"
    val fn_wrap = Atom.atom "wrap"

  (* lifted math functions *)
    val fn_acos = Atom.atom "acos"
    val fn_asin = Atom.atom "asin"
    val fn_cos = Atom.atom "cos"
    val fn_sin = Atom.atom "sin"
    val fn_sqrt = Atom.atom "sqrt"

  (* Query function names *) 
    val fn_sphere = Atom.atom "sphere" 

  (* Sets of strands *)
    val set_active = Atom.atom "active"
    val set_all    = Atom.atom "all"
    val set_stable = Atom.atom "stable"

  (* kernel names *)
    val kn_bspln3 = Atom.atom "bspln3"
    val kn_bspln5 = Atom.atom "bspln5"
    val kn_c4hexic = Atom.atom "c4hexic"
    val kn_ctmr = Atom.atom "ctmr"
    val kn_tent = Atom.atom "tent"

  end

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