| 1154 | } |
| 1155 | |
| 1156 | bool ArrayApproxEquals(const Array& left, const Array& right, const EqualOptions& opts) { |
| 1157 | auto resolved_options = opts; |
| 1158 | if (!resolved_options.atol()) { |
| 1159 | resolved_options = resolved_options.atol(kDefaultAbsoluteTolerance); |
| 1160 | } |
| 1161 | return ArrayEquals(left, right, resolved_options); |
| 1162 | } |
| 1163 | |
| 1164 | bool ScalarEquals(const Scalar& left, const Scalar& right, const EqualOptions& options) { |
| 1165 | if (&left == &right && IdentityImpliesEquality(*left.type, options)) { |
no test coverage detected