typedef double R; typedef unsigned int ui; typedef struct {int d; int vc; R * wh; int sc; short * c;} bp; typedef struct{R* a; int m; int n;} mat; // a[m, n] typedef bp bg(void); // brane generator typedef bp bgi(int); // brane generator bg g1, g3, g3t, gx; bgi g2, gcp; R smp(R *, int, int); void rdx(ui*, ui*, ui); void mm(mat, mat, mat); void pm(mat, char *); R det(R *, int, int); typedef void dp(R);