Epetra_OskiPermutation.h

Go to the documentation of this file.
00001 
00002 //@HEADER
00003 /*
00004 ************************************************************************
00005 
00006               Epetra: Linear Algebra Services Package 
00007                 Copyright (2001) Sandia Corporation
00008 
00009 Under terms of Contract DE-AC04-94AL85000, there is a non-exclusive
00010 license for use of this work by or on behalf of the U.S. Government.
00011 
00012 This library is free software; you can redistribute it and/or modify
00013 it under the terms of the GNU Lesser General Public License as
00014 published by the Free Software Foundation; either version 2.1 of the
00015 License, or (at your option) any later version.
00016  
00017 This library is distributed in the hope that it will be useful, but
00018 WITHOUT ANY WARRANTY; without even the implied warranty of
00019 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00020 Lesser General Public License for more details.
00021  
00022 You should have received a copy of the GNU Lesser General Public
00023 License along with this library; if not, write to the Free Software
00024 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
00025 USA
00026 Questions? Contact Michael A. Heroux (maherou@sandia.gov) 
00027 
00028 ************************************************************************
00029 */
00030 //@HEADER
00031 
00032 // Author: Ian Karlin ikarlin@sandia.gov 05-28-2008
00033 
00034 #ifndef EPETRA_OSKIPERMUTATION_H
00035 #define EPETRA_OSKIPERMUTATION_H
00036 
00037 #include "Epetra_OskiMatrix.h"
00038 #include "Epetra_OskiMultiVector.h"
00039 extern "C" {
00040 #include "oski/oski.h"
00041 }
00042 
00043 class Epetra_OskiMultiVector;
00044 class Epetra_OskiMatrix;
00045 
00047 
00052 //=========================================================================
00053 class Epetra_OskiPermutation{
00054 
00055   public:
00056 
00058 
00059    
00061    Epetra_OskiPermutation();
00062    
00064    Epetra_OskiPermutation (const Epetra_OskiPermutation& Source);
00066 
00070    Epetra_OskiPermutation(bool RowPerm, const Epetra_OskiMatrix& Source);
00071 
00073    virtual ~Epetra_OskiPermutation();
00075    
00077 
00078 
00079    void ReplacePermutation(const oski_perm_t& InPerm);
00081 
00082 
00084 
00085 
00086 
00094    int PermuteVector(const bool TransA, Epetra_OskiMultiVector& Vector) const;
00096 
00097  protected:
00098 
00099  private:
00100 
00101  const oski_perm_t* Permutation_; //this might need to be const and a pointer
00102 
00103 };
00104 
00105 #endif /* EPETRA_OSKIPERMUTATION_H */

Generated on Wed May 12 21:41:05 2010 for Epetra Package Browser (Single Doxygen Collection) by  doxygen 1.4.7