Deprecate `abs`

See #371
This commit is contained in:
Jack Wrenn 2018-12-10 15:54:54 -05:00 committed by Sébastien Crozet
parent 2595db1607
commit aac29b70ea
1 changed files with 3 additions and 0 deletions

View File

@ -275,6 +275,9 @@ pub fn min<T: Ord>(a: T, b: T) -> T {
} }
/// The absolute value of `a`. /// The absolute value of `a`.
///
/// Deprecated: Use [Matrix::abs] or [Real::abs] instead.
#[deprecated(note = "use `Matrix::abs` or `Real::abs` instead")]
#[inline] #[inline]
pub fn abs<T: Signed>(a: &T) -> T { pub fn abs<T: Signed>(a: &T) -> T {
a.abs() a.abs()