Operator.Scalar
val add :
Symbol.Shape.Type.elt ->
Symbol.Shape.Type.elt ->
Symbol.Shape.Type.elt
add a b
returns the sum of the scalars a
and b
.
val sub :
Symbol.Shape.Type.elt ->
Symbol.Shape.Type.elt ->
Symbol.Shape.Type.elt
sub a b
returns the difference of the scalars a
and b
.
val mul :
Symbol.Shape.Type.elt ->
Symbol.Shape.Type.elt ->
Symbol.Shape.Type.elt
mul a b
returns the product of the scalars a
and b
.
val div :
Symbol.Shape.Type.elt ->
Symbol.Shape.Type.elt ->
Symbol.Shape.Type.elt
div a b
returns the quotient of the scalars a
and b
.
val pow :
Symbol.Shape.Type.elt ->
Symbol.Shape.Type.elt ->
Symbol.Shape.Type.elt
pow a b
returns the scalar a
raised to the power of b
.
val atan2 :
Symbol.Shape.Type.elt ->
Symbol.Shape.Type.elt ->
Symbol.Shape.Type.elt
atan2 y x
returns the arctangent of y / x
, considering the signs of x
and y
to determine the correct quadrant.
val abs : Symbol.Shape.Type.elt -> Symbol.Shape.Type.elt
abs a
returns the absolute value of the scalar a
.
val neg : Symbol.Shape.Type.elt -> Symbol.Shape.Type.elt
neg a
returns the negation of the scalar a
.
val sqr : Symbol.Shape.Type.elt -> Symbol.Shape.Type.elt
sqr a
returns the square of the scalar a
.
val sqrt : Symbol.Shape.Type.elt -> Symbol.Shape.Type.elt
sqrt a
returns the square root of the scalar a
.
val exp : Symbol.Shape.Type.elt -> Symbol.Shape.Type.elt
exp a
returns the exponential of the scalar a
.
val log : Symbol.Shape.Type.elt -> Symbol.Shape.Type.elt
log a
returns the natural logarithm of the scalar a
.
val log2 : Symbol.Shape.Type.elt -> Symbol.Shape.Type.elt
log2 a
returns the base-2 logarithm of the scalar a
.
val log10 : Symbol.Shape.Type.elt -> Symbol.Shape.Type.elt
log10 a
returns the base-10 logarithm of the scalar a
.
val signum : Symbol.Shape.Type.elt -> Symbol.Shape.Type.elt
signum a
returns the signum function of the scalar a
, which is -1 for negative, 0 for zero, and 1 for positive values.
val floor : Symbol.Shape.Type.elt -> Symbol.Shape.Type.elt
floor a
returns the greatest integer less than or equal to the scalar a
.
val ceil : Symbol.Shape.Type.elt -> Symbol.Shape.Type.elt
ceil a
returns the smallest integer greater than or equal to the scalar a
.
val round : Symbol.Shape.Type.elt -> Symbol.Shape.Type.elt
round a
returns the nearest integer to the scalar a
.
val sin : Symbol.Shape.Type.elt -> Symbol.Shape.Type.elt
sin a
returns the sine of the scalar a
.
val cos : Symbol.Shape.Type.elt -> Symbol.Shape.Type.elt
cos a
returns the cosine of the scalar a
.
val tan : Symbol.Shape.Type.elt -> Symbol.Shape.Type.elt
tan a
returns the tangent of the scalar a
.
val sinh : Symbol.Shape.Type.elt -> Symbol.Shape.Type.elt
sinh a
returns the hyperbolic sine of the scalar a
.
val cosh : Symbol.Shape.Type.elt -> Symbol.Shape.Type.elt
cosh a
returns the hyperbolic cosine of the scalar a
.
val tanh : Symbol.Shape.Type.elt -> Symbol.Shape.Type.elt
tanh a
returns the hyperbolic tangent of the scalar a
.
val asin : Symbol.Shape.Type.elt -> Symbol.Shape.Type.elt
asin a
returns the arcsine of the scalar a
.
val acos : Symbol.Shape.Type.elt -> Symbol.Shape.Type.elt
acos a
returns the arccosine of the scalar a
.
val atan : Symbol.Shape.Type.elt -> Symbol.Shape.Type.elt
atan a
returns the arctangent of the scalar a
.
val asinh : Symbol.Shape.Type.elt -> Symbol.Shape.Type.elt
asinh a
returns the inverse hyperbolic sine of the scalar a
.
val acosh : Symbol.Shape.Type.elt -> Symbol.Shape.Type.elt
acosh a
returns the inverse hyperbolic cosine of the scalar a
.
val atanh : Symbol.Shape.Type.elt -> Symbol.Shape.Type.elt
atanh a
returns the inverse hyperbolic tangent of the scalar a
.
val relu : Symbol.Shape.Type.elt -> Symbol.Shape.Type.elt
relu a
applies the Rectified Linear Unit (ReLU) function to the scalar a
, returning max(0, a)
.
val dawsn : Symbol.Shape.Type.elt -> Symbol.Shape.Type.elt
dawsn a
returns Dawson's function of the scalar a
.
val sigmoid : Symbol.Shape.Type.elt -> Symbol.Shape.Type.elt
sigmoid a
returns the sigmoid function of the scalar a
.