| Home | Trees | Index | Help |
|---|
| Package esys :: Package escript :: Module util |
|
| Classes | |
|---|---|
Abs_Symbol |
Symbol representing the result of the
absolute value function |
Acos_Symbol |
Symbol representing the result of the
inverse cosine function |
Acosh_Symbol |
Symbol representing the result of the
inverse hyperolic cosine function |
Add_Symbol |
Symbol representing the sum of two arguments. |
Asin_Symbol |
Symbol representing the result of the
inverse sine function |
Asinh_Symbol |
Symbol representing the result of the
inverse hyperbolic sine function |
Atan_Symbol |
Symbol representing the result of the
inverse tangent function |
Atanh_Symbol |
Symbol representing the result of the
inverse hyperbolic tangent function |
Cos_Symbol |
Symbol representing the result of the
cosine function |
Cosh_Symbol |
Symbol representing the result of the
hyperbolic cosine function |
DependendSymbol |
DependendSymbol extents L{Symbol} by modifying the == operator to allow two instances to be equal. |
Exp_Symbol |
Symbol representing the result of the
exponential function |
GeneralTensorProduct_Symbol |
Symbol representing the quotient of two arguments. |
GetSlice_Symbol |
Symbol representing getting a slice for a
Symbol |
Grad_Symbol |
Symbol representing the result of the
gradient operator |
Integrate_Symbol |
Symbol representing the result of the
spatial integration operator |
Interpolate_Symbol |
Symbol representing the result of the
interpolation operator |
Inverse_Symbol |
Symbol representing the result of the
inverse function |
Log_Symbol |
Symbol representing the result of the
natural logarithm function |
Maxval_Symbol |
Symbol representing the result of the
maximum value function |
Minval_Symbol |
Symbol representing the result of the
minimum value function |
Mult_Symbol |
Symbol representing the product of two arguments. |
Power_Symbol |
Symbol representing the first argument to the power of the second argument. |
Quotient_Symbol |
Symbol representing the quotient of two arguments. |
Sin_Symbol |
Symbol representing the result of the sine
function |
Sinh_Symbol |
Symbol representing the result of the
hyperbolic sine function |
Sqrt_Symbol |
Symbol representing the result of the
square root function |
Symbol |
Symbol class. |
Tan_Symbol |
Symbol representing the result of the
tangent function |
Tanh_Symbol |
Symbol representing the result of the
hyperbolic tangent function |
Trace_Symbol |
Symbol representing the result of the trace
function |
Transpose_Symbol |
Symbol representing the result of the
transpose function |
WhereNegative_Symbol |
Symbol representing the result of the mask
of positive values function |
WherePositive_Symbol |
Symbol representing the result of the mask
of positive values function |
WhereZero_Symbol |
Symbol representing the result of the mask
of zero entries function |
| Function Summary | |
|---|---|
returns inverse cosine of argument arg | |
returns inverse hyperolic cosine of argument arg | |
escript.Symbol, float,
int, escript.Data,
numarray.NumArray.
|
adds arg0 and arg1 together. |
returns inverse sine of argument arg | |
returns inverse hyperbolic sine of argument arg | |
returns inverse tangent of argument arg | |
returns inverse hyperbolic tangent of argument arg | |
numarray.NumArray, escript.Data, Symbol, int or
float depending on the input
|
cuts the values of arg between minval and maxval |
int or None
|
identifies, if possible, the spatial dimension across a set of objects which may or my not have a spatial dimension. |
tuple of int
|
returns a shape to which arg0 can be extendent from the right and arg1 can be extended from the left. |
returns cosine of argument arg | |
returns hyperbolic cosine of argument arg | |
escript.Data or Symbol
|
returns the divergence of arg at where. |
numarray.NumArray,escript.Data, Symbol depending on the input.
|
returns the eigenvalues of the square matrix arg. |
tuple of escript.Data.
|
returns the eigenvalues and eigenvectors of the square matrix arg. |
arg0 and arg1 are both Data objects but not neccesrily on the same function space. | |
arg is a Data objects!!! | |
escript_nonsymmetric(arg)
| |
escript_symmetric(arg)
| |
arg si a Data objects!!! | |
arg si a Data objects!!! | |
returns exponential of argument arg | |
generalized tensor product out[s,t]=S{Sigma}_r arg0[s,r]*arg1[r,t] where s runs through arg0.Shape[:arg0.Rank-axis_offset] r runs trough arg0.Shape[:axis_offset] t runs through arg1.Shape[axis_offset:] In the first case the the second dimension of arg0 and the length of arg1 must match and in the second case the two last dimensions of arg0 must match the shape of arg1. | |
escript.Data or Symbol
|
Returns the spatial gradient of arg at where. |
numarray.NumArray of rank 1, rankk 2 or rank
4.
|
return the shape x shape identity tensor |
return the dxd identity matrix | |
return the dxdxdxd identity tensor | |
float
|
returns the maximum value over all data points. |
numarray.NumArray, escript.Data, Symbol, float
depending on the input
|
inner product of the two argument: |
float, numarray.NumArray or Symbol
|
Return the integral of the function arg over its
domain. |
escript.Data or Symbol
|
interpolates the function into the FunctionSpace where. |
numarray.NumArray, escript.Data, Symbol depending on the input
|
returns the inverse of the square matrix arg. |
escript.Data or Symbol
|
returns the jump of arg across the continuity of the domain |
return the kronecker δ-symbol | |
float or Symbol
|
returns the L2 norm of arg at where |
returns length/Euclidean norm of argument arg at each data point | |
returns natural logarithm of argument arg | |
returns base-10 logarithm of argument arg | |
float
|
returns the Lsup-norm of argument arg. |
list of int
|
If shape is not given the shape "largest" shape of args is used. |
tuple of two numarray.NumArray, two
escript.Data, a Symbol and one of the
types numarray.NumArray or
escript.Data.
|
converting arg0 and arg1 both to the same type numarray.NumArray or escript.Data or, if one of
arg0 or arg1 is of type Symbol, the other one to be of type
numarray.NumArray or escript.Data. |
matrix-matrix or matrix-vector product of the two argument: out[s0]=S{Sigma}_{r0} arg0[s0,r0]*arg1[r0] or out[s0,s1]=S{Sigma}_{r0} arg0[s0,r0]*arg1[r0,s1] The second dimension of arg0 and the length of arg1 must match. | |
numarray.NumArray, escript.Data, Symbol, int or
float depending on the input
|
the maximum over arguments args |
returns maximum value over all components of arg at each data point | |
numarray.NumArray, escript.Data, Symbol, int or
float depending on the input
|
the minimum over arguments args |
returns minimum value over all components of arg at each data point | |
escript.Symbol, float,
int, escript.Data,
numarray.NumArray.
|
product of arg0 and arg1 |
numarray.NumArray, escript.Data, Symbol depending on the input
|
returns the nonsymmetric part of the square matrix arg. |
the outer product of the two argument:... | |
int or None
|
identifies the spatial dimension of its argument |
tuple of int
|
identifies the shape of its argument |
escript.Symbol, float,
int, escript.Data,
numarray.NumArray.
|
raises arg0 to the power of arg1 |
escript.Symbol, float,
int, escript.Data,
numarray.NumArray.
|
quotient of arg0 and arg1 |
resorts the component of arg according to index | |
writes a L{Data} objects into a files using the the DX file format. | |
writes a L{Data} objects into a files using the the VTK XML file format. | |
returns sign of argument arg | |
returns sine of argument arg | |
returns hyperbolic sine of argument arg | |
returns square root of argument arg | |
float
|
returns the maximum value over all data points. |
numarray.NumArray, escript.Data, Symbol depending on the input
|
returns the symmetric part of the square matrix arg. |
returns tangent of argument arg | |
returns hyperbolic tangent of argument arg | |
the tensor product of the two argument: for arg0 of rank 2 this is out[s0]=S{Sigma}_{r0} arg0[s0,r0]*arg1[r0] or out[s0,s1]=S{Sigma}_{r0} arg0[s0,r0]*arg1[r0,s1] and for arg0 of rank 4 this is out[s0,s1,s2,s3]=S{Sigma}_{r0,r1} arg0[s0,s1,r0,r1]*arg1[r0,r1,s2,s3] or out[s0,s1,s2]=S{Sigma}_{r0,r1} arg0[s0,s1,r0,r1]*arg1[r0,r1,s2] or out[s0,s1]=S{Sigma}_{r0,r1} arg0[s0,s1,r0,r1]*arg1[r0,r1] In the first case the the second dimension of arg0 and the length of arg1 must match and in the second case the two last dimensions of arg0 must match the shape of arg1. | |
test the argument for being identical to Zero | |
escript.Data, Symbol,
numarray.NumArray depending on the type of arg.
|
returns the trace of arg which the sum of arg[k,k] over k. |
escript.Data, Symbol,
numarray.NumArray,float,
int depending on the type of arg.
|
returns the transpose of arg by swaping the first axis_offset and the last rank-axis_offset components. |
return a unit vector u of dimension d with nonzero index i: | |
returns mask of positive values of argument arg | |
returns mask of non-negative values of argument arg | |
returns mask of non-positive values of argument arg | |
returns mask of values different from zero of argument arg | |
returns mask of positive values of argument arg | |
returns mask of zero entries of argument arg | |
| Variable Summary | |
|---|---|
str |
__author__: name of author |
str |
__copyright__: copyrights |
str |
__date__: date of the version |
str |
__license__: licence agreement |
str |
__url__: url entry point on documentation |
str |
__version__: version |
| Function Details |
|---|
acos(arg)returns inverse cosine of argument arg |
acosh(arg)returns inverse hyperolic cosine of argument arg |
add(arg0, arg1)adds arg0 and arg1 together.
|
asin(arg)returns inverse sine of argument arg |
asinh(arg)returns inverse hyperbolic sine of argument arg |
atan(arg)returns inverse tangent of argument arg |
atanh(arg)returns inverse hyperbolic tangent of argument arg |
clip(arg, minval=0.0, maxval=1.0)cuts the values of arg between minval and maxval
|
commonDim(*args)identifies, if possible, the spatial dimension across a set of objects which may or my not have a spatial dimension.
|
commonShape(arg0, arg1)returns a shape to which arg0 can be extendent from the right and arg1 can be extended from the left. |
cos(arg)returns cosine of argument arg |
cosh(arg)returns hyperbolic cosine of argument arg |
div(arg, where=None)returns the divergence of arg at where.
|
eigenvalues(arg)returns the eigenvalues of the square matrix arg.
|
eigenvalues_and_eigenvectors(arg)returns the eigenvalues and eigenvectors of the square matrix arg.
|
escript_generalTensorProduct(arg0, arg1, axis_offset)arg0 and arg1 are both Data objects but not neccesrily on the same function space. they could be identical!!! |
escript_inverse(arg)arg is a Data objects!!! |
escript_trace(arg, axis_offset)arg si a Data objects!!! |
escript_transpose(arg, axis_offset)arg si a Data objects!!! |
exp(arg)returns exponential of argument arg |
generalTensorProduct(arg0, arg1, axis_offset=0)
generalized tensor product
out[s,t]=S{Sigma}_r arg0[s,r]*arg1[r,t]
where s runs through arg0.Shape[:arg0.Rank-axis_offset]
r runs trough arg0.Shape[:axis_offset]
t runs through arg1.Shape[axis_offset:]
In the first case the the second dimension of arg0 and the length of arg1 must match and
in the second case the two last dimensions of arg0 must match the shape of arg1.
@param arg0: first argument
@type arg0: L{numarray.NumArray}, L{escript.Data}, L{Symbol}, C{float}, C{int}
@param arg1: second argument of shape greater of 1 or 2 depending on rank of arg0
@type arg1: L{numarray.NumArray}, L{escript.Data}, L{Symbol}, C{float}, C{int}
@return: the general tensor product of arg0 and arg1 at each data point.
@rtype: L{numarray.NumArray}, L{escript.Data}, L{Symbol} depending on the input
|
grad(arg, where=None)Returns the spatial gradient of arg at where. Ifg is the returned object, then
|
identity(shape=())return the shape x shape identity tensor
|
identityTensor(d=3)return the dxd identity matrix
|
identityTensor4(d=3)return the dxdxdxd identity tensor
|
inf(arg)returns the maximum value over all data points.
|
inner(arg0, arg1)inner product of the two argument: out=Σ_s arg0[s]*arg1[s] where s runs through arg0.Shape. arg0 and arg1 must have the same shape.
|
integrate(arg, where=None)Return the integral of the functionarg over its
domain. If where is present arg is
interpolated to where before integration.
|
interpolate(arg, where)interpolates the function into the FunctionSpace where. |
inverse(arg)returns the inverse of the square matrix arg.
|
jump(arg, domain=None)returns the jump of arg across the continuity of the domain
|
kronecker(d=3)return the kronecker δ-symbol
|
L2(arg)returns the L2 norm of arg at where |
length(arg)returns length/Euclidean norm of argument arg at each data point |
log(arg)returns natural logarithm of argument arg |
log10(arg)returns base-10 logarithm of argument arg |
Lsup(arg)returns the Lsup-norm of argument arg. This is the maximum absolute value over all data points. This function is equivalent to sup(abs(arg)).
|
matchShape(arg0, arg1)If shape is not given the shape "largest" shape of args is used.
|
matchType(arg0=0.0, arg1=0.0)converting arg0 and arg1 both to the same typenumarray.NumArray or escript.Data or, if one
of arg0 or arg1 is of type Symbol, the other one to be of type
numarray.NumArray or escript.Data.
|
matrixmult(arg0, arg1)
matrix-matrix or matrix-vector product of the two argument:
out[s0]=S{Sigma}_{r0} arg0[s0,r0]*arg1[r0]
or
out[s0,s1]=S{Sigma}_{r0} arg0[s0,r0]*arg1[r0,s1]
The second dimension of arg0 and the length of arg1 must match.
@param arg0: first argument of rank 2
@type arg0: L{numarray.NumArray}, L{escript.Data}, L{Symbol}
@param arg1: second argument of at least rank 1
@type arg1: L{numarray.NumArray}, L{escript.Data}, L{Symbol}
@return: the matrix-matrix or matrix-vector product of arg0 and arg1 at each data point
@rtype: L{numarray.NumArray}, L{escript.Data}, L{Symbol} depending on the input
@raise ValueError: if the shapes of the arguments are not appropriate
|
maximum(*args)the maximum over arguments args |
maxval(arg)returns maximum value over all components of arg at each data point |
minimum(*args)the minimum over arguments args |
minval(arg)returns minimum value over all components of arg at each data point |
mult(arg0, arg1)product of arg0 and arg1
|
nonsymmetric(arg)returns the nonsymmetric part of the square matrix arg. This is (arg-transpose(arg))/2 |
outer(arg0, arg1)
the outer product of the two argument:
out[t,s]=arg0[t]*arg1[s]
where s runs through arg0.Shape
t runs through arg1.Shape
@param arg0: first argument
@type arg0: L{numarray.NumArray}, L{escript.Data}, L{Symbol}, C{float}, C{int}
@param arg1: second argument
@type arg1: L{numarray.NumArray}, L{escript.Data}, L{Symbol}, C{float}, C{int}
@return: the outer product of arg0 and arg1 at each data point
@rtype: L{numarray.NumArray}, L{escript.Data}, L{Symbol} depending on the input
|
pokeDim(arg)identifies the spatial dimension of its argument
|
pokeShape(arg)identifies the shape of its argument
|
power(arg0, arg1)raises arg0 to the power of arg1
|
quotient(arg0, arg1)quotient of arg0 and arg1
|
reorderComponents(arg, index)resorts the component of arg according to index |
saveDX(filename, domain=None, **data)
writes a L{Data} objects into a files using the the DX file format.
Example:
tmp=Scalar(..)
v=Vector(..)
saveDX("solution.dx",temperature=tmp,velovity=v)
tmp and v are written into "solution.dx" where tmp is named "temperature" and v is named "velovity".
@param filename: file name of the output file
@type filename: C{str}
@param domain: domain of the L{Data} object. If not specified, the domain of the given L{Data} objects is used.
@type domain: L{escript.Domain}
@keyword <name>: writes the assigned value to the DX file using <name> as identifier. The identifier can be used to select the data set when data are imported into DX.
@type <name>: L{Data} object.
@note: The data objects have to be defined on the same domain. They may not be in the same L{FunctionSpace} but one cannot expect that all L{FunctionSpace} can be mixed. Typically, data on the boundary and data on the interior cannot be mixed.
|
saveVTK(filename, domain=None, **data)
writes a L{Data} objects into a files using the the VTK XML file format.
Example:
tmp=Scalar(..)
v=Vector(..)
saveVTK("solution.xml",temperature=tmp,velovity=v)
tmp and v are written into "solution.xml" where tmp is named "temperature" and v is named "velovity"
@param filename: file name of the output file
@type filename: C{str}
@param domain: domain of the L{Data} object. If not specified, the domain of the given L{Data} objects is used.
@type domain: L{escript.Domain}
@keyword <name>: writes the assigned value to the VTK file using <name> as identifier.
@type <name>: L{Data} object.
@note: The data objects have to be defined on the same domain. They may not be in the same L{FunctionSpace} but one cannot expect that all L{FunctionSpace} can be mixed. Typically, data on the boundary and data on the interior cannot be mixed.
|
sign(arg)returns sign of argument arg |
sin(arg)returns sine of argument arg |
sinh(arg)returns hyperbolic sine of argument arg |
sqrt(arg)returns square root of argument arg |
sup(arg)returns the maximum value over all data points.
|
symmetric(arg)returns the symmetric part of the square matrix arg. This is (arg+transpose(arg))/2 |
tan(arg)returns tangent of argument arg |
tanh(arg)returns hyperbolic tangent of argument arg |
tensormult(arg0, arg1)
the tensor product of the two argument:
for arg0 of rank 2 this is
out[s0]=S{Sigma}_{r0} arg0[s0,r0]*arg1[r0]
or
out[s0,s1]=S{Sigma}_{r0} arg0[s0,r0]*arg1[r0,s1]
and for arg0 of rank 4 this is
out[s0,s1,s2,s3]=S{Sigma}_{r0,r1} arg0[s0,s1,r0,r1]*arg1[r0,r1,s2,s3]
or
out[s0,s1,s2]=S{Sigma}_{r0,r1} arg0[s0,s1,r0,r1]*arg1[r0,r1,s2]
or
out[s0,s1]=S{Sigma}_{r0,r1} arg0[s0,s1,r0,r1]*arg1[r0,r1]
In the first case the the second dimension of arg0 and the length of arg1 must match and
in the second case the two last dimensions of arg0 must match the shape of arg1.
@param arg0: first argument of rank 2 or 4
@type arg0: L{numarray.NumArray}, L{escript.Data}, L{Symbol}
@param arg1: second argument of shape greater of 1 or 2 depending on rank of arg0
@type arg1: L{numarray.NumArray}, L{escript.Data}, L{Symbol}
@return: the tensor product of arg0 and arg1 at each data point
@rtype: L{numarray.NumArray}, L{escript.Data}, L{Symbol} depending on the input
|
testForZero(arg)test the argument for being identical to Zero
|
trace(arg, axis_offset=0)returns the trace of arg which the sum of arg[k,k] over k.
|
transpose(arg, axis_offset=None)returns the transpose of arg by swaping the first axis_offset and the last rank-axis_offset components.
|
unitVector(i=0, d=3)return a unit vector u of dimension d with nonzero index i:
|
whereNegative(arg)returns mask of positive values of argument arg |
whereNonNegative(arg)returns mask of non-negative values of argument arg |
whereNonPositive(arg)returns mask of non-positive values of argument arg |
whereNonZero(arg, tol=0.0)returns mask of values different from zero of argument arg |
wherePositive(arg)returns mask of positive values of argument arg |
whereZero(arg, tol=0.0)returns mask of zero entries of argument arg
|
| Variable Details |
|---|
__author__name of author
|
__copyright__copyrights
|
__date__date of the version
|
__license__licence agreement
|
__url__url entry point on documentation
|
__version__version
|
| Home | Trees | Index | Help |
|---|
| Generated by Epydoc 2.1 on Thu Apr 27 11:16:20 2006 | http://epydoc.sf.net |