Expand description
Common imports for ergonomic usage.
This prelude re-exports the primary types and constants: Matrix,
Vector, Lu, Ldlt, Tolerance, LaError,
UnrepresentableReason, DEFAULT_SINGULAR_TOL, and the determinant
error bound coefficients ERR_COEFF_2, ERR_COEFF_3, and
ERR_COEFF_4. It also re-exports MAX_STACK_MATRIX_DISPATCH_DIM and
try_with_stack_matrix! for runtime-to-const matrix dispatch.
When the exact feature is enabled, BigInt and BigRational are also
re-exported so callers can construct exact values (e.g. as the expected
result of Matrix::det_exact) without adding num-bigint / num-rational
to their own dependencies. The most commonly needed num-traits items are
re-exported alongside them: FromPrimitive for BigRational::from_f64 /
from_i64, ToPrimitive for BigRational::to_f64 / to_i64, and Signed
for .is_positive() / .is_negative() / .abs().
Re-exports§
pub use crate::DEFAULT_SINGULAR_TOL;pub use crate::ERR_COEFF_2;pub use crate::ERR_COEFF_3;pub use crate::ERR_COEFF_4;pub use crate::LaError;pub use crate::Ldlt;pub use crate::Lu;pub use crate::MAX_STACK_MATRIX_DISPATCH_DIM;pub use crate::Matrix;pub use crate::Tolerance;pub use crate::UnrepresentableReason;pub use crate::Vector;
Macros§
- try_
with_ stack_ matrix - Fallibly dispatch a runtime dimension to a concrete stack-allocated matrix.
Structs§
- BigInt
- A big signed integer type.
Traits§
- From
Primitive - A generic trait for converting a number to a value.
- Signed
- Useful functions for signed numbers (i.e. numbers that can be negative).
- ToPrimitive
- A generic trait for converting a value to a number.
Type Aliases§
- BigRational
- Alias for arbitrary precision rationals.