rmatrix_ks 0.5.10

matrix and some algebra in Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//! # traits::real
//!
//! Types that implement this trait can be considered as real numbers.

use crate::number::{instances::ratio::Rational, traits::number::Number};

/// Concepts of Real.
///
/// Real numbers are not only numbers
/// but also possess a partial ordering relation.
pub trait Real: Number
where
    Self: std::cmp::PartialOrd,
{
    /// Convert a real number to a rational number.
    fn to_rational(self) -> Rational;
}