BELFEM 0.9.0
Berkeley Lab Finite Element Framework
Loading...
Searching...
No Matches
fn_AR_max.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_AR_MAX_HPP
13#define BELFEM_FN_AR_MAX_HPP
14
15#include "cl_AR_Vector.hpp"
16#include "cl_AR_Matrix.hpp"
17
18namespace belfem
19{
20//------------------------------------------------------------------------------
21
22 template <typename T >
23 T
24 max( const Vector<T> & aVector )
25 {
26 return aVector.vector_data().max();
27 }
28
29// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
30
31 template <typename T >
32 T
33 max( const Matrix<T> & aMatrix )
34 {
35 return aMatrix.matrix_data().max();
36 }
37
38// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
39
40 template <typename T >
41 T
42 max( const arma::Mat <T> & aMatrix )
43 {
44 return aMatrix.max();
45 }
46
47//------------------------------------------------------------------------------
48}
49#endif //BELFEM_FN_AR_MAX_HPP
Dense column-major matrix.
Definition cl_BZ_Matrix.hpp:28
MatrixType & matrix_data()
Definition cl_AR_Matrix.hpp:157
Column vector.
Definition cl_BZ_Vector.hpp:41
VectorType & vector_data()
expose the underlying matrix implementation ( writable version )
Definition cl_AR_Vector.hpp:204
USER GUIDES:
Definition cl_Capacitor.cpp:16
@ T
Definition cl_Material.hpp:122
T max(const Vector< T > &aVector)
Definition fn_AR_max.hpp:24