bool lambda_trans_matrix_id_p (lambda_trans_matrix mat) { if (LTM_ROWSIZE (mat) != LTM_COLSIZE (mat)) return false; return lambda_matrix_id_p (LTM_MATRIX (mat), LTM_ROWSIZE (mat)); }
lambda_trans_matrix lambda_trans_matrix_inverse (lambda_trans_matrix mat) { lambda_trans_matrix inverse; int determinant; inverse = lambda_trans_matrix_new (LTM_ROWSIZE (mat), LTM_COLSIZE (mat)); determinant = lambda_matrix_inverse (LTM_MATRIX (mat), LTM_MATRIX (inverse), LTM_ROWSIZE (mat)); LTM_DENOMINATOR (inverse) = determinant; return inverse; }
lambda_trans_matrix lambda_trans_matrix_new (int colsize, int rowsize) { lambda_trans_matrix ret; ret = GGC_NEW (struct lambda_trans_matrix_s); LTM_MATRIX (ret) = lambda_matrix_new (rowsize, colsize); LTM_ROWSIZE (ret) = rowsize; LTM_COLSIZE (ret) = colsize; LTM_DENOMINATOR (ret) = 1; return ret; }
lambda_trans_matrix lambda_trans_matrix_new (int colsize, int rowsize) { lambda_trans_matrix ret; ret = ggc_alloc (sizeof (*ret)); LTM_MATRIX (ret) = lambda_matrix_new (rowsize, colsize); LTM_ROWSIZE (ret) = rowsize; LTM_COLSIZE (ret) = colsize; LTM_DENOMINATOR (ret) = 1; return ret; }
void print_lambda_trans_matrix (FILE *outfile, lambda_trans_matrix mat) { print_lambda_matrix (outfile, LTM_MATRIX (mat), LTM_ROWSIZE (mat), LTM_COLSIZE (mat)); }