Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Download

GAP 4.8.9 installation with standard packages -- copy to your CoCalc project to get it

563665 views
1
#include "typedef.h"
2
#include "bravais.h"
3
#include "matrix.h"
4
5
6
bravais_TYP *point_group(bravais_TYP *R,
7
int option)
8
{
9
10
bravais_TYP *RES;
11
12
int i;
13
14
15
RES = init_bravais(R->dim-1);
16
17
RES->gen_no = R->gen_no;
18
19
RES->gen = (matrix_TYP **) malloc(RES->gen_no * sizeof(matrix_TYP *));
20
21
for (i=0;i<RES->gen_no;i++){
22
RES->gen[i] = copy_mat(R->gen[i]);
23
real_mat(RES->gen[i],RES->gen[i]->rows-1,RES->gen[i]->cols);
24
real_mat(RES->gen[i],RES->gen[i]->rows,RES->gen[i]->cols-1);
25
Check_mat(RES->gen[i]);
26
}
27
28
29
if (option & 2){
30
/* calculate the space of invarinat forms, we might need it */
31
RES->form = formspace(RES->gen,RES->gen_no,1,&RES->form_no);
32
}
33
34
return RES;
35
36
}
37
38
39
40