MCKL
Monte Carlo Kernel Library
include
mckl
internal
defines.hpp
Go to the documentation of this file.
1
//============================================================================
2
// MCKL/include/mckl/internal/defines.hpp
3
//----------------------------------------------------------------------------
4
// MCKL: Monte Carlo Kernel Library
5
//----------------------------------------------------------------------------
6
// Copyright (c) 2013-2018, Yan Zhou
7
// All rights reserved.
8
//
9
// Redistribution and use in source and binary forms, with or without
10
// modification, are permitted provided that the following conditions are met:
11
//
12
// Redistributions of source code must retain the above copyright notice,
13
// this list of conditions and the following disclaimer.
14
//
15
// Redistributions in binary form must reproduce the above copyright notice,
16
// this list of conditions and the following disclaimer in the documentation
17
// and/or other materials provided with the distribution.
18
//
19
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS AS IS
20
// AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
21
// IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
22
// ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
23
// LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
24
// CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
25
// SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
26
// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
27
// CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
28
// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
29
// POSSIBILITY OF SUCH DAMAGE.
30
//============================================================================
31
32
#ifndef MCKL_INTERNAL_DEFINES_HPP
33
#define MCKL_INTERNAL_DEFINES_HPP
34
35
#include <
mckl/internal/config.h
>
36
#include <type_traits>
37
38
namespace
mckl
{
39
42
class
Virtual;
43
46
enum class
MatrixLayout
{
RowMajor
= 101,
ColMajor
= 102 };
47
constexpr
MatrixLayout
RowMajor
=
MatrixLayout::RowMajor
;
48
constexpr
MatrixLayout
ColMajor
=
MatrixLayout::ColMajor
;
49
51
enum class
MatrixTranspose
{
NoTrans
= 111,
Trans
= 112,
ConjTrans
= 113 };
52
54
enum class
MatrixUpLo
{
Upper
= 121,
Lower
= 122 };
55
57
enum class
MatrixDiag
{
NonUnit
= 131,
Unit
= 132 };
58
60
enum class
MatrixSide
{
Left
= 141,
Right
= 142 };
61
62
template
<
typename
T, std::
size_t
K = 1>
63
class
BufferSize
64
:
public
std::integral_constant<std::size_t,
65
8192 / (sizeof(T) * K) == 0 ? 1 : 8192 / (sizeof(T) * K)>
66
{
67
};
// class BufferSize;
68
69
}
// namespace mckl
70
71
#endif // MCKL_INTERNAL_DEFINES_HPP
mckl::MatrixTranspose
MatrixTranspose
Matrix Transpose.
Definition:
defines.hpp:51
mckl::MatrixLayout::RowMajor
mckl::MatrixTranspose::Trans
mckl::MatrixUpLo::Upper
config.h
mckl::MatrixSide::Right
mckl::MatrixUpLo
MatrixUpLo
Matrix Upper/lower triangular.
Definition:
defines.hpp:54
mckl::MatrixDiag::NonUnit
mckl::MatrixLayout::ColMajor
mckl
Definition:
mcmc.hpp:40
mckl::MatrixUpLo::Lower
mckl::MatrixTranspose::ConjTrans
mckl::MatrixTranspose::NoTrans
mckl::MatrixDiag
MatrixDiag
Matrix diagonal elements.
Definition:
defines.hpp:57
mckl::MatrixSide::Left
mckl::MatrixSide
MatrixSide
Symmetric matrix operator side.
Definition:
defines.hpp:60
mckl::MatrixLayout
MatrixLayout
Matrix layout.
Definition:
defines.hpp:46
mckl::BufferSize
Definition:
defines.hpp:63
mckl::MatrixDiag::Unit
Generated by
1.8.13