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