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

SCM Repository

[diderot] Diff of /branches/ein16/synth/d2/test_eval.py
ViewVC logotype

Diff of /branches/ein16/synth/d2/test_eval.py

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

revision 4455, Wed Aug 24 23:39:30 2016 UTC revision 4456, Thu Aug 25 04:03:27 2016 UTC
# Line 9  Line 9 
9  from obj_apply import *  from obj_apply import *
10  from obj_operator import *  from obj_operator import *
11  from obj_field import *  from obj_field import *
12    from write import *
13    
14    
15  # ***************************  unary operators ***************************  # ***************************  unary operators ***************************
# Line 531  Line 531 
531          if(fty.is_Vector(ityp2)):          if(fty.is_Vector(ityp2)):
532              #both vectors              #both vectors
533              [n2] = fty.get_shape(ityp2)              [n2] = fty.get_shape(ityp2)
534                x= "\n outer made shape:"+(str(n1)+","+str(n2))
535                write_outer(x)
536              for i in  range(n1):              for i in  range(n1):
537                  tmpI = []                  tmpI = []
538                  for j in range(n2):                  for j in range(n2):
# Line 539  Line 541 
541              return rtn              return rtn
542          elif(fty.is_Matrix(ityp2)):          elif(fty.is_Matrix(ityp2)):
543              [n2,n3] = fty.get_shape(ityp2)              [n2,n3] = fty.get_shape(ityp2)
544                x= "\n outer made shape:"+(str(n1)+","+str(n2)+","+str(n3))
545                write_outer(x)
546              for i in  range(n1):              for i in  range(n1):
547                  tmpI = []                  tmpI = []
548                  for j in range(n2):                  for j in range(n2):
# Line 552  Line 556 
556          [n1,n2] = fty.get_shape(ityp1)          [n1,n2] = fty.get_shape(ityp1)
557          if(fty.is_Vector(ityp2)):          if(fty.is_Vector(ityp2)):
558              [n3] = fty.get_shape(ityp2)              [n3] = fty.get_shape(ityp2)
559                x= "\n outer made shape:"+(str(n1)+","+str(n2)+","+str(n3))
560                write_outer(x)
561              for i in  range(n1):              for i in  range(n1):
562                  tmpI = []                  tmpI = []
563                  for j in range(n2):                  for j in range(n2):
# Line 563  Line 569 
569              return rtn              return rtn
570          elif(fty.is_Matrix(ityp2)):          elif(fty.is_Matrix(ityp2)):
571              [n3, n4] = fty.get_shape(ityp2)              [n3, n4] = fty.get_shape(ityp2)
572                x= "\n outer made shape:"+(str(n1)+","+str(n4))
573                write_outer(x)
574              for i in  range(n1):              for i in  range(n1):
575                  tmpI = []                  tmpI = []
576                  for j in range(n2):                  for j in range(n2):
# Line 1236  Line 1244 
1244      dim = fty.get_dim(otyp1)      dim = fty.get_dim(otyp1)
1245      #print "output type"+otyp1.name      #print "output type"+otyp1.name
1246      #print "inside probe field ortn", ortn      #print "inside probe field ortn", ortn
1247        write_outer("dim"+str(dim))
1248      if (dim==nonefield_dim):      if (dim==nonefield_dim):
1249          #still need to flatten          #still need to flatten
1250          rtn = []          rtn = []

Legend:
Removed from v.4455  
changed lines
  Added in v.4456

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