BELFEM 0.9.0
Berkeley Lab Finite Element Framework
Loading...
Searching...
No Matches
op_BZ_VectorEqualEqual.hpp
Go to the documentation of this file.
1/*
2 * BELFEM -- The Berkeley Lab Finite Element Framework
3 * Copyright (c) 2026, The Regents of the University of California,
4 * through Lawrence Berkeley National Laboratory (subject to receipt of any required
5 * approvals from the U.S. Dept. of Energy). All rights reserved.
6 *
7 * Developers: Christian Messe, Gregory Giard
8 *
9 * See the top-level LICENSE file for the complete license and disclaimer.
10 */
11
12#ifndef BELFEM_OP_BZ_VECTOREQUALEQUAL_HPP
13#define BELFEM_OP_BZ_VECTOREQUALEQUAL_HPP
14
15#include "cl_BZ_Vector.hpp"
16
17namespace belfem
18{
19//------------------------------------------------------------------------------
20 template < typename T >
21 bool
22 operator==( const Vector< T > & aA,
23 const Vector< T > & aB )
24 {
25 return aA.vector_data() == aB.vector_data();
26 }
27
28// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
29
30 template < typename T >
31 bool
32 operator==( const T & aA,
33 const Vector< T > & aB )
34 {
35 return aA == aB.vector_data();
36 }
37
38// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
39
40 template < typename T >
41 bool
42 operator==( const Vector< T > & aA,
43 const T & aB )
44 {
45 return aA.vector_data() == aB;
46 }
47
48//------------------------------------------------------------------------------
49}
50#endif //BELFEM_OP_BZ_VECTOREQUALEQUAL_HPP
Column vector.
Definition cl_BZ_Vector.hpp:41
USER GUIDES:
Definition cl_Capacitor.cpp:16
@ T
Definition cl_Material.hpp:122
bool operator==(const Matrix< T > &aA, const Matrix< T > &aB)
Definition op_AR_MatrixEqualEqual.hpp:23