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

SCM Repository

[diderot] Diff of /branches/vis15/src/compiler/high-to-mid/coord-space-transform.sml
ViewVC logotype

Diff of /branches/vis15/src/compiler/high-to-mid/coord-space-transform.sml

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 3977, Wed Jun 15 19:06:30 2016 UTC revision 3978, Wed Jun 15 19:07:40 2016 UTC
# Line 30  Line 30 
30              pos : MidIR.var             (* the variable bound to the world-space position *)              pos : MidIR.var             (* the variable bound to the world-space position *)
31            } -> MidIR.var * MidIR.var * MidIR.var            } -> MidIR.var * MidIR.var * MidIR.var
32    
33      val imageToWorld : Ein.tensor_id * int * Ein.mu list * Ein.tensor_id      val imageToWorld : Ein.param_id * int * Ein.mu list * Ein.param_id
34            -> (Ein.mu list * Ein.sumrange list * Ein.ein_exp list)            -> (Ein.mu list * Ein.sumrange list * Ein.ein_exp list)
35    
36    end = struct    end = struct
# Line 109  Line 109 
109            fun iter ([], _, newdx, newsx, ps) = (rev newdx, rev newsx, rev ps)            fun iter ([], _, newdx, newsx, ps) = (rev newdx, rev newsx, rev ps)
110              | iter (i::es, n, newdx, newsx, ps) = let              | iter (i::es, n, newdx, newsx, ps) = let
111                  val j = E.V n                  val j = E.V n
112                  val sx = (j, 0, dim-1)                  val sx = (n, 0, dim-1)
113                  val p = E.Tensor(Pid, [i, j])                  val p = E.Tensor(Pid, [i, j])
114                  in                  in
115                    iter (es, n+1, j::newdx, sx::newsx, p::ps)                    iter (es, n+1, j::newdx, sx::newsx, p::ps)

Legend:
Removed from v.3977  
changed lines
  Added in v.3978

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