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