conspire/math/assert/eq/owned/
rank_4.rs1use super::super::{AssertEq, eq_impl, eq_within_tols_impl};
2use crate::math::TensorRank4;
3use crate::math::assert::{Assert, AssertionError};
4
5impl<const D: usize, const I: usize, const J: usize, const K: usize, const L: usize>
6 AssertEq<TensorRank4<D, I, J, K, L>> for TensorRank4<D, I, J, K, L>
7{
8 fn eq(a: Self, b: TensorRank4<D, I, J, K, L>) -> Result<(), AssertionError> {
9 eq_impl(&a, &b)
10 }
11 fn eq_within_tols(
12 tols: &Assert,
13 a: Self,
14 b: TensorRank4<D, I, J, K, L>,
15 ) -> Result<(), AssertionError> {
16 eq_within_tols_impl(tols, &a, &b)
17 }
18}