| Crates.io | physics_in_parallel |
| lib.rs | physics_in_parallel |
| version | 1.0.8 |
| created_at | 2025-09-16 01:51:32.131751+00 |
| updated_at | 2025-11-06 00:08:26.00978+00 |
| description | High-performance infrastructure for numerical simulations in physics |
| homepage | https://github.com/dingyisun0101/Physics-in-Parallel |
| repository | https://github.com/dingyisun0101/Physics-in-Parallel |
| max_upload_size | |
| id | 1840798 |
| size | 159,789 |
Physics in Parallel is a scientific computing package in Rust for massive, memory-bound simulations where full vectorization isn’t feasible. It targets workloads that exceed cache and RAM budgets, need irregular access patterns, or are best served by a hybrid SoA/AoS approach with block-wise/streaming execution.
Unified Scalar Abstraction
A single Scalar trait unifies integers, floats, and complex types with a consistent API (conjugation, norms, sqrt, finiteness).
Tensor Infrastructure (Hybrid-layout Friendly)
+, -, *, /) via Rayon.2D Tensor Infrastructure (Matrix + VectorList)
A wrapper for Matrix.
Each col represents a vector.
Allow bulk operations on vectors (normalization, ...)
Random Tensor Generation
Efficient, chunked generators for random vectors (uniform, Gaussian, etc.), supporting streamed/partial fills for Monte Carlo and stochastic dynamics on large states.
Space Provide abstraction for space representations.
Parallelism by Default (Under Memory Constraints)
Some physics tasks (e.g., lattice kernels with long tails, neighbor lists, event-driven updates, or out-of-core grids) don’t map cleanly to a single layout or to global vectorization. Physics in Parallel embraces: