BELFEM 0.9.0
Berkeley Lab Finite Element Framework
Loading...
Searching...
No Matches
fn_det.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
17
25
26#ifndef BELFEM_FN_DET_HPP
27#define BELFEM_FN_DET_HPP
28
29#ifdef BELFEM_ARMADILLO
30#include "fn_AR_det.hpp"
31#elif BELFEM_BLAZE
32#include "fn_BZ_det.hpp"
33#endif
34
35namespace belfem
36{
37
38//------------------------------------------------------------------------------
39 template< typename T >
40 auto
41 det( const Matrix< T > & aA )
42 -> decltype( det( aA.matrix_data())) const
43 {
44 return det( aA.matrix_data());
45 }
46
47//------------------------------------------------------------------------------
48
49 template< typename T >
50 auto
52 -> decltype( det( aA.matrix_data() ) )
53 {
54 return det( aA.matrix_data() );
55 }
56
57//------------------------------------------------------------------------------
58}
59#endif //BELFEM_FN_DET_HPP
Dense column-major matrix.
Definition cl_BZ_Matrix.hpp:28
USER GUIDES:
Definition cl_Capacitor.cpp:16
auto det(const T &A) -> decltype(arma::det(A))
Definition fn_AR_det.hpp:23