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

SCM Repository

[diderot] Diff of /branches/charisee/src/compiler/ein/mkoperators.sml
ViewVC logotype

Diff of /branches/charisee/src/compiler/ein/mkoperators.sml

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

revision 2679, Tue Jul 29 04:18:35 2014 UTC revision 2680, Wed Aug 6 00:51:53 2014 UTC
# Line 347  Line 347 
347          index = [i],          index = [i],
348          body = E.Add          body = E.Add
349              [E.Sum([(E.V 1, 0,j-1)],E.Prod[E.Tensor(0, [E.V 0, E.V 1]), E.Tensor(1, [E.V 1])]),              [E.Sum([(E.V 1, 0,j-1)],E.Prod[E.Tensor(0, [E.V 0, E.V 1]), E.Tensor(1, [E.V 1])]),
350                E.Tensor(1,[E.V 0])]                E.Tensor(2,[E.V 0])]
351          }          }
352    
353    
354            fun transformA(i, j) = E.EIN{
355            params = [E.TEN(1,[i,j]), E.TEN(1,[j])],
356            index = [i],
357            body = E.Sum([(E.V 1, 0,j-1)],E.Prod[E.Tensor(0, [E.V 0, E.V 1]), E.Tensor(1, [E.V 1])])
358            }
359    
360    
361            fun transformB(i, j) = E.EIN{
362            params = [E.TEN(1,[j]), E.TEN(1,[j])],
363            index = [i],
364            body = E.Add[E.Tensor(0, [E.V 0]), E.Tensor(1,[E.V 0])]
365            }
366    
367    
368    
369       (*New OPs*)       (*New OPs*)
370      fun mulFieldss dim = E.EIN{      fun mulFieldss dim = E.EIN{
371          params = [E.FLD(dim),E.FLD(dim)],          params = [E.FLD(dim),E.FLD(dim)],

Legend:
Removed from v.2679  
changed lines
  Added in v.2680

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