Orbiter
2022
Combinatorial Objects
matrix_block_data.cpp
Go to the documentation of this file.
1
/*
2
* matrix_block_data.cpp
3
*
4
* Created on: Feb 9, 2019
5
* Author: betten
6
*/
7
8
9
10
#include "
foundations.h
"
11
12
13
using namespace
std;
14
15
16
namespace
orbiter
{
17
namespace
layer1_foundations {
18
namespace
algebra {
19
20
21
22
23
24
matrix_block_data::matrix_block_data
()
25
{
26
null
();
27
}
28
29
matrix_block_data::~matrix_block_data
()
30
{
31
freeself
();
32
}
33
34
void
matrix_block_data::null
()
35
{
36
K
= NULL;
37
part
= NULL;
38
dual_part
= NULL;
39
height
= 0;
40
}
41
42
void
matrix_block_data::freeself
()
43
{
44
if
(
K
) {
45
FREE_OBJECTS
(
K
);
46
}
47
if
(
dual_part
) {
48
FREE_int
(
dual_part
);
49
}
50
if
(
part
) {
51
FREE_int
(
part
);
52
}
53
null
();
54
}
55
56
void
matrix_block_data::allocate
(
int
k)
57
{
58
K
=
NEW_OBJECTS
(
data_structures::int_matrix
, k);
59
dual_part
=
NEW_int
(k);
60
part
=
NEW_int
(k);
61
}
62
63
64
}}}
orbiter::layer1_foundations::algebra::matrix_block_data::~matrix_block_data
~matrix_block_data()
Definition:
matrix_block_data.cpp:29
orbiter::layer1_foundations::algebra::matrix_block_data::part
int * part
Definition:
algebra.h:594
orbiter::layer1_foundations::algebra::matrix_block_data::matrix_block_data
matrix_block_data()
Definition:
matrix_block_data.cpp:24
orbiter::layer1_foundations::algebra::matrix_block_data::allocate
void allocate(int k)
Definition:
matrix_block_data.cpp:56
orbiter::layer1_foundations::algebra::matrix_block_data::K
data_structures::int_matrix * K
Definition:
algebra.h:591
orbiter::layer1_foundations::algebra::matrix_block_data::height
int height
Definition:
algebra.h:595
orbiter::layer1_foundations::algebra::matrix_block_data::dual_part
int * dual_part
Definition:
algebra.h:593
orbiter::layer1_foundations::algebra::matrix_block_data::freeself
void freeself()
Definition:
matrix_block_data.cpp:42
orbiter::layer1_foundations::algebra::matrix_block_data::null
void null()
Definition:
matrix_block_data.cpp:34
orbiter::layer1_foundations::data_structures::int_matrix
matrices over int
Definition:
data_structures.h:456
foundations.h
FREE_OBJECTS
#define FREE_OBJECTS(p)
Definition:
foundations.h:652
FREE_int
#define FREE_int(p)
Definition:
foundations.h:640
NEW_int
#define NEW_int(n)
Definition:
foundations.h:625
NEW_OBJECTS
#define NEW_OBJECTS(type, n)
Definition:
foundations.h:639
orbiter
the orbiter library for the classification of combinatorial objects
Definition:
classification.h:18
src
lib
foundations
algebra
matrix_block_data.cpp
Generated by
1.9.3