BELFEM
0.9.0
Berkeley Lab Finite Element Framework
Toggle main menu visibility
Loading...
Searching...
No Matches
fn_TR_equal_equal.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_FN_TR_EQUAL_EQUAL_HPP
13
#define BELFEM_FN_TR_EQUAL_EQUAL_HPP
14
#include "
typedefs.hpp
"
15
namespace
belfem
16
{
17
namespace
tensor
18
{
19
//----------------------------------------------------------------------------
20
21
template
<
typename
T >
22
inline
bool
23
equal_equal
(
const
T * A,
const
T * B,
const
index_t
aCapacity )
24
{
25
for
(
index_t
k=0; k<aCapacity; ++k )
26
{
27
if
( A[ k ] != B[ k ] )
28
{
29
return
false ;
30
}
31
}
32
33
return
true ;
34
}
35
36
//----------------------------------------------------------------------------
37
}
/* namespace tensor */
38
}
/* namespace belfem */
39
#endif
//BELFEM_FN_TR_EQUAL_EQUAL_HPP
belfem::tensor
Definition
fn_TR_contract42_arma.hpp:21
belfem::tensor::equal_equal
bool equal_equal(const T *A, const T *B, const index_t aCapacity)
Definition
fn_TR_equal_equal.hpp:23
belfem
USER GUIDES:
Definition
cl_Capacitor.cpp:16
belfem::index_t
uint32_t index_t
Definition
typedefs.hpp:52
typedefs.hpp
src
math
tensor
fn_TR_equal_equal.hpp
Generated by
1.18.0