Cargo Features
[dependencies]
rstsr-core = { version = "0.2.7", default-features = false, features = ["std", "rayon", "faer", "faer_as_default", "row_major", "col_major", "dispatch_dim_layout_iter"] }
- default = faer, faer_as_default, row_major
-
These default features are set whenever
rstsr-core
is added without
somewhere in the dependency tree.default-features = false - std
-
Enables std of rstsr-common
- rayon faer
-
Enables rayon, rayon of rstsr-common
Affects
rstsr-core::feature_rayon
… - faer default = rayon
-
Enables faer ^0.19, faer-entity ^0.19, and faer-ext ^0.3
Affects
rstsr-core::device_faer
… - faer_as_default default
-
Affects
rstsr-core::DeviceCpu
… - row_major default
-
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)Enables row_major of rstsr-common
- col_major
-
Enables col_major of rstsr-common
- 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.Enables dispatch_dim_layout_iter of rstsr-common