Operator.Scalarval add :
Symbol.Shape.Type.elt ->
Symbol.Shape.Type.elt ->
Symbol.Shape.Type.eltadd a b returns the sum of the scalars a and b.
val sub :
Symbol.Shape.Type.elt ->
Symbol.Shape.Type.elt ->
Symbol.Shape.Type.eltsub a b returns the difference of the scalars a and b.
val mul :
Symbol.Shape.Type.elt ->
Symbol.Shape.Type.elt ->
Symbol.Shape.Type.eltmul a b returns the product of the scalars a and b.
val div :
Symbol.Shape.Type.elt ->
Symbol.Shape.Type.elt ->
Symbol.Shape.Type.eltdiv a b returns the quotient of the scalars a and b.
val pow :
Symbol.Shape.Type.elt ->
Symbol.Shape.Type.elt ->
Symbol.Shape.Type.eltpow 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.eltatan2 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.eltabs a returns the absolute value of the scalar a.
val neg : Symbol.Shape.Type.elt -> Symbol.Shape.Type.eltneg a returns the negation of the scalar a.
val sqr : Symbol.Shape.Type.elt -> Symbol.Shape.Type.eltsqr a returns the square of the scalar a.
val sqrt : Symbol.Shape.Type.elt -> Symbol.Shape.Type.eltsqrt a returns the square root of the scalar a.
val exp : Symbol.Shape.Type.elt -> Symbol.Shape.Type.eltexp a returns the exponential of the scalar a.
val log : Symbol.Shape.Type.elt -> Symbol.Shape.Type.eltlog a returns the natural logarithm of the scalar a.
val log2 : Symbol.Shape.Type.elt -> Symbol.Shape.Type.eltlog2 a returns the base-2 logarithm of the scalar a.
val log10 : Symbol.Shape.Type.elt -> Symbol.Shape.Type.eltlog10 a returns the base-10 logarithm of the scalar a.
val signum : Symbol.Shape.Type.elt -> Symbol.Shape.Type.eltsignum 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.eltfloor a returns the greatest integer less than or equal to the scalar a.
val ceil : Symbol.Shape.Type.elt -> Symbol.Shape.Type.eltceil a returns the smallest integer greater than or equal to the scalar a.
val round : Symbol.Shape.Type.elt -> Symbol.Shape.Type.eltround a returns the nearest integer to the scalar a.
val sin : Symbol.Shape.Type.elt -> Symbol.Shape.Type.eltsin a returns the sine of the scalar a.
val cos : Symbol.Shape.Type.elt -> Symbol.Shape.Type.eltcos a returns the cosine of the scalar a.
val tan : Symbol.Shape.Type.elt -> Symbol.Shape.Type.elttan a returns the tangent of the scalar a.
val sinh : Symbol.Shape.Type.elt -> Symbol.Shape.Type.eltsinh a returns the hyperbolic sine of the scalar a.
val cosh : Symbol.Shape.Type.elt -> Symbol.Shape.Type.eltcosh a returns the hyperbolic cosine of the scalar a.
val tanh : Symbol.Shape.Type.elt -> Symbol.Shape.Type.elttanh a returns the hyperbolic tangent of the scalar a.
val asin : Symbol.Shape.Type.elt -> Symbol.Shape.Type.eltasin a returns the arcsine of the scalar a.
val acos : Symbol.Shape.Type.elt -> Symbol.Shape.Type.eltacos a returns the arccosine of the scalar a.
val atan : Symbol.Shape.Type.elt -> Symbol.Shape.Type.eltatan a returns the arctangent of the scalar a.
val asinh : Symbol.Shape.Type.elt -> Symbol.Shape.Type.eltasinh a returns the inverse hyperbolic sine of the scalar a.
val acosh : Symbol.Shape.Type.elt -> Symbol.Shape.Type.eltacosh a returns the inverse hyperbolic cosine of the scalar a.
val atanh : Symbol.Shape.Type.elt -> Symbol.Shape.Type.eltatanh a returns the inverse hyperbolic tangent of the scalar a.
val relu : Symbol.Shape.Type.elt -> Symbol.Shape.Type.eltrelu 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.eltdawsn a returns Dawson's function of the scalar a.
val sigmoid : Symbol.Shape.Type.elt -> Symbol.Shape.Type.eltsigmoid a returns the sigmoid function of the scalar a.