Unary Operations
Unary operations take a single array as input, perform element-wise unary operations, and return a new array. Most unary operations work on real valued as well as complex valued arrays.
abs
def abs(arg0: Array) -> Array
Computes the absolute value of the input array element-wise.
acos
def acos(arg0: Array) -> Array
Computes the inverse cosine of the input array element-wise.
asin
def asin(arg0: Array) -> Array
Computes the inverse sine of the input array element-wise.
atan
def atan(arg0: Array) -> Array
Computes the inverse tangent of the input array element-wise.
cos
def cos(arg0: Array) -> Array
Computes the cosine of the input array element-wise.
cosh
def cosh(arg0: Array) -> Array
Computes the hyperbolic cosine of the input array element-wise.
exp
def exp(arg0: Array) -> Array
Computes the exponential of the input array element-wise.
log
def log(arg0: Array) -> Array
Computes the natural logarithm of the input array element-wise.
neg
def neg(arg0: Array) -> Array
Computes the negation of the input array element-wise.
reciprocal
def reciprocal(arg0: Array) -> Array
Computes the reciprocal of the input array element-wise.
relu
def relu(arg0: Array) -> Array
Computes the Rectified Linear Unit of the input array element-wise.
sigmoid
def sigmoid(arg0: Array) -> Array
Computes the sigmoid function of the input array element-wise.
sign
def sign(arg0: Array) -> Array
Computes the sign of the input array element-wise.
sin
def sin(arg0: Array) -> Array
Computes the sine of the input array element-wise.
sinh
def sinh(arg0: Array) -> Array
Computes the hyperbolic sine of the input array element-wise.
sqrt
def sqrt(arg0: Array) -> Array
Computes the square root of the input array element-wise.
square
def square(arg0: Array) -> Array
Computes the square of the input array element-wise.
tan
def tan(arg0: Array) -> Array
Computes the tangent of the input array element-wise.
tanh
def tanh(arg0: Array) -> Array