Peroxide Guide
1
Prerequisites
2
Quick Start
2.1
Cargo.toml
2.2
Import all at once
3
Vector
3.1
Print
Vec<f64>
3.2
Syntactic sugar for
Vec<f64>
3.3
From ranges to Vector
3.4
Vector Operation
3.5
Concatenation
3.6
Conversion to Matrix
4
Matrix
4.1
Declare matrix
4.1.1
R’s way
4.1.2
MATLAB’s way
4.1.3
Python’s way
4.1.4
Other macro
4.2
Basic Method for Matrix
4.3
Read & Write
4.3.1
CSV (Legacy)
4.3.2
Pickle (Export as python object)
4.4
Concatenation
4.5
Matrix operations
4.6
Extract & modify components
4.7
Conversion to vector
4.8
Useful constructor
5
Linear Algebra
5.1
Transpose
5.2
LU Decomposition
5.3
Determinant
5.4
Inverse matrix
5.5
Moore-Penrose Pseudo Inverse
6
Functional Programming
6.1
FP for Vector
6.1.1
fmap
6.1.2
reduce
6.1.3
zip_with
6.1.4
filter
6.1.5
take & skip
6.2
FP for Matrix
7
Statistics
7.1
Statistics
trait
7.1.1
For
Vec<f64>
7.1.2
For
Matrix
7.2
Simple Random Number Generator
7.3
Probability Distribution
7.3.1
RNG
trait
7.3.2
Bernoulli Distribution
7.3.3
Uniform Distribution
7.3.4
Normal Distribution
7.3.5
Beta Distribution
7.3.6
Gamma Distribution
8
Automatic Differentiation
8.1
Dual number system
8.2
Hyper dual number system
8.3
Real
trait
9
Ordinary Differential Equation
9.1
Introduce
ODE
Trait & Structure
9.1.1
ODE
Trait
9.1.2
State<T>
structure
9.1.3
ExplicitODE
struct
9.2
Example
9.2.1
Lorenz Butterfly
9.2.2
Simple 1D Runge-Kutta
10
Plot
References
Published with bookdown
Peroxide Guide
References