Skip to content

Commit 382a32c

Browse files
authored
Merge pull request #108 from Axect/features/joss-99-contributing
Replace CONTRIBUTING.md source layout table with docs.rs pointer (JOSS #99)
2 parents 23e5930 + ee6030d commit 382a32c

9 files changed

Lines changed: 14 additions & 23 deletions

File tree

CONTRIBUTING.md

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -41,21 +41,8 @@ Peroxide follows the [Gitflow workflow]. A few practical rules:
4141

4242
## Source layout
4343

44-
A high-level map of `src/`; see each module's `mod.rs` and the [API docs](https://docs.rs/peroxide) for details.
45-
46-
| Module | Purpose |
47-
| ------------------ | ------------------------------------------------------------------ |
48-
| [`structure`](src/structure) | Core data structures: `Matrix`, `Vec<f64>` extensions, `DataFrame`, `Polynomial`, `Jet<N>` forward AD |
49-
| [`numerical`](src/numerical) | Numerical algorithms: ODE solvers, integration, interpolation, splines, root finding, optimization, eigenvalues |
50-
| [`statistics`](src/statistics) | Probability distributions, RNG wrappers, ordered statistics |
51-
| [`complex`](src/complex) | Complex vectors, matrices, and integrals (`complex` feature) |
52-
| [`special`](src/special) | Special functions (wrapper of `puruspe`) |
53-
| [`traits`](src/traits) | Shared trait definitions (math, functional programming, pointers) |
54-
| [`macros`](src/macros) | R / MATLAB / Julia style macros |
55-
| [`fuga`](src/fuga), [`prelude`](src/prelude) | The two user-facing import styles (explicit vs simple) |
56-
| [`util`](src/util) | Constructors, printing, plotting, low-level helpers |
57-
| [`ml`](src/ml) | Basic machine learning tools (beta) |
58-
| [`grave`](src/grave) | Retired implementations kept for reference; not compiled |
44+
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`.
45+
The only exception is `src/grave/`, which holds retired implementations kept for reference and is excluded from compilation.
5946

6047
## Code of conduct
6148

src/complex/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//! Complex vectors, matrices, and integrals, enabled by the `complex` feature
2+
13
use num_complex::Complex;
24

35
pub type C64 = Complex<f64>;

src/macros/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//! Useful macros
1+
//! R / MATLAB / Julia style macros
22
33
pub mod julia_macro;
44
pub mod matlab_macro;

src/ml/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
//! Machine learning tools
1+
//! Basic machine learning tools (beta)
22
33
pub mod reg;

src/numerical/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//! Differential equations & Numerical Analysis tools
1+
//! Numerical algorithms: ODE solvers, quadrature, interpolation, splines, root finding, optimization, and eigenvalue computation
22
33
pub mod eigen;
44
pub mod integral;

src/statistics/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//! Statistical Modules
1+
//! Probability distributions, random sampling, and statistical operations
22
//!
33
//! * Basic statistical tools - `stat.rs`
44
//! * Popular distributions - `dist.rs` (`rand` feature)

src/structure/mod.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
//! Main structures for peroxide
1+
//! Core data structures: `Matrix`, `Vec<f64>` extensions, `DataFrame`, `Polynomial`, and const-generic forward-mode AD (`Jet<N>`)
22
//!
3-
//! * Matrix
3+
//! * Matrix (dense & sparse)
44
//! * Vector
5-
//! * Automatic derivatives
5+
//! * Automatic differentiation (`Jet<N>`)
66
//! * Polynomial
77
//! * DataFrame
88
//! * Multinomial (not yet implemented)

src/traits/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//! Shared trait definitions: mathematics, functional programming, mutability, pointers, and numeric abstractions
2+
13
pub mod float;
24
pub mod fp;
35
pub mod general;

src/util/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//! Utility - plot, print, pickle and etc.
1+
//! Utilities: constructors, printing, plotting, and low-level helpers
22
33
pub mod api;
44
pub mod non_macro;

0 commit comments

Comments
 (0)