VCCC  2024.05
VisualCamp Common C++ library
mat_expr_operations.hpp
Go to the documentation of this file.
1 # /*
2 # * Created by YongGyu Lee on 2020/02/04.
3 # */
4 #
5 # ifndef VCCC_MATH_MATRIX_MAT_EXPR_OPERATIONS_HPP
6 # define VCCC_MATH_MATRIX_MAT_EXPR_OPERATIONS_HPP
7 #
10 
11 namespace vccc {
12 
14 constexpr bool
15 operator == (const MatrixBase<E1>& lhs, const MatrixBase<E2>& rhs) {
16  for(int i=0; i<lhs.size; ++i)
17  if(lhs(i) != rhs(i)) return false;
18  return true;
19 }
20 
22 constexpr bool
23 operator != (const MatrixBase<E1>& lhs, const MatrixBase<E2>& rhs) {
24  return !(lhs == rhs);
25 }
26 
27 } // namespace vccc
28 
29 #endif // VCCC_MATH_MATRIX_MAT_EXPR_OPERATIONS_HPP
Definition: matrix_base.hpp:20
@ size
Definition: matrix_base.hpp:29
Definition: directory.h:12
constexpr bool operator!=(const MatrixBase< E1 > &lhs, const MatrixBase< E2 > &rhs)
Definition: mat_expr_operations.hpp:23
constexpr VCCC_INLINE_OR_STATIC detail::element_niebloid< 1 > value
Definition: key_value.hpp:35
constexpr bool operator==(const MatrixBase< E1 > &lhs, const MatrixBase< E2 > &rhs)
Definition: mat_expr_operations.hpp:15