| 1 | /* glpbfx.h (basis factorization interface, bignum arithmetic) */cxx . . $ `<file>/external/glpk/glpbfx.h`/ |
| 2 | |
| 3 | /*********************************************************************** |
| 4 | * This code is part of GLPK (GNU Linear Programming Kit). |
| 5 | * |
| 6 | * Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, |
| 7 | * 2009, 2010 Andrew Makhorin, Department for Applied Informatics, |
| 8 | * Moscow Aviation Institute, Moscow, Russia. All rights reserved. |
| 9 | * E-mail: <[email protected]>. |
| 10 | * |
| 11 | * GLPK is free software: you can redistribute it and/or modify it |
| 12 | * under the terms of the GNU General Public License as published by |
| 13 | * the Free Software Foundation, either version 3 of the License, or |
| 14 | * (at your option) any later version. |
| 15 | * |
| 16 | * GLPK is distributed in the hope that it will be useful, but WITHOUT |
| 17 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY |
| 18 | * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public |
| 19 | * License for more details. |
| 20 | * |
| 21 | * You should have received a copy of the GNU General Public License |
| 22 | * along with GLPK. If not, see <http://www.gnu.org/licenses/>. |
| 23 | ***********************************************************************/ |
| 24 | |
| 25 | #ifndef GLPBFX_H |
| 26 | #define GLPBFX_Hcxx . . $ `external/glpk/glpbfx.h:26:9`! |
| 27 | |
| 28 | #include "glpgmp.h"cxx . . $ `<file>/external/glpk/glpgmp.h`/ |
| 29 | |
| 30 | #ifndef GLPBFX_DEFINED |
| 31 | #define GLPBFX_DEFINEDcxx . . $ `external/glpk/glpbfx.h:31:9`! |
| 32 | typedef structcxx . . $ $anonymous_type_de0ca8fa1ff61429_0# { double _opaque_bfxcxx . . $ $anonymous_type_de0ca8fa1ff61429_0#_opaque_bfx.; } BFXcxx . . $ BFX#; |
| 33 | #endif |
| 34 | |
| 35 | #define bfx_create_binvcxx . . $ `external/glpk/glpbfx.h:35:9`! _glp_bfx_create_binv |
| 36 | #define bfx_is_validcxx . . $ `external/glpk/glpbfx.h:36:9`! _glp_bfx_is_valid |
| 37 | #define bfx_invalidatecxx . . $ `external/glpk/glpbfx.h:37:9`! _glp_bfx_invalidate |
| 38 | #define bfx_factorizecxx . . $ `external/glpk/glpbfx.h:38:9`! _glp_bfx_factorize |
| 39 | #define bfx_ftrancxx . . $ `external/glpk/glpbfx.h:39:9`! _glp_bfx_ftran |
| 40 | #define bfx_btrancxx . . $ `external/glpk/glpbfx.h:40:9`! _glp_bfx_btran |
| 41 | #define bfx_updatecxx . . $ `external/glpk/glpbfx.h:41:9`! _glp_bfx_update |
| 42 | #define bfx_delete_binvcxx . . $ `external/glpk/glpbfx.h:42:9`! _glp_bfx_delete_binv |
| 43 | |
| 44 | BFXcxx . . $ BFX# *bfx_create_binvcxx . . $ `external/glpk/glpbfx.h:35:9`!(void); |
| 45 | /* create factorization of the basis matrix */ |
| 46 | |
| 47 | int bfx_is_validcxx . . $ `external/glpk/glpbfx.h:36:9`!(BFXcxx . . $ BFX# *binv); |
| 48 | /* check if factorization is valid */ |
| 49 | |
| 50 | void bfx_invalidatecxx . . $ `external/glpk/glpbfx.h:37:9`!(BFXcxx . . $ BFX# *binv); |
| 51 | /* invalidate factorization of the basis matrix */ |
| 52 | |
| 53 | int bfx_factorizecxx . . $ `external/glpk/glpbfx.h:38:9`!(BFXcxx . . $ BFX# *binv, int m, int (*col)(void *info, int j, |
| 54 | int ind[], mpq_tcxx . . $ mpq_t# val[]), void *info); |
| 55 | /* compute factorization of the basis matrix */ |
| 56 | |
| 57 | void bfx_ftrancxx . . $ `external/glpk/glpbfx.h:39:9`!(BFXcxx . . $ BFX# *binv, mpq_tcxx . . $ mpq_t# x[], int save); |
| 58 | /* perform forward transformation (FTRAN) */ |
| 59 | |
| 60 | void bfx_btrancxx . . $ `external/glpk/glpbfx.h:40:9`!(BFXcxx . . $ BFX# *binv, mpq_tcxx . . $ mpq_t# x[]); |
| 61 | /* perform backward transformation (BTRAN) */ |
| 62 | |
| 63 | int bfx_updatecxx . . $ `external/glpk/glpbfx.h:41:9`!(BFXcxx . . $ BFX# *binv, int j); |
| 64 | /* update factorization of the basis matrix */ |
| 65 | |
| 66 | void bfx_delete_binvcxx . . $ `external/glpk/glpbfx.h:42:9`!(BFXcxx . . $ BFX# *binv); |
| 67 | /* delete factorization of the basis matrix */ |
| 68 | |
| 69 | #endif |
| 70 | |
| 71 | /* eof */ |