Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 2 additions & 15 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,21 +41,8 @@ Peroxide follows the [Gitflow workflow]. A few practical rules:

## Source layout

A high-level map of `src/`; see each module's `mod.rs` and the [API docs](https://docs.rs/peroxide) for details.

| Module | Purpose |
| ------------------ | ------------------------------------------------------------------ |
| [`structure`](src/structure) | Core data structures: `Matrix`, `Vec<f64>` extensions, `DataFrame`, `Polynomial`, `Jet<N>` forward AD |
| [`numerical`](src/numerical) | Numerical algorithms: ODE solvers, integration, interpolation, splines, root finding, optimization, eigenvalues |
| [`statistics`](src/statistics) | Probability distributions, RNG wrappers, ordered statistics |
| [`complex`](src/complex) | Complex vectors, matrices, and integrals (`complex` feature) |
| [`special`](src/special) | Special functions (wrapper of `puruspe`) |
| [`traits`](src/traits) | Shared trait definitions (math, functional programming, pointers) |
| [`macros`](src/macros) | R / MATLAB / Julia style macros |
| [`fuga`](src/fuga), [`prelude`](src/prelude) | The two user-facing import styles (explicit vs simple) |
| [`util`](src/util) | Constructors, printing, plotting, low-level helpers |
| [`ml`](src/ml) | Basic machine learning tools (beta) |
| [`grave`](src/grave) | Retired implementations kept for reference; not compiled |
The directories under `src/` map one-to-one to the public modules, so the module index in the [API docs](https://docs.rs/peroxide) doubles as the source map; start from a module's documentation and its `mod.rs`.
The only exception is `src/grave/`, which holds retired implementations kept for reference and is excluded from compilation.

## Code of conduct

Expand Down
2 changes: 2 additions & 0 deletions src/complex/mod.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
//! Complex vectors, matrices, and integrals, enabled by the `complex` feature

use num_complex::Complex;

pub type C64 = Complex<f64>;
Expand Down
2 changes: 1 addition & 1 deletion src/macros/mod.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//! Useful macros
//! R / MATLAB / Julia style macros

pub mod julia_macro;
pub mod matlab_macro;
Expand Down
2 changes: 1 addition & 1 deletion src/ml/mod.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
//! Machine learning tools
//! Basic machine learning tools (beta)

pub mod reg;
2 changes: 1 addition & 1 deletion src/numerical/mod.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//! Differential equations & Numerical Analysis tools
//! Numerical algorithms: ODE solvers, quadrature, interpolation, splines, root finding, optimization, and eigenvalue computation

pub mod eigen;
pub mod integral;
Expand Down
2 changes: 1 addition & 1 deletion src/statistics/mod.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//! Statistical Modules
//! Probability distributions, random sampling, and statistical operations
//!
//! * Basic statistical tools - `stat.rs`
//! * Popular distributions - `dist.rs` (`rand` feature)
Expand Down
6 changes: 3 additions & 3 deletions src/structure/mod.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
//! Main structures for peroxide
//! Core data structures: `Matrix`, `Vec<f64>` extensions, `DataFrame`, `Polynomial`, and const-generic forward-mode AD (`Jet<N>`)
//!
//! * Matrix
//! * Matrix (dense & sparse)
//! * Vector
//! * Automatic derivatives
//! * Automatic differentiation (`Jet<N>`)
//! * Polynomial
//! * DataFrame
//! * Multinomial (not yet implemented)
Expand Down
2 changes: 2 additions & 0 deletions src/traits/mod.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
//! Shared trait definitions: mathematics, functional programming, mutability, pointers, and numeric abstractions

pub mod float;
pub mod fp;
pub mod general;
Expand Down
2 changes: 1 addition & 1 deletion src/util/mod.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//! Utility - plot, print, pickle and etc.
//! Utilities: constructors, printing, plotting, and low-level helpers

pub mod api;
pub mod non_macro;
Expand Down
Loading