src/matrixmarket/mtxreader.h

Go to the documentation of this file.
00001 /***************************************************************************
00002                           mtxreader.h  -  description
00003                              -------------------
00004     begin                : Tue Dec 2 2003
00005     copyright            : (C) 2003 by Roman Geus
00006     email                : roman.geus@psi.ch
00007 ***************************************************************************/
00008 
00009 /***************************************************************************
00010  *                                                                         *
00011  *   This program is free software; you can redistribute it and/or modify  *
00012  *   it under the terms of the GNU General Public License as published by  *
00013  *   the Free Software Foundation; either version 2 of the License, or     *
00014  *   (at your option) any later version.                                   *
00015  *                                                                         *
00016  ***************************************************************************/
00017 
00018 #ifndef MTXREADER_H
00019 #define MTXREADER_H
00020 
00021 #include <iostream>
00022 #include "basemtxreader.h"
00023 
00024 class Epetra_Map;
00025 class Epetra_CrsMatrix;
00026 
00032 class MtxReader : public BaseMtxReader {
00033 public:
00034     MtxReader(string filename, const Epetra_Map& row_map,
00035               const Epetra_Map& domain_map, const Epetra_Map& range_map);
00036 
00037     MtxReader(istream& istr, const Epetra_Map& row_map,
00038               const Epetra_Map& domain_map, const Epetra_Map& range_map);
00039 
00040     ~MtxReader();
00041 
00044     Epetra_CrsMatrix* read();
00045 
00046 private:
00047     const Epetra_Map& _row_map;
00048     const Epetra_Map& _domain_map;
00049     const Epetra_Map& _range_map;
00050 };
00051 
00052 #endif

Generated on Fri Oct 26 13:35:12 2007 for FEMAXX (Finite Element Maxwell Eigensolver) by  doxygen 1.4.7