Module slice_ops
Source - add
- Performs element-wise addition and places the result into
lhs
- dot
- Calculates the standard dot product of the two sequences.
- mag
- Calculates the magnitude of the given sequence, same as sqrt(
mag2(seq)
) - mag2
- Calculates the squared magnitude of the given sequence, i.e.
seq[0] * seq[0] + seq[1] * seq[1] + ...
- mul
- Performs element-wise multiplication and places the result into
lhs
- scale
- Multiplies the given sequence element-wise with the given constant factor
- sub
- Performs element-wise substraction and places the result into
lhs