Program for calculation of partial differential equations implemented in Rust
To build the crate correctly currently some features have to be activated.
- Decide which indexing implementation is used for PartdiffMatrix
- feature:
2d-array-indexing
has a syntax ofmatrix[[x,y]]
and should provide better performance - feature:
C-style-indexing
has a syntax ofmatrix[x][y]
and has probably worse performance due to the internals of the implementation
- feature:
- Decide whether bounds checking should be used for matrix access
- feature:
unsafe-indexing
uses the unsafeget_unchecked
methods of Vec and does no bounds checking but therefore performs better - not building with
unsafe-indexing
defaults to using access methods of Vec that apply bounds checking
- feature:
The current default way to build the crate for performance should be: cargo build --release --features "2d-array-indexing,unsafe-indexing"