cMHN
1.2
C++ library for learning MHNs with pRC
Loading...
Searching...
No Matches
pRC
prc
core
container
declarations.hpp
Go to the documentation of this file.
1
// SPDX-License-Identifier: BSD-2-Clause
2
3
#ifndef pRC_CORE_CONTAINER_DECLARATIONS_H
4
#define pRC_CORE_CONTAINER_DECLARATIONS_H
5
6
#include <
prc/config.hpp
>
7
#include <
prc/core/container/allocation.hpp
>
8
9
namespace
pRC
10
{
11
template
<
Allocation
,
class
,
Size
...>
12
class
CommonArray
;
13
14
template
<
class
T
,
Size
... Ns>
15
using
StackArray
=
CommonArray
<
Allocation::Stack
,
T
, Ns...>;
16
17
template
<
class
T
,
Size
... Ns>
18
using
HeapArray
=
CommonArray
<
Allocation::Heap
,
T
, Ns...>;
19
20
template
<
class
T
,
Size
... Ns>
21
using
Array
=
Conditional
<((Ns * ... * 1) *
sizeof
(
T
) >
cHugepageSizeByte
),
22
HeapArray<T, Ns...>
,
StackArray<T, Ns...>
>;
23
24
template
<
class
T, Size N>
25
CommonArray
(
T
const
(&)[N]) ->
CommonArray<Allocation::Stack, T, N>
;
26
}
27
#endif
// pRC_CORE_CONTAINER_DECLARATIONS_H
allocation.hpp
pRC::CommonArray
Definition
declarations.hpp:12
pRC::Float
Definition
value.hpp:12
config.hpp
T
pRC::Float<> T
Definition
externs_nonTT.hpp:1
pRC
Definition
cholesky.hpp:10
pRC::Size
std::size_t Size
Definition
basics.hpp:31
pRC::cHugepageSizeByte
constexpr Size cHugepageSizeByte
Definition
config.hpp:51
pRC::Array
Conditional<((Ns *... *1) *sizeof(T) > cHugepageSizeByte), HeapArray< T, Ns... >, StackArray< T, Ns... > > Array
Definition
declarations.hpp:21
pRC::CommonArray
CommonArray(T const (&)[N]) -> CommonArray< Allocation::Stack, T, N >
pRC::Conditional
std::conditional_t< B, T, F > Conditional
Definition
basics.hpp:56
pRC::Allocation
Allocation
Definition
allocation.hpp:18
pRC::Allocation::Stack
@ Stack
pRC::Allocation::Heap
@ Heap
Generated by
1.11.0