Skip to main content

conspire/math/assert/fd_eq/owned/
matrix.rs

1use super::super::{AssertFd, eq_within_fd_tol_impl};
2use crate::math::assert::{Assert, AssertionError};
3use crate::math::{SquareMatrix, Vector};
4
5impl AssertFd<Vector> for Vector {
6    fn eq_within_fd_tol(tols: &Assert, a: Self, b: Vector) -> Result<(), AssertionError> {
7        eq_within_fd_tol_impl(tols, &a, &b)
8    }
9}
10
11impl AssertFd<SquareMatrix> for SquareMatrix {
12    fn eq_within_fd_tol(tols: &Assert, a: Self, b: SquareMatrix) -> Result<(), AssertionError> {
13        eq_within_fd_tol_impl(tols, &a, &b)
14    }
15}