// L=============================================================================
// L This software is distributed under the MIT license.
// L Copyright 2021 Péter Kardos
// L=============================================================================
#pragma once
#include "VectorImpl.hpp"
namespace mathter {
/// Exactly compares two vectors.
/// <The usual warning about floating point numbers>
template
bool operator==(const Vector& lhs, const Vector& rhs) {
bool same = lhs[0] == rhs[0];
for (int i = 1; i < Dim; ++i) {
same = same && lhs[i] == rhs[i];
}
return same;
}
/// Exactly compares two vectors.
/// <The usual warning about floating point numbers>
template
bool operator!=(const Vector& lhs, const Vector& rhs) {
return !operator==(rhs);
}
} // namespace mathter