Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9 from chalharu/release/0.1.2
Release 0.1.2
- Loading branch information
Showing
6 changed files
with
68 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
//! # Licensing | ||
//! This Source Code is subject to the terms of the Mozilla Public License | ||
//! version 2.0 (the "License"). You can obtain a copy of the License at | ||
//! http://mozilla.org/MPL/2.0/. | ||
|
||
use num_complex::Complex; | ||
use NearlyEq; | ||
|
||
impl<A, B, C: NearlyEq<A, B>> NearlyEq<Complex<A>, B> for Complex<C> { | ||
fn eps() -> B { | ||
C::eps() | ||
} | ||
|
||
fn eq(&self, other: &Complex<A>, eps: &B) -> bool { | ||
self.re.eq(&other.re, eps) && self.im.eq(&other.im, eps) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters