GAP 4.8.9 installation with standard packages -- copy to your CoCalc project to get it
#include"typedef.h"1#include"getput.h"2#include"bravais.h"3#include"matrix.h"45main (int argc, char *argv[])6{7int anz,8anz2,9i;1011char comment[1000];1213matrix_TYP **Formen,14**A,15*tmp;1617read_header(argc, argv);18if(FILEANZ < 2 || is_option('h'))19{20printf("Usage: Normlin file1 file2\n");21printf("\n");22printf("where file1 and file2 contain a matrix_TYP.\n");23printf("\n");24printf("Calculates for each matrix A in 'file2' a matrix X with the\n");25printf("property that\n");26printf(" \\sum_j X_{i,j} F_j = A^{tr} F_j A with F_j in 'file1'\n");27printf("\n");28printf("CAUTION: The matrix describes the action on rows!\n");29printf("\n");30if (is_option('h')){31exit(0);32}33else{34exit(31);35}36}3738Formen = mget_mat(FILENAMES[0],&anz);39A = mget_mat(FILENAMES[1],&anz2);4041for (i=0;i<anz2;i++){42tmp = normlin(Formen,A[i],anz);43sprintf(comment,"Normalin for %d-th matrix of %s on the formspace %s",44i+1,FILENAMES[1],FILENAMES[2]);45Check_mat(tmp);46put_mat(tmp,NULL,comment,2);47free_mat(tmp);48}4950exit(0);51}525354