Module scalar

Module scalar 

Source
Expand description

§Universal Scalar Function Module - High-Performance Element-Wise Mathematical Operations

Full suite of vectorised mathematical functions that operate element-wise on arrays of floating-point values. It serves as the computational backbone for mathematical operations across the simd-kernels crate, for both scalar and SIMD-accelerated implementations with opt-in Arrow-compatible null masking.

These are the semantic equivalent of numpy ufuncs in Python.

§Overview

Universal scalar functions are fundamental building blocks for:

  • Data Preprocessing: Normalisations, transformations, and scaling operations
  • Scientific Computing: Mathematical transformations and special function evaluation
  • Machine Learning: Activation functions, feature engineering, and data preparation
  • Signal Processing: Filtering, transforms, and spectral analysis
  • Statistics: Data transformations and statistical preprocessing
  • Financial Mathematics: Risk calculations and price transformations

Functions§

abs
acos
acosh
asin
asinh
atan
atanh
cbrt
ceil
cos
cosh
erf
erfc
exp
exp2
floor
gelu
ln
log2
log10
neg
recip
relu
round
sigmoid
sign
sin
sinh
softplus
sqrt
tan
tanh
trunc