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 4268, Tue Jul 26 14:00:35 2016 UTC revision 4269, Tue Jul 26 14:28:03 2016 UTC
# Line 485  Line 485 
485          if(fty.is_Vector(ityp2)):          if(fty.is_Vector(ityp2)):
486              #length of vetors              #length of vetors
487              rtn=0              rtn=0
488                [b1] = fty.get_shape(ityp2)
489              if(a1!=b1):              if(a1!=b1):
490                  raise x                  raise x
             [b1] = fty.get_shape(ityp2)  
491              for s in  range(a1):              for s in  range(a1):
492                  rtn += exp1[s]*exp2[s]                  rtn += exp1[s]*exp2[s]
493              return rtn              return rtn

Legend:
Removed from v.4268  
changed lines
  Added in v.4269

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