On this page:
+  -0-0
--0-0
*-0-0
/  -0-0
expt-0-0
exp-0
log-0
sqrt-0
abs-0
rectify-0
sum-1
argmax-1
max-1
8.12

9 Base-rank (non-extended) differentiable functions🔗ℹ

The following functions are non-extended functions defined on tensors of the specified base-rank. No extended function rules apply to these functions. They can be arguments to ext1 (if unary) or ext2 (if binary). These functions are differentiable.

procedure

(+-0-0 a b)  scalar?

  a : scalar?
  b : scalar?
Returns the differentiable addition of a and b.

procedure

(--0-0 a b)  scalar?

  a : scalar?
  b : scalar?
Returns the differentiable difference between a and b.

procedure

(*-0-0 a b)  scalar?

  a : scalar?
  b : scalar?
Returns the differentiable product of a and b.

procedure

(/-0-0 a b)  scalar?

  a : scalar?
  b : scalar?
Returns the differentiable division of a and b.

procedure

(expt-0-0 a b)  scalar?

  a : scalar?
  b : scalar?
Returns the exponentiation of a to the power b.

procedure

(exp-0 a)  scalar?

  a : scalar?
Returns the exponentiation of e to the power a.

procedure

(log-0 a)  scalar?

  a : scalar?
Returns the natural (to the base e) logarithm a.

procedure

(sqrt-0 a)  scalar?

  a : scalar?
Returns the non-negative square root of a.

procedure

(abs-0 a)  scalar?

  a : scalar?
Returns absolute value of a.

procedure

(rectify-0 a)  scalar?

  a : scalar?
Returns 0.0 if a is less than 0, or a otherwise.

procedure

(sum-1 a)  scalar?

  a : tensor?
Here a must be a tensor of rank 1. Returns the sum of all the scalars in a.

procedure

(argmax-1 a)  scalar?

  a : tensor?
Here a must be a tensor of rank 1. Returns the index of the highest scalar in a.

procedure

(max-1 a)  scalar?

  a : tensor?
Here a must be a tensor of rank 1. Returns the highest scalar in a.