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 bg g1, g2, g3, gx; 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);