Element-wise math¶
See Also:
Arithmetic Operations on Variables (simple arithmetic on PyGeode variables)
Universal functions (ufunc) (external Numpy documentation)
The majority of these functions are wrappers to the corresponding Numpy
functions. They are augmented to handle PyGeode variables, and, in the case of
functions that take a single argument, are available in two forms, as functions
in the top-level PyGeode namespace, or as members of the Var
class.
- pygeode.sign(x)¶
Sign (+1 = positive, -1 = negative). Wraps
numpy.sign
- Var.sign()¶
Sign (+1 = positive, -1 = negative). Wraps
numpy.sign
Called on the Var object.
- pygeode.log10(x)¶
Base-10 logarithm. Wraps
numpy.log10
- Var.log10()¶
Base-10 logarithm. Wraps
numpy.log10
Called on the Var object.
- pygeode.cosd(x)¶
Cosine of angle (in degrees)
- Var.cosd()¶
Cosine of angle (in degrees) Called on the Var object.
- pygeode.sind(x)¶
Sine of angle (in degrees)
- Var.sind()¶
Sine of angle (in degrees) Called on the Var object.
- pygeode.tand(x)¶
Tangent of angle (in degrees)
- Var.tand()¶
Tangent of angle (in degrees) Called on the Var object.
- pygeode.sinh(x)¶
Hyperbolic sine. Wraps
numpy.sinh
- Var.sinh()¶
Hyperbolic sine. Wraps
numpy.sinh
Called on the Var object.
- pygeode.cosh(x)¶
Hyperbolic cosine. Wraps
numpy.cosh
- Var.cosh()¶
Hyperbolic cosine. Wraps
numpy.cosh
Called on the Var object.
- pygeode.tanh(x)¶
Hyperbolic tangent. Wraps
numpy.tanh
- Var.tanh()¶
Hyperbolic tangent. Wraps
numpy.tanh
Called on the Var object.
- pygeode.arcsin(x)¶
Inverse sine (in radians). Wraps
numpy.arcsin
- Var.arcsin()¶
Inverse sine (in radians). Wraps
numpy.arcsin
Called on the Var object.
- pygeode.arccos(x)¶
Inverse cosine (in radians). Wraps
numpy.arccos
- Var.arccos()¶
Inverse cosine (in radians). Wraps
numpy.arccos
Called on the Var object.
- pygeode.arctan(x)¶
Inverse tangent (in radians). Wraps
numpy.arctan
- Var.arctan()¶
Inverse tangent (in radians). Wraps
numpy.arctan
Called on the Var object.
- pygeode.arctan2(x, y)¶
Inverse tangent. Explicit x/y given. Returns radians. Wraps
numpy.arctan2
- pygeode.arcsind(x)¶
Inverse sine (in degrees).
- Var.arcsind()¶
Inverse sine (in degrees). Called on the Var object.
- pygeode.arccosd(x)¶
Inverse cosine (in degrees).
- Var.arccosd()¶
Inverse cosine (in degrees). Called on the Var object.
- pygeode.arctand(x)¶
Inverse tangent (in degrees).
- Var.arctand()¶
Inverse tangent (in degrees). Called on the Var object.
- pygeode.arctand2(x, y)¶
Inverse tangent. Explicit x/y given. Returns degrees.
- pygeode.arcsinh(x)¶
Inverse hyperbolic sine. Wraps
numpy.arcsinh
- Var.arcsinh()¶
Inverse hyperbolic sine. Wraps
numpy.arcsinh
Called on the Var object.
- pygeode.arccosh(x)¶
Inverse hyperbolic cosine. Wraps
numpy.arccosh
- Var.arccosh()¶
Inverse hyperbolic cosine. Wraps
numpy.arccosh
Called on the Var object.
- pygeode.arctanh(x)¶
Inverse hyperbolic tangent. Wraps
numpy.arctanh
- Var.arctanh()¶
Inverse hyperbolic tangent. Wraps
numpy.arctanh
Called on the Var object.
- pygeode.sqrt(x)¶
Square root. Wraps
numpy.sqrt
- Var.sqrt()¶
Square root. Wraps
numpy.sqrt
Called on the Var object.
- pygeode.absolute(x)¶
Absolute value. Wraps
numpy.absolute
- Var.absolute()¶
Absolute value. Wraps
numpy.absolute
Called on the Var object.
- pygeode.nan_to_num(x)¶
Replace nan with zero and inf with finite numbers. Wraps
numpy.nan_to_num()
- Var.nan_to_num()¶
Replace nan with zero and inf with finite numbers. Wraps
numpy.nan_to_num()
Called on the Var object.
- pygeode.maximum(x, y)¶
Element-wise maximum of the two given arguments. Wraps
numpy.maximum
- pygeode.minimum(x, y)¶
Element-wise minimum of the two given arguments. Wraps
numpy.minimum
- pygeode.real(x)¶
Real part of a complex array. Wraps
numpy.real()
- Var.real()¶
Real part of a complex array. Wraps
numpy.real()
Called on the Var object.
- pygeode.imag(x)¶
Imaginary part of a complex array. Wraps
numpy.imag()
- Var.imag()¶
Imaginary part of a complex array. Wraps
numpy.imag()
Called on the Var object.
- pygeode.angle(x)¶
Angles (arguments) of a complex array. Wraps
numpy.angle()
- Var.angle()¶
Angles (arguments) of a complex array. Wraps
numpy.angle()
Called on the Var object.
- pygeode.conj(x)¶
Complex conjugate of a complex array. Wraps
numpy.conjugate
- Var.conj()¶
Complex conjugate of a complex array. Wraps
numpy.conjugate
Called on the Var object.
- pygeode.clip(*args)¶
Clips values to given interval. Wraps
numpy.clip()
- Var.clip()¶
Clips values to given interval. Wraps
numpy.clip()
Called on the Var object.