1 /*
2  *_________________________________________________________________________*
3  *      POEMS: PARALLELIZABLE OPEN SOURCE EFFICIENT MULTIBODY SOFTWARE     *
4  *      DESCRIPTION: SEE READ-ME                                           *
5  *      FILE NAME: virtualrowmatrix.h                                      *
6  *      AUTHORS: See Author List                                           *
7  *      GRANTS: See Grants List                                            *
8  *      COPYRIGHT: (C) 2005 by Authors as listed in Author's List          *
9  *      LICENSE: Please see License Agreement                              *
10  *      DOWNLOAD: Free at www.rpi.edu/~anderk5                             *
11  *      ADMINISTRATOR: Prof. Kurt Anderson                                 *
12  *                     Computational Dynamics Lab                          *
13  *                     Rensselaer Polytechnic Institute                    *
14  *                     110 8th St. Troy NY 12180                           *
15  *      CONTACT:        anderk5@rpi.edu                                    *
16  *_________________________________________________________________________*/
17 
18 
19 #ifndef VIRTUALROWMATRIX_H
20 #define VIRTUALROWMATRIX_H
21 
22 #include "virtualmatrix.h"
23 
24 class VirtualRowMatrix : public VirtualMatrix  {
25 public:
26   VirtualRowMatrix();
27   ~VirtualRowMatrix();
28   double& operator_2int (int i, int j); // array access
29   double Get_2int(int i, int j) const;
30   void Set_2int(int i, int j, double value);
31   double BasicGet_2int(int i, int j) const;
32   void BasicSet_2int(int i, int j, double value);
33   void BasicIncrement_2int(int i, int j, double value);
34 
35   virtual double& operator_1int (int i) = 0; // array access
36   virtual double Get_1int(int i) const = 0;
37   virtual void Set_1int(int i, double value) = 0;
38   virtual double BasicGet_1int(int i) const = 0;
39   virtual void BasicSet_1int(int i, double value) = 0;
40   virtual void BasicIncrement_1int(int i, double value) = 0;
41 };
42 
43 #endif
44