BELFEM
0.9.0
Berkeley Lab Finite Element Framework
Toggle main menu visibility
Loading...
Searching...
No Matches
fn_AR_linspace.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_LINSPACE_HPP
13
#define BELFEM_FN_AR_LINSPACE_HPP
14
15
#include "
cl_AR_Vector.hpp
"
16
namespace
belfem
17
{
18
//------------------------------------------------------------------------------
19
20
template
<
typename
T >
21
void
22
linspace
(
const
T & aStart,
23
const
T & aEnd,
24
const
belfem::size_t
& aN,
25
Vector< T >
& aValues)
26
{
27
aValues = arma::linspace< arma::Mat< T > >( aStart, aEnd, aN );
28
}
29
30
//------------------------------------------------------------------------------
31
32
template
<
typename
T >
33
auto
34
linspace
(
const
T & aStart,
35
const
T & aEnd,
36
const
belfem::size_t
& aN)
37
->decltype( arma::linspace< arma::Mat< T > >( aStart, aEnd, aN ) )
38
{
39
return
arma::linspace< arma::Mat< T > >( aStart, aEnd, aN );
40
}
41
42
//------------------------------------------------------------------------------
43
}
44
45
#endif
//BELFEM_FN_AR_LINSPACE_HPP
cl_AR_Vector.hpp
belfem::Vector
Column vector.
Definition
cl_BZ_Vector.hpp:41
belfem
USER GUIDES:
Definition
cl_Capacitor.cpp:16
belfem::size_t
size_t size_t
Definition
typedefs.hpp:25
belfem::linspace
void linspace(const T &aStart, const T &aEnd, const belfem::size_t &aN, Vector< T > &aValues)
Definition
fn_AR_linspace.hpp:22
src
linalg
armadillo
fn_AR_linspace.hpp
Generated by
1.18.0