Expand description
Common imports for ergonomic usage.
This prelude re-exports the primary types and constants: Matrix, Vector, Lu,
Ldlt, LaError, DEFAULT_PIVOT_TOL, DEFAULT_SINGULAR_TOL, and the determinant
error bound coefficients ERR_COEFF_2, ERR_COEFF_3, and ERR_COEFF_4.
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_PIVOT_TOL;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::Matrix;pub use crate::Vector;
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.