ROCK
1.11.5
Relativistic Oscillator Calculation Kit
rows.h
Go to the documentation of this file.
1
#ifndef ROCK_ROWS_H
2
#define ROCK_ROWS_H
3
/* Copyright (C) 1991-2018 Free Software Foundation, Inc.
4
This file is part of the GNU C Library.
5
6
The GNU C Library is free software; you can redistribute it and/or
7
modify it under the terms of the GNU Lesser General Public
8
License as published by the Free Software Foundation; either
9
version 2.1 of the License, or (at your option) any later version.
10
11
The GNU C Library is distributed in the hope that it will be useful,
12
but WITHOUT ANY WARRANTY; without even the implied warranty of
13
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
Lesser General Public License for more details.
15
16
You should have received a copy of the GNU Lesser General Public
17
License along with the GNU C Library; if not, see
18
<http://www.gnu.org/licenses/>. */
19
/* This header is separate from features.h so that the compiler can
20
include it implicitly at the start of every compilation. It must
21
not itself include <features.h> or any other header that includes
22
<features.h> because the implicit include comes before any feature
23
test macros that may be defined in a source file before it first
24
explicitly includes a system header. GCC knows the name of this
25
header in order to preinclude it. */
26
/* glibc's intent is to support the IEC 559 math functionality, real
27
and complex. If the GCC (4.9 and later) predefined macros
28
specifying compiler intent are available, use them to determine
29
whether the overall intent is to support these features; otherwise,
30
presume an older compiler has intent to support these features and
31
define these macros by default. */
32
/* wchar_t uses Unicode 10.0.0. Version 10.0 of the Unicode Standard is
33
synchronized with ISO/IEC 10646:2017, fifth edition, plus
34
the following additions from Amendment 1 to the fifth edition:
35
- 56 emoji characters
36
- 285 hentaigana
37
- 3 additional Zanabazar Square characters */
41
// Row Labels of Matrices //
46
enum
ROW_OF_MOD
{
RID_K_PERP
,
RID_C_BESL_J
,
RID_C_BESL_Y
,
DIM_MOD
};
47
enum
{
DIM_K_PERP_
=
DIM_MOD
,
DIM_C_BESL_J_
=
DIM_MOD
,
DIM_C_BESL_Y_
=
DIM_MOD
, };
48
enum
ROW_OF_BC
{
RID_X1L
,
RID_X2L
,
RID_X1R
,
RID_X2R
,
DIM_BC
};
49
enum
{
DIM_X1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
,
DIM_BLT_TRJ_ALPHA_
=
DIM_BLT_TRJ
,
DIM_BLT_TRJ_GAMMA_
=
DIM_BLT_TRJ
, };
91
// Shortcuts for C-Programming //
92
// No need to translate //
94
/*
95
// The order VB is deprecated on CPU
96
#define VB_(IDX_V, IDX_BEAM) ((IDX_V) * (dim_b) + (IDX_BEAM))
97
#define VB(ROW_LABEL, IDX_BEAM) VB_((RID_##ROW_LABEL), (IDX_BEAM))
98
)
99
#define VBMH_(IDX_V, IDX_BEAM, IDX_MODE, IDX_HARM) ((dim_b) * (dim_m) * (DIM_HARM) * (IDX_V) + (dim_m) * (DIM_HARM) * (IDX_BEAM) + (DIM_HARM) * (IDX_MODE) + (IDX_HARM) - (MIN_HARM))
100
ARM))
101
#define VBM_(IDX_V, IDX_BEAM, IDX_MODE) ((dim_b) * (dim_m) * (IDX_V) + (dim_m) * (IDX_BEAM) + (IDX_MODE))
102
)
103
// Also, VNB is migrated to BVN for distributing beams in teams
104
#define VNB_(IDX_V, IDX_NODE, IDX_BEAM) ((dim_z) * (dim_b) * (IDX_V) + (dim_b) * (IDX_NODE) + (IDX_BEAM))
105
)
106
#define VNB(ROW_LABEL, IDX_NODE, IDX_BEAM) ((dim_z) * (dim_b) * (RID_##ROW_LABEL) + (dim_b) * (IDX_NODE) + (IDX_BEAM))
107
)
108
*/
116
#endif
RID_BLT_TRJ_CYC_ANG
Definition:
rows.h:88
DIM_BEAM_GS_
Definition:
rows.h:76
DIM_X1R_
Definition:
rows.h:49
DIM_BEAM_G_
Definition:
rows.h:76
DIM_BEAM_AS_
Definition:
rows.h:76
RID_BEAM_AS
Definition:
rows.h:75
RID_BLT_TRJ_GC_ANG
Definition:
rows.h:88
DIM_BLT_TRJ_GAMMA_
Definition:
rows.h:89
RID_X1L
Definition:
rows.h:48
DIM_BEAM_I_
Definition:
rows.h:76
DIM_BLT_AVG_ALPHA_
Definition:
rows.h:82
RID_BEAM_R
Definition:
rows.h:75
DIM_BLT_AVG_GAMMA_
Definition:
rows.h:82
RID_UZR
Definition:
rows.h:58
RID_BLT_AVG_FREQ
Definition:
rows.h:81
ROW_OF_BLT_AVG
ROW_OF_BLT_AVG
Definition:
rows.h:81
RID_UZL
Definition:
rows.h:58
DIM_BC
Definition:
rows.h:48
DIM_BLT_AVG
Definition:
rows.h:81
DIM_BLT_TRJ_GC_ANG_
Definition:
rows.h:89
DIM_BLT_TRJ
Definition:
rows.h:88
DIM_BLT_AVG_FREQ_
Definition:
rows.h:82
DIM_K_PERP_
Definition:
rows.h:47
DIM_BLT_TRJ_CYC_ANG_
Definition:
rows.h:89
ROW_OF_BEAM_INIT
ROW_OF_BEAM_INIT
Definition:
rows.h:75
DIM_X2R_
Definition:
rows.h:49
DIM_BLT_TRJ_CYC_R_
Definition:
rows.h:89
RID_C_BESL_J
Definition:
rows.h:46
RID_BEAM_G
Definition:
rows.h:75
DIM_BEAM_RS_
Definition:
rows.h:76
RID_BLT_AVG_ALPHA
Definition:
rows.h:81
ROW_OF_BLT_TRJ
ROW_OF_BLT_TRJ
Definition:
rows.h:88
RID_X1R
Definition:
rows.h:48
RID_BLT_TRJ_CYC_R
Definition:
rows.h:88
DIM_MOD
Definition:
rows.h:46
RID_BEAM_I
Definition:
rows.h:75
DIM_BLT_TRJ_GC_R_
Definition:
rows.h:89
RID_BLT_AVG_GAMMA
Definition:
rows.h:81
DIM_X1L_
Definition:
rows.h:49
RID_BLT_TRJ_GC_R
Definition:
rows.h:88
DIM_BEAM_R_
Definition:
rows.h:76
DIM_BEAM_A_
Definition:
rows.h:76
DIM_BLT_TRJ_ALPHA_
Definition:
rows.h:89
DIM_X2L_
Definition:
rows.h:49
RID_BEAM_A
Definition:
rows.h:75
RID_C_BESL_Y
Definition:
rows.h:46
RID_K_PERP
Definition:
rows.h:46
RID_X2L
Definition:
rows.h:48
DIM_BD
Definition:
rows.h:58
DIM_C_BESL_J_
Definition:
rows.h:47
DIM_UZL_
Definition:
rows.h:59
RID_BEAM_GS
Definition:
rows.h:75
RID_BLT_TRJ_GAMMA
Definition:
rows.h:88
RID_X2R
Definition:
rows.h:48
DIM_C_BESL_Y_
Definition:
rows.h:47
ROW_OF_BC
ROW_OF_BC
Definition:
rows.h:48
ROW_OF_BD
ROW_OF_BD
Definition:
rows.h:58
RID_BLT_TRJ_ALPHA
Definition:
rows.h:88
ROW_OF_MOD
ROW_OF_MOD
Definition:
rows.h:46
RID_BEAM_RS
Definition:
rows.h:75
DIM_UZR_
Definition:
rows.h:59
DIM_BEAM_INIT
Definition:
rows.h:75
rock
rows.h
Generated by
1.8.14