pymel.util.arrays¶
A generic n-dimensionnal Array class serving as base for arbitrary length VectorN and MatrixN classes
Functions
abs | Return the absolute value of the argument. |
acos | Return the arc cosine (measured in radians) of x. |
acosh | Return the hyperbolic arc cosine (measured in radians) of x. |
all | all(a, [,axis=(axis0, axis1, ...)]) –> bool or Array of booleans |
angle | angle(u, v) –> float |
any | any(a [,axis=(axis0, axis1, ...)]) –> bool or Array of booleans |
asin | Return the arc sine (measured in radians) of x. |
asinh | Return the hyperbolic arc sine (measured in radians) of x. |
atan | Return the arc tangent (measured in radians) of x. |
atan2 | Return the arc tangent (measured in radians) of y/x. |
atanh | Return the hyperbolic arc tangent (measured in radians) of x. |
axis | axis(u, v[, normalize=False]) –> VectorN |
blend | blend(a, b[, weight=0.5]) : |
ceil | Return the ceiling of x as a float. |
clamp | Clamps the value x between min and max |
clsname | |
conjugate | the conjugate part of x |
copysign | Return x with the sign of y. |
cos | Return the cosine of x (measured in radians). |
cosh | Return the hyperbolic cosine of x. |
cotan | cotan(u, v) –> float : |
cross | cross(u, v) –> VectorN |
degrees | Convert angle x from radians to degrees. |
det | det(m) –> float |
dist | dist(a, b[, axis=(axis0, axis1, ...)]) –> float or Array |
dot | dot(u, v) –> float |
erf | Error function at x. |
erfc | Complementary error function at x. |
exp | Return e raised to the power of x. |
expm1 | Return exp(x)-1. |
fabs | Return the absolute value of the float x. |
factorial | Find x!. |
floor | Return the floor of x as a float. |
fmod | Return fmod(x, y), according to platform C. |
frexp | Return the mantissa and exponent of x, as pair (m, e). |
fsum | Return an accurate floating point sum of values in the iterable. |
gamma | Gamma color correction of c with a single scalar gamma value g |
hermite | As the MEL command : This command returns x point along on x hermite curve from the five given control arguments. |
hermiteInterp | Hermite interpolation of x between points y0 and y1 of tangent slope s0 and s1 |
hypot | Return the Euclidean distance, sqrt(x*x + y*y). |
imag | the imaginary part of x |
inv | inv(m) –> MatrixN |
isNumeric | Returns True if an object is a number type, otherwise returns False. |
isinf | Check if float x is infinite (positive or negative). |
isnan | Check if float x is not a number (NaN). |
ldexp | Return x * (2**i). |
length | length(a[, axis=(axis0, axis1, ...)]) –> numeric or Array |
lgamma | Natural logarithm of absolute value of Gamma function at x. |
linmap | Returns the value of a linear remapping function. |
linstep | Returns the value of a linear step function. |
log | Return the logarithm of x to the given base. |
log10 | Return the base 10 logarithm of x. |
log1p | Return the natural logarithm of 1+x (base e). |
max | max(iterable[, key=func[, axis=(axis0, axis1, ...)]]) –> value |
min | min(iterable[, key=func[, axis=(axis0, axis1, ...)]]) –> value |
modf | Return the fractional and integer parts of x. |
normal | normal(a[, axis=(axis0, axis1, ...)]) –> Array |
outer | outer(u, v) –> MatrixN |
patchMath | Overload various math functions to work element-wise on iterables |
pow | Return x**y (x to the power of y). |
prod | prod(a[, start=1[, axis=(axis0, axis1, ...)]]) –> numeric or Array |
radians | Convert angle x from degrees to radians. |
readonly | Marks a class member as protected, allowing metaProtected to prevent re-assignation on the classes it generates |
real | the real part of x |
round | round(number[, ndigits]) -> float |
setRange | Resets x range from x linear interpolation of oldmin to oldmax to x linear interpolation from newmin to newmax |
sin | Return the sine of x (measured in radians). |
sinh | Return the hyperbolic sine of x. |
smoothmap | Returns the value of a smooth remapping function. |
smoothstep | Returns the value of a smooth step function. |
sqlength | sqlength(a[, axis=(axis0, axis1, ...)]) –> numeric or Array |
sqrt | Return the square root of x. |
sum | sum(a[, start=0[, axis=(axis0, axis1, ...)]]) –> numeric or Array |
tan | Return the tangent of x (measured in radians). |
tanh | Return the hyperbolic tangent of x. |
trunc | Truncates x to the nearest Integral toward 0. |
Classes
Array | A generic n-dimensional array class using nested lists for storage. |
ArrayIter | A general purpose iterator on Arrays. |
MatrixN | A generic size MatrixN class, basically a 2 dimensional Array. |
VectorN | A generic size VectorN class derived from Array, basically a 1 dimensional Array. |
metaReadOnlyAttr | A metaclass to allow to define read-only class attributes, accessible either on the class or it’s instances and protected against re-write or re-definition. |