1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/src/glpbfx.h Mon Dec 06 13:09:21 2010 +0100
1.3 @@ -0,0 +1,71 @@
1.4 +/* glpbfx.h (basis factorization interface, bignum arithmetic) */
1.5 +
1.6 +/***********************************************************************
1.7 +* This code is part of GLPK (GNU Linear Programming Kit).
1.8 +*
1.9 +* Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008,
1.10 +* 2009, 2010 Andrew Makhorin, Department for Applied Informatics,
1.11 +* Moscow Aviation Institute, Moscow, Russia. All rights reserved.
1.12 +* E-mail: <mao@gnu.org>.
1.13 +*
1.14 +* GLPK is free software: you can redistribute it and/or modify it
1.15 +* under the terms of the GNU General Public License as published by
1.16 +* the Free Software Foundation, either version 3 of the License, or
1.17 +* (at your option) any later version.
1.18 +*
1.19 +* GLPK is distributed in the hope that it will be useful, but WITHOUT
1.20 +* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
1.21 +* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
1.22 +* License for more details.
1.23 +*
1.24 +* You should have received a copy of the GNU General Public License
1.25 +* along with GLPK. If not, see <http://www.gnu.org/licenses/>.
1.26 +***********************************************************************/
1.27 +
1.28 +#ifndef GLPBFX_H
1.29 +#define GLPBFX_H
1.30 +
1.31 +#include "glpgmp.h"
1.32 +
1.33 +#ifndef GLPBFX_DEFINED
1.34 +#define GLPBFX_DEFINED
1.35 +typedef struct { double _opaque_bfx; } BFX;
1.36 +#endif
1.37 +
1.38 +#define bfx_create_binv _glp_bfx_create_binv
1.39 +#define bfx_is_valid _glp_bfx_is_valid
1.40 +#define bfx_invalidate _glp_bfx_invalidate
1.41 +#define bfx_factorize _glp_bfx_factorize
1.42 +#define bfx_ftran _glp_bfx_ftran
1.43 +#define bfx_btran _glp_bfx_btran
1.44 +#define bfx_update _glp_bfx_update
1.45 +#define bfx_delete_binv _glp_bfx_delete_binv
1.46 +
1.47 +BFX *bfx_create_binv(void);
1.48 +/* create factorization of the basis matrix */
1.49 +
1.50 +int bfx_is_valid(BFX *binv);
1.51 +/* check if factorization is valid */
1.52 +
1.53 +void bfx_invalidate(BFX *binv);
1.54 +/* invalidate factorization of the basis matrix */
1.55 +
1.56 +int bfx_factorize(BFX *binv, int m, int (*col)(void *info, int j,
1.57 + int ind[], mpq_t val[]), void *info);
1.58 +/* compute factorization of the basis matrix */
1.59 +
1.60 +void bfx_ftran(BFX *binv, mpq_t x[], int save);
1.61 +/* perform forward transformation (FTRAN) */
1.62 +
1.63 +void bfx_btran(BFX *binv, mpq_t x[]);
1.64 +/* perform backward transformation (BTRAN) */
1.65 +
1.66 +int bfx_update(BFX *binv, int j);
1.67 +/* update factorization of the basis matrix */
1.68 +
1.69 +void bfx_delete_binv(BFX *binv);
1.70 +/* delete factorization of the basis matrix */
1.71 +
1.72 +#endif
1.73 +
1.74 +/* eof */