GAP 4.8.9 installation with standard packages -- copy to your CoCalc project to get it
#ifdef __cplusplus1extern "C" {2#endif345#ifndef _LONGTOOLS_H_6#define _LONGTOOLS_H_78#ifndef _CARAT_TYPEDEF_H_9#include"typedef.h"10#endif1112#ifndef _GMP_H_13#include "gmp.h"14#endif1516#ifdef __STDC__17/*-------------------------------------------------------------*\18| FILE: MP_conv_mat.c19\*-------------------------------------------------------------*/20extern MP_INT **matrix_to_MP_mat(matrix_TYP *M);21extern matrix_TYP *MP_mat_to_matrix(MP_INT **M, int rows, int cols);22extern void write_MP_mat_to_matrix(matrix_TYP *Mat, MP_INT **mp);23extern MP_INT **init_MP_mat(int rows, int cols);24extern void free_MP_mat(MP_INT **M, int rows, int cols);2526/*-------------------------------------------------------------*\27| FILE: MP_gauss.c28\*-------------------------------------------------------------*/29extern int MP_trf_gauss(MP_INT **M, MP_INT **Trf, int rows, int cols);30extern int MP_row_gauss(MP_INT **M, int rows, int cols);31extern int MP_row_gauss_simultaneous(MP_INT **M, int rows, int cols,32MP_INT **B, int Bcols);33extern void MP_row_gauss_reverse(MP_INT **A,int rows,int cols,int option);3435/*-------------------------------------------------------------*\36| FILE: MP_hnf.c37\*-------------------------------------------------------------*/38extern int MP_trf_hnf(MP_INT **M, MP_INT **Trf, int rows, int cols);39extern int MP_hnf(MP_INT **M, int rows, int cols);40extern int MP_hnf_simultaneous(MP_INT **M, int rows, int cols, MP_INT **B,41int Bcols);4243/*-------------------------------------------------------------*\44| FILE: MP_pair_red.c45\*-------------------------------------------------------------*/46extern void MP_pair_red(MP_INT **G, MP_INT **T, int n);4748/*-------------------------------------------------------------*\49| FILE: MP_red_sort.c50\*-------------------------------------------------------------*/51extern void MP_reduction_sort(MP_INT **G,MP_INT **T,int n);5253/*-------------------------------------------------------------*\54| FILE: MP_solve.c55\*-------------------------------------------------------------*/56extern MP_INT ***MP_solve_mat(MP_INT **M, int rows, int cols, MP_INT **B,57int Bcols, int *X1cols, MP_INT *X0kgv);5859/*-------------------------------------------------------------*\60| FILE: long_elt.c61\*-------------------------------------------------------------*/62extern matrix_TYP *long_elt_mat(matrix_TYP *left_trans,63matrix_TYP *Mat,64matrix_TYP *right_trans);6566/*-------------------------------------------------------------------*\67| FILE: long_gauss.c68\*-------------------------------------------------------------------*/69extern int long_row_gauss(matrix_TYP *Mat);70extern int long_row_basis(matrix_TYP *Mat,int flag);71extern int long_row_trf_gauss(matrix_TYP *M, matrix_TYP *T);72extern int long_row_gauss_simultaneous(matrix_TYP *A, matrix_TYP *B);7374/*-------------------------------------------------------------------*\75| FILE: long_hnf.c76\*-------------------------------------------------------------------*/77extern int long_row_hnf(matrix_TYP *Mat);78extern int long_col_hnf(matrix_TYP *Mat);79extern int long_row_trf_hnf(matrix_TYP *M, matrix_TYP *T);80extern int long_row_hnf_simultaneous(matrix_TYP *A, matrix_TYP *B);8182/*-------------------------------------------------------------*\83| FILE: long_kernel_mat.c84\*-------------------------------------------------------------*/85extern matrix_TYP *long_kernel_mat(matrix_TYP *A);8687/*-------------------------------------------------------------*\88| FILE: long_mat_inv.c89\*-------------------------------------------------------------*/90extern matrix_TYP *long_mat_inv(matrix_TYP *A);9192/*-------------------------------------------------------------*\93| FILE: long_qbase.c94\*-------------------------------------------------------------*/95extern matrix_TYP *long_qbase();9697/*-------------------------------------------------------------*\98| FILE: long_rein_mat.c99\*-------------------------------------------------------------*/100extern matrix_TYP *long_rein_mat(matrix_TYP *M);101extern int long_rein_formspace(matrix_TYP **forms,int number,int option);102103/*-------------------------------------------------------------*\104| FILE: long_solve_mat.c105\*-------------------------------------------------------------*/106extern matrix_TYP **long_solve_mat(matrix_TYP *A, matrix_TYP *B);107108#else109/*-------------------------------------------------------------*\110| FILE: MP_conv_mat.c111\*-------------------------------------------------------------*/112extern MP_INT **matrix_to_MP_mat();113extern matrix_TYP *MP_mat_to_matrix();114extern void write_MP_mat_to_matrix();115extern MP_INT **init_MP_mat();116extern void free_MP_mat();117118/*-------------------------------------------------------------*\119| FILE: MP_gauss.c120\*-------------------------------------------------------------*/121extern int MP_trf_gauss();122extern int MP_row_gauss();123extern int MP_row_gauss_simultaneous();124extern void MP_row_gauss_reverse();125126/*-------------------------------------------------------------*\127| FILE: MP_hnf.c128\*-------------------------------------------------------------*/129extern int MP_trf_hnf();130extern int MP_hnf();131extern int MP_hnf_simultaneous();132133/*-------------------------------------------------------------*\134| FILE: MP_pair_red.c135\*-------------------------------------------------------------*/136extern void MP_pair_red();137138/*-------------------------------------------------------------*\139| FILE: MP_red_sort.c140\*-------------------------------------------------------------*/141extern void MP_reduction_sort();142143/*-------------------------------------------------------------*\144| FILE: MP_solve.c145\*-------------------------------------------------------------*/146extern MP_INT ***MP_solve_mat();147148/*-------------------------------------------------------------*\149| FILE: long_elt.c150\*-------------------------------------------------------------*/151extern matrix_TYP *long_elt_mat();152153/*-------------------------------------------------------------------*\154| FILE: long_gauss.c155\*-------------------------------------------------------------------*/156extern int long_row_gauss();157extern int long_row_basis();158extern int long_row_trf_gauss();159extern int long_row_gauss_simultaneous();160161/*-------------------------------------------------------------------*\162| FILE: long_hnf.c163\*-------------------------------------------------------------------*/164extern int long_row_hnf();165extern int long_row_trf_hnf();166extern int long_row_hnf_simultaneous();167168/*-------------------------------------------------------------*\169| FILE: long_kernel_mat.c170\*-------------------------------------------------------------*/171extern matrix_TYP *long_kernel_mat();172173/*-------------------------------------------------------------*\174| FILE: long_mat_inv.c175\*-------------------------------------------------------------*/176extern matrix_TYP *long_mat_inv();177178/*-------------------------------------------------------------*\179| FILE: long_qbase.c180\*-------------------------------------------------------------*/181extern matrix_TYP *long_qbase(matrix_TYP *Mat);182183/*-------------------------------------------------------------*\184| FILE: long_rein_mat.c185\*-------------------------------------------------------------*/186extern matrix_TYP *long_rein_mat();187extern int long_rein_formspace();188189/*-------------------------------------------------------------*\190| FILE: long_solve_mat.c191\*-------------------------------------------------------------*/192extern matrix_TYP **long_solve_mat();193194#endif195#endif196197198#ifdef __cplusplus199}200#endif201202203204