Skip to main content

Crate stormath

Crate stormath 

Source
Expand description

Collection of common mathematical utility functions.

The library is developed in parallel to, and for, the Stormbird library. The functions available is closely connected to what is needed here. However, the implementation of the functionality in this crate is such that it may also be useful in other contexts. It is therefore kept as a separate crate.

Modulesยง

array_generation
Helper functions to generate arrays of numbers.
consts
Different constant. Defined so that it should be easy load these with the Float type alias
error
General error types in the library.
finite_difference
Functions to perform finite difference calculations
integration
Numerical integration functions
interpolation
Interpolation functions
matrix
A matrix structure that comes with the standard operations for matrices
optimize
Optimization algorithms
rigid_body_motion
General functionality to represent rigid body motion. That is, a data structure and methods for storing and relating translation and rotation.
smoothing
Smoothing functions for 1D data.
solvers
Numerical solvers, such as root-finding algorithms.
sparse_matrix
A structure for a simple sparse matrix - i.e., a matrix where most of the entries in one row is zero - along with functionality for this type of matrices.
spatial_vector
Functionality related to vectors representing spatial quantities, e.g., position, velocity and acceleration.
statistics
Functions that compute statistical properties of vectors
transition_functions
Functions that performs some smooth transition between values, typically zero to one.
type_aliases
Type aliases to easy switch between different floating point number representations