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

SCM Repository

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

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

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

revision 4482, Thu Sep 1 20:43:01 2016 UTC revision 4483, Fri Sep 2 05:07:01 2016 UTC
# Line 267  Line 267 
267    
268      if(op1.arity==1):      if(op1.arity==1):
269          if((op1.id==op_negation.id) or  (op1.id==op_copy.id)):          if((op1.id==op_negation.id) or  (op1.id==op_copy.id)):
270              print "believes inside negation"  
271              return (ps_unu_all)              return (ps_unu_all)
272          elif((op1.id==op_norm.id) or (op1.id==op_normalize.id)):          elif((op1.id==op_norm.id) or (op1.id==op_normalize.id)):
273              return  ps_unu_all                # probe              return  ps_unu_all                # probe
# Line 293  Line 293 
293          elif((op1.id== op_tangent.id) or (op1.id== op_atangent.id)):          elif((op1.id== op_tangent.id) or (op1.id== op_atangent.id)):
294              return ps_unu_sk              return ps_unu_sk
295          elif(op1.id== op_sqrt.id):          elif(op1.id== op_sqrt.id):
296              print "believes inside sqrt"  
297              return get_k(get_scaF)              return get_k(get_scaF)
298          elif(op1.id==op_gradient.id):          elif(op1.id==op_gradient.id):
299              return get_k_noT(get_scaF) # differentiation only for scalar fields              return get_k_noT(get_scaF) # differentiation only for scalar fields
# Line 350  Line 350 
350          for j in t:          for j in t:
351              x+= j.name+","              x+= j.name+","
352          i+=1          i+=1
353          print x      #print x
354      name = example.toStr(ex, ty_num)      name = example.toStr(ex, ty_num)
355      ty = example.get_ty(ex, ty_num)      ty = example.get_ty(ex, ty_num)
356      return (name, opr,ty)      return (name, opr,ty)

Legend:
Removed from v.4482  
changed lines
  Added in v.4483

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