/[escript]/trunk/escript/py_src/util.py
ViewVC logotype

Diff of /trunk/escript/py_src/util.py

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

revision 795 by ksteube, Mon Jul 31 01:23:58 2006 UTC revision 800 by gross, Tue Aug 8 11:23:18 2006 UTC
# Line 2963  def trace(arg,axis_offset=0): Line 2963  def trace(arg,axis_offset=0):
2963        s=list(arg.getShape())                s=list(arg.getShape())        
2964        if not s[axis_offset] == s[axis_offset+1]:        if not s[axis_offset] == s[axis_offset+1]:
2965          raise ValueError,"dimensions of component %s and %s must match."%(axis_offset.axis_offset+1)          raise ValueError,"dimensions of component %s and %s must match."%(axis_offset.axis_offset+1)
2966        return arg._matrixtrace(axis_offset)        return arg._trace(axis_offset)
2967     elif isinstance(arg,float):     elif isinstance(arg,float):
2968        raise TypeError,"illegal argument type float."        raise TypeError,"illegal argument type float."
2969     elif isinstance(arg,int):     elif isinstance(arg,int):

Legend:
Removed from v.795  
changed lines
  Added in v.800

  ViewVC Help
Powered by ViewVC 1.1.26