43 |
# def matchType(arg0=0.,arg1=0.): |
# def matchType(arg0=0.,arg1=0.): |
44 |
# def matchShape(arg0,arg1): |
# def matchShape(arg0,arg1): |
45 |
|
|
|
# def maximum(arg0,arg1): |
|
|
# def minimum(arg0,arg1): |
|
|
# def clip(arg,minval,maxval) |
|
|
|
|
46 |
# def transpose(arg,axis=None): |
# def transpose(arg,axis=None): |
47 |
# def trace(arg,axis0=0,axis1=1): |
# def trace(arg,axis0=0,axis1=1): |
48 |
# def reorderComponents(arg,index): |
# def reorderComponents(arg,index): |
3315 |
@type arg: L{numarray.NumArray}, L{escript.Data}, L{Symbol}, C{int} or C{float} |
@type arg: L{numarray.NumArray}, L{escript.Data}, L{Symbol}, C{int} or C{float} |
3316 |
@param minval: lower range |
@param minval: lower range |
3317 |
@type arg: C{float} |
@type arg: C{float} |
3318 |
@param maxval: uper range |
@param maxval: upper range |
3319 |
@type arg: C{float} |
@type arg: C{float} |
3320 |
@return: is on object with all its value between minval and maxval. value of the argument that greater then minval and |
@return: is on object with all its value between minval and maxval. value of the argument that greater then minval and |
3321 |
less then maxval are unchanged. |
less then maxval are unchanged. |
3322 |
@rtype: L{numarray.NumArray}, L{escript.Data}, L{Symbol}, C{int} or C{float} depending on the input |
@rtype: L{numarray.NumArray}, L{escript.Data}, L{Symbol}, C{int} or C{float} depending on the input |
3323 |
|
@raise ValueError: if minval>maxval |
3324 |
""" |
""" |
3325 |
if minval>maxval: |
if minval>maxval: |
3326 |
raise ValueError,"minval = %s must be less then maxval %s"%(minval,maxval) |
raise ValueError,"minval = %s must be less then maxval %s"%(minval,maxval) |