00001
00002
00003
00004
00005
00006
00007
00008 #ifndef PETSCMPSREADER
00009 #define PETSCMPSREADER
00010
00011 #include "cMpsReader.h"
00012 #include "petscmat.h"
00013
00014 #ifdef __cplusplus
00015 extern "C" {
00016 #endif
00017 void PetscScatterDoubleStar ( double dc[], Vec c, int * ierr );
00018 void PetscScatterBooleanStar ( char cc[], Vec c, int * ierr );
00019 void PetscSymMatrixFromTriple( int m,
00020 int irowQ[], int nnzQ, int jcolQ[],
00021 double dQ[], Mat Q, int * ierr );
00022 void PetscGenMatrixFromTriple( int m, int n,
00023 int irowA[], int nnzA, int jcolA[],
00024 double dA[], Mat A, int * ierr );
00025 void CMpsReaderReadPetscQpGen( void * reader,
00026 Vec templateXVec,
00027 Vec c, Mat Q,
00028 Vec xlow, Vec ixlow,
00029 Vec xupp, Vec ixupp,
00030 Vec templateYVec,
00031 Mat A, Vec b,
00032 Vec templateZVec,
00033 Mat C,
00034 Vec clow, Vec iclow,
00035 Vec cupp, Vec icupp,
00036 int * ierr );
00037
00038 #ifdef __cplusplus
00039 };
00040 #endif
00041
00042 #endif