BELFEM 0.9.0
Berkeley Lab Finite Element Framework
Loading...
Searching...
No Matches
fn_sign.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_SIGN_HPP
13#define BELFEM_FN_SIGN_HPP
14
15namespace belfem
16{
17 template < typename T >
18 inline T sign( const T aX )
19 {
20 return ( aX > 0) ? 1 : ( ( aX < 0) ? -1 : 0);
21 }
22
23}
24
25#endif //BELFEM_FN_SIGN_HPP
USER GUIDES:
Definition cl_Capacitor.cpp:16
T sign(const T aX)
Definition fn_sign.hpp:18