Mathematical Operations
Functions for performing fundamental arithmetic and mathematical operations on arrays.
af.abs() - Calculate the absolute value. |
af.acos() - Evaluate the inverse cosine function (arc cosine). |
af.acosh() - Evaluate the inverse hyperbolic cosine function (area hyperbolic cosine). |
af.add() - Elementwise addition. |
af.arg() - Calculate the phase angle (in radians) of a complex array. |
af.asin() - Evaluate the inverse sine function (arc sine). |
af.asinh() - Evaluate the inverse hyperbolic sine function (area hyperbolic sine). |
af.atan() - Evaluate the inverse tangent function (arc tangent). |
af.atan2() - Evaluate the inverse tangent function (arc tangent). |
af.atanh() - Evaluate the inverse hyperbolic tangent function (area hyperbolic tangent). |
af.bitand() - Evaluate the bitwise AND of two arrays. |
af.bitnot() - Evaluate the bitwise NOT of an array. |
af.bitor() - Evaluate the bitwise OR of two arrays. |
af.bitshiftl() - Shift the bits of integer arrays left. |
af.bitshiftr() - Shift the bits of integer arrays right. |
af.bitxor() - Evaluate the bitwise XOR of two arrays. |
af.cbrt() - Evaluate the cube root. |
af.ceil() - Rounds up to the least integer greater than or equal to x. |
af.clamp() - Clamp an array between an upper and a lower limit. |
af.conjg() - Evaluate the complex conjugate of an input array. |
af.cos() - Evaluate the cosine function. |
af.cosh() - Evaluate the hyperbolic cosine function. |
af.div() - Elementwise division. |
af.dot() - Compute the dot product. |
af.eq() - Equal to, an elementwise comparison of two arrays. |
af.erf() - Evaluate the error function. |
af.erfc() - Evaluate the complementary error function. |
af.exp() - Evaluate the exponential function. |
af.expm1() - Evaluate the exponential function of an array minus 1, exp(in) - 1. |
af.factorial() - Evaluate the factorial. |
af.floor() - Rounds down to the greatest integer less than or equal to x. |
af.ge() - Greater than or equal to, an elementwise comparison of two arrays. |
af.gradient() - Calculate the gradients of the input |
af.gray2rgb() - Grayscale to RGB colorspace converter. |
af.gt() - Greater than comparison, an elementwise comparison of two arrays. |
af.hypot() - Evaluate the length of the hypotenuse of two inputs. |
af.imag() - Returns the imaginary part of a complex array. |
af.imax() - Finds the maximum value. |
af.imin() - Finds the minimum value. |
af.le() - Less than or equal to, an elementwise comparison of two arrays. |
af.lgamma() - Evaluate the logarithm of the absolute value of the gamma function. |
af.log() - Evaluate the natural logarithm. |
af.log10() - Evaluate the base 10 logarithm. |
af.log1p() - Evaluate the natural logarithm of 1 + input, ln(1+in). |
af.log2() - Evaluate the base 2 logarithm. |
af.logical_and() - Evaluate the logical and between two arrays |
af.logical_not() - Evaluate the logical not of an array |
af.logical_or() - Evaluate the logical or between two arrays |
af.lt() - Less than, an elementwise comparison of two arrays. |
af.maxof() - Elementwise maximum between two arrays |
af.minof() - Elementwise minimum between two arrays |
af.mod() - Calculate the modulus. |
af.mul() - Elementwise multiply. |
af.neg() - Negate an array. |
af.neq() - Not equal to, an elementwise comparison of two arrays. |
af.pow() - Raise a base to a power (or exponent). |
af.pow2() - Raise 2 to a power (or exponent). |
af.real() - Returns the real part of a complex array. |
af.rem() - Calculate the remainder of a division. |
af.root() - Evaluate the nth root. |
af.round() - Round numbers to the nearest integer. |
af.rsqrt() - Evaluate the reciprocal square root. |
af.sign() - Return the sign of elements in an array. |
af.sin() - Evaluate the sine function. |
af.sinh() - Evaluate the hyperbolic sine function. |
af.sqrt() - Evaluate the square root. |
af.sub() - Elementwise subtraction. |
af.tan() - Evaluate the tangent function. |
af.tanh() - Evaluate the hyperbolic tangent function. |
af.tgamma() - Evaluate the gamma function. |