1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
//! `peroxide` is comprehensive numerical library for Rust.
//!
//! ## Components
//!
//! `peroxide` has various components for scientific computation.
//!
//! * Linear Algebra (with BLAS & LAPACK)
//!     * [Matrix](structure/matrix/index.html) operations
//!         * `+,-,*,/`
//!         * LU, Determinant, Inverse
//!     * [Vector](structure/vector/index.html) operations
//! * Statistics
//!     * [Statistical operations](statistics/stat/index.html)
//!         * `mean, var, sd`
//!         * `factorial, P, C, H`
//!     * [Distributions](statistics/dist/index.html)
//!         * Bernoulli
//!         * Uniform
//!         * Normal
//!         * Gamma
//!         * Beta
//! * [Special functions](special/function/index.html) (Using `special` crate)
//!     * Gaussian
//!     * Gamma
//!     * Beta
//!     * Error
//! * Automatic Differentiation
//!     * [Dual number system](structure/dual/index.html)
//!     * [Hyper dual number system](structure/hyper_dual/index.html)
//! * Numerical Utils
//!     * [Interpolation](numerical/interp/index.html)
//!     * [Spline](numerical/spline/index.html)
//!     * [Polynomial](structure/polynomial/index.html)
//!     * [Gauss-Legendre Quadrature](special/legendre/fn.gauss_legendre_quadrature.html)
//! * [Optimization](numerical/optimize/index.html)
//!     * Gradient Descent
//!     * Levenberg-Marquardt
//! * [Differential Equations](numerical/ode/index.html)
//!     * Explicit
//!         * Runge-Kutta 4th order
//!         * Euler methods
//!     * Implicit
//!         * Backward Euler
//!         * Gauss-Legendre 4th order
//! * Communication with Python
//!     * [Plot with `matplotlib`](util/plot/index.html)
//! * [DataFrame](structure/dataframe/index.html)
//!     * Read & Write with `netcdf` or `csv` format
//! * Macros
//!     * [R macros](macros/r_macro/index.html)
//!     * [Matlab macros](macros/matlab_macro/index.html)
//!     * [Julia macros](macros/julia_macro/index.html)
//!
//! ## Quick Start
//!
//! ### Cargo.toml
//!
//! * To use `peroxide`, you should edit `Cargo.toml`
//! * Current document version is corresponding to `0.20.1`
//!
//! 1. Default
//!     ```toml
//!     [dependencies]
//!     peroxide = "0.20"
//!     ```
//! 2. OpenBLAS & SIMD
//!     ```toml
//!     [dependencies.peroxide]
//!     version = "0.20"
//!     default-features = false
//!     features = ["O3"]
//!     ```
//! 3. Plot
//!     ```toml
//!     [dependencies.peroxide]
//!     version = "0.20"
//!     default-features = false
//!     features = ["plot"]
//!     ```
//! 4. DataFrame
//!     ```toml
//!     [dependencies.peroxide]
//!     version = "0.20"
//!     default-features = false
//!     features = ["dataframe"]
//!     ```
//! 5. Together
//!     ```toml
//!     [dependencies.peroxide]
//!     version = "0.20"
//!     default-features = false
//!     features = ["O3", "plot", "dataframe"]
//!     ```
//!
//! ## Import all at once
//!
//! * You can import all functions & structures at once
//!
//!     ```rust
//!     extern crate peroxide;
//!     use peroxide::*;
//!
//!     fn main() {
//!         //Some codes...
//!     }
//!     ```

#[cfg(feature = "O3")]
extern crate blas;

#[cfg(feature = "O3")]
extern crate lapack;

#[cfg(feature = "plot")]
extern crate pyo3;

#[cfg(feature = "simd")]
extern crate packed_simd;

#[cfg(feature = "serde")]
extern crate serde;

extern crate rand;

#[cfg(feature = "dataframe")]
extern crate indexmap;

#[cfg(feature = "dataframe")]
extern crate netcdf;

#[cfg(feature = "dataframe")]
extern crate json;

extern crate order_stat;

pub mod statistics;
pub mod structure;
#[macro_use]
pub mod macros;
pub mod ml;
pub mod numerical;
pub mod operation;
pub mod redox;
#[cfg(feature = "specials")]
pub mod special;
pub mod util;

#[allow(unused_imports)]
pub use macros::{julia_macro::*, matlab_macro::*, r_macro::*};

#[allow(unused_imports)]
pub use structure::matrix::*;

#[allow(unused_imports)]
pub use structure::vector::*;

#[allow(unused_imports)]
pub use statistics::stat::*;

#[allow(unused_imports)]
pub use macros::r_macro::*;

#[allow(unused_imports)]
pub use macros::matlab_macro::*;

#[allow(unused_imports)]
pub use macros::julia_macro::*;

#[allow(unused_imports)]
pub use statistics::rand::*;

#[allow(unused_imports)]
pub use util::print::*;

#[allow(unused_imports)]
pub use util::non_macro::*;

#[allow(unused_imports)]
pub use structure::polynomial::*;

#[allow(unused_imports)]
pub use numerical::interp::*;

#[allow(unused_imports)]
pub use numerical::spline::*;

#[allow(unused_imports)]
pub use ml::reg::*;

#[allow(unused_imports)]
pub use structure::dual::*;

#[allow(unused_imports)]
pub use operation::extra_ops::*;

#[allow(unused_imports)]
pub use util::useful::*;

#[allow(unused_imports)]
pub use structure::multinomial::*;

#[allow(unused_imports)]
pub use numerical::utils::*;

//#[allow(unused_imports)]
//pub use numerical::newton::*;

//#[allow(unused_imports)]
//pub use numerical::bdf::*;

#[allow(unused_imports)]
pub use util::api::*;

//#[allow(unused_imports)]
//pub use numerical::gauss_legendre::*;

#[allow(unused_imports)]
pub use statistics::dist::*;

#[allow(unused_imports)]
#[cfg(feature = "specials")]
pub use special::function::*;

#[allow(unused_imports)]
pub use statistics::ops::*;

#[allow(unused_imports)]
pub use structure::hyper_dual::*;

#[allow(unused_imports)]
pub use util::writer::*;

#[allow(unused_imports)]
pub use operation::mut_ops::*;

#[allow(unused_imports)]
pub use numerical::ode::*;

#[allow(unused_imports)]
pub use operation::number::*;

#[allow(unused_imports)]
#[cfg(feature = "plot")]
pub use util::plot::*;

#[allow(unused_imports)]
pub use numerical::optimize::*;

#[allow(unused_imports)]
#[cfg(feature = "specials")]
pub use special::legendre::*;

#[allow(unused_imports)]
pub use redox::redoxable::*;

#[allow(unused_imports)]
pub use util::low_level::*;

#[allow(unused_imports)]
#[cfg(feature = "dataframe")]
pub use structure::dataframe::*;