Cargo Features

rstsr-common has no features set by default.

[dependencies]
rstsr-common = { version = "0.2.7", features = ["std", "rayon", "row_major", "col_major", "dispatch_dim_layout_iter"] }
std
rayon

Enables rayon

Affects rstsr-common::par_iter

row_major

Row-major or Col-major will be contractidary features.
Only one is accepted, otherwise this will panic in runtime.
- Row-major convention: similar to NumPy (with same behavior of versatile broadcasting)
- Col-major convention: similar to Julia (limited broadcasting)

col_major
dispatch_dim_layout_iter

Dispatch dimensinoality in layout iterators
This option is recommended for efficiency for large tensor, especially with non-contiguous strides.
However, this feature will add runtime overhead for small tensor.
And more importantly, this feature will hugely increase compile time.