@@ -41,85 +41,6 @@ modm::Vector<T, N>::operator = (const modm::Matrix<T, N, 1> &rhs)
41
41
return *this ;
42
42
}
43
43
44
- // ----------------------------------------------------------------------------
45
- template <typename T, std::size_t N>
46
- bool
47
- modm::Vector<T, N>::operator == (const modm::Vector<T, N> &rhs) const
48
- {
49
- return memcmp (coords, rhs.coords , sizeof (T)*N) == 0 ;
50
- }
51
-
52
- template <typename T, std::size_t N>
53
- bool
54
- modm::Vector<T, N>::operator != (const modm::Vector<T, N> &rhs) const
55
- {
56
- return memcmp (coords, rhs.coords , sizeof (T)*N) != 0 ;
57
- }
58
-
59
- template <typename T, std::size_t N>
60
- bool
61
- modm::Vector<T, N>::operator < (const modm::Vector<T, N> &rhs) const
62
- {
63
- for (uint_fast8_t i = 0 ; i < N; ++i)
64
- {
65
- if ((*this )[i] < rhs[i]) {
66
- return true ;
67
- }
68
- else if ((*this )[i] > rhs[i]) {
69
- return false ;
70
- }
71
- }
72
- return false ;
73
- }
74
-
75
- template <typename T, std::size_t N>
76
- bool
77
- modm::Vector<T, N>::operator <= (const modm::Vector<T, N> &rhs) const
78
- {
79
- for (uint_fast8_t i = 0 ; i < N; ++i)
80
- {
81
- if ((*this )[i] < rhs[i]) {
82
- return true ;
83
- }
84
- else if ((*this )[i] > rhs[i]) {
85
- return false ;
86
- }
87
- }
88
- return true ;
89
- }
90
-
91
- template <typename T, std::size_t N>
92
- bool
93
- modm::Vector<T, N>::operator > (const modm::Vector<T, N> &rhs) const
94
- {
95
- for (uint_fast8_t i = 0 ; i < N; ++i)
96
- {
97
- if ((*this )[i] > rhs[i]) {
98
- return true ;
99
- }
100
- else if ((*this )[i] < rhs[i]) {
101
- return false ;
102
- }
103
- }
104
- return false ;
105
- }
106
-
107
- template <typename T, std::size_t N>
108
- bool
109
- modm::Vector<T, N>::operator >= (const modm::Vector<T, N> &rhs) const
110
- {
111
- for (uint_fast8_t i = 0 ; i < N; ++i)
112
- {
113
- if ((*this )[i] > rhs[i]) {
114
- return true ;
115
- }
116
- else if ((*this )[i] < rhs[i]) {
117
- return false ;
118
- }
119
- }
120
- return true ;
121
- }
122
-
123
44
// ----------------------------------------------------------------------------
124
45
template <typename T, std::size_t N>
125
46
const T&
0 commit comments