BELFEM
0.9.0
Berkeley Lab Finite Element Framework
Toggle main menu visibility
Loading...
Searching...
No Matches
fn_BZ_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_BZ_MAX_HPP
13
#define BELFEM_FN_BZ_MAX_HPP
14
15
#include "
cl_BZ_Vector.hpp
"
16
#include "
cl_BZ_Matrix.hpp
"
17
18
namespace
belfem
19
{
20
template
<
typename
T >
21
inline
T
22
max
(
const
blaze::Columns< blaze::DynamicMatrix< T, BLAZE_DEFAULT_STORAGE_ORDER >,
true
,
true
,
false
> & aColumn )
23
{
24
return
blaze::max( aColumn );
25
}
26
27
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
28
29
template
<
typename
T >
30
inline
T
31
max
(
const
blaze::Rows< blaze::DynamicMatrix< T, BLAZE_DEFAULT_STORAGE_ORDER >,
false
,
true
,
false
> & aColumn )
32
{
33
return
blaze::max( aColumn );
34
}
35
36
//------------------------------------------------------------------------------
37
38
template
<
typename
T >
39
inline
T
40
max
(
const
Vector<T> & aVector )
41
{
42
return
blaze::max( aVector.vector_data() );
43
}
44
45
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
46
47
template
<
typename
T >
48
inline
T
49
max
(
const
Matrix<T>
& aMatrix )
50
{
51
return
blaze::max( aMatrix.matrix_data() );
52
}
53
54
//------------------------------------------------------------------------------
55
}
56
#endif
//BELFEM_FN_BZ_MAX_HPP
cl_BZ_Matrix.hpp
cl_BZ_Vector.hpp
belfem::Matrix
Dense column-major matrix.
Definition
cl_BZ_Matrix.hpp:28
belfem
USER GUIDES:
Definition
cl_Capacitor.cpp:16
belfem::MaterialDependency::T
@ T
Definition
cl_Material.hpp:122
belfem::max
T max(const Vector< T > &aVector)
Definition
fn_AR_max.hpp:24
src
linalg
blaze
fn_BZ_max.hpp
Generated by
1.18.0