PlayaRowAccessibleOp.hpp
Go to the documentation of this file.
00001 /* @HEADER@ */
00002 //   
00003 /* @HEADER@ */
00004 
00005 #ifndef PLAYA_ROWACCESSIBLEOP_HPP
00006 #define PLAYA_ROWACCESSIBLEOP_HPP
00007 
00008 #include "PlayaDefs.hpp"
00009 #include "Teuchos_Array.hpp"
00010 
00011 namespace Playa
00012 {
00013   /** 
00014    * Base interface for operators for which a row may be extracted.
00015    */
00016   template <class Scalar>
00017   class RowAccessibleOp 
00018   {
00019   public:
00020     /** Virtual dtor */
00021     virtual ~RowAccessibleOp(){;}
00022 
00023     /** 
00024      * Get the non-zero values in the row-th row.
00025      * @param row the index of the row
00026      * @param indices the column indices of the non-zero values in row row
00027      * @param values the non-zero values corresponding to the indices in indices
00028      */
00029     virtual void getRow(const int& row, 
00030       Teuchos::Array<int>& indices, 
00031       Teuchos::Array<Scalar>& values) const = 0;
00032 
00033   private:
00034     
00035     
00036   };
00037 }
00038 
00039 #endif

Site Contact