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

SCM Repository

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

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

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

revision 4410, Fri Aug 12 18:28:32 2016 UTC revision 4411, Fri Aug 12 18:28:57 2016 UTC
# Line 81  Line 81 
81              (coeff2, exp2)= mk_exp(dim)              (coeff2, exp2)= mk_exp(dim)
82              coeffs= [ coeff1,coeff2]              coeffs= [ coeff1,coeff2]
83              exps = [exp1,exp2]              exps = [exp1,exp2]
84              print " inside get vec(): exp1", exp1              #print " inside get vec(): exp1", exp1
85              print " inside get vec(): exp2", exp2              #print " inside get vec(): exp2", exp2
86              return (coeffs, exps)              return (coeffs, exps)
87          elif (n==3):          elif (n==3):
88              (coeff1, exp1)= mk_exp(dim)              (coeff1, exp1)= mk_exp(dim)
# Line 91  Line 91 
91    
92              coeffs= [ coeff1,coeff2, coeff3]              coeffs= [ coeff1,coeff2, coeff3]
93              exps = [exp1, exp2, exp3]              exps = [exp1, exp2, exp3]
94              print " inside get vec(): exp1", exp1              #print " inside get vec(): exp1", exp1
95              print " inside get vec(): exp2", exp2              #print " inside get vec(): exp2", exp2
96              print " inside get vec(): exp3", exp3              #print " inside get vec(): exp3", exp3
97              return (coeffs, exps)              return (coeffs, exps)
98          else:          else:
99              raise Exception ("unsupported length:"+str(n))              raise Exception ("unsupported length:"+str(n))
100      def get_mat(n,m):      def get_mat(n,m):
101          exps=[]          exps=[]
102          coeffs=[]          coeffs=[]
103          print "starting get_mat"          #print "starting get_mat"
104          for i in range(n):          for i in range(n):
105              (c1,e1)= get_vec(m)              (c1,e1)= get_vec(m)
106              exps.append(e1)              exps.append(e1)
# Line 112  Line 112 
112          #e3 = [a*3,b*3,c*3]          #e3 = [a*3,b*3,c*3]
113          #exps = [e1, e1, e1] #each axis has fixed value          #exps = [e1, e1, e1] #each axis has fixed value
114          #coeffs = [c1, c1, c1]          #coeffs = [c1, c1, c1]
115          print "\n\n ********************** post get exp\n"          #print "\n\n ********************** post get exp\n"
116          #print "exps-e1",e1          #print "exps-e1",e1
117          #print "coeffs-c1",c1          #print "coeffs-c1",c1
118          print " exps[0][0]", exps[0][0]          #print " exps[0][0]", exps[0][0]
119          print " exps[0][1]", exps[0][1]          #print " exps[0][1]", exps[0][1]
120          print " exps[1][0]", exps[1][0]          #print " exps[1][0]", exps[1][0]
121          #print "\n\n ---   \n"          #print "\n\n ---   \n"
122          #print "coeffs",coeffs          #print "coeffs",coeffs
123          return (coeffs, exps)          return (coeffs, exps)

Legend:
Removed from v.4410  
changed lines
  Added in v.4411

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