/[escript]/trunk/escript/src/AbstractSystemMatrix.h
ViewVC logotype

Diff of /trunk/escript/src/AbstractSystemMatrix.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

trunk/esys2/escript/src/Data/AbstractSystemMatrix.h revision 100 by jgs, Wed Dec 15 03:48:48 2004 UTC trunk/escript/src/Data/AbstractSystemMatrix.h revision 155 by jgs, Wed Nov 9 02:02:19 2005 UTC
# Line 1  Line 1 
1    // $Id$
2  /*  /*
3   ******************************************************************************   ******************************************************************************
4   *                                                                            *   *                                                                            *
# Line 66  class AbstractSystemMatrix { Line 67  class AbstractSystemMatrix {
67      \brief      \brief
68      matrix*vector multiplication      matrix*vector multiplication
69    */    */
70    Data vectorMultiply(const Data& right) const;    Data vectorMultiply(Data& right) const;
71    
72    /**    /**
73      \brief      \brief
# Line 122  class AbstractSystemMatrix { Line 123  class AbstractSystemMatrix {
123       \brief       \brief
124       returns the solution u of the linear system this*u=in       returns the solution u of the linear system this*u=in
125    */    */
126    Data solve(const Data& in,const boost::python::dict& options) const;    Data solve(Data& in,const boost::python::dict& options) const;
127    
128      /**
129         \brief writes the matrix to a file using the Matrix Market file format
130      */
131      virtual void saveMM(const std::string& fileName) const;
132    
133      /**
134         \brief writes the matrix to a file using the Harwell-Boeing file format
135      */
136      virtual void saveHB(const std::string& fileName) const;
137    
138      /**
139         \brief resets the matrix entries
140      */
141      virtual void resetValues() const;
142    
143   protected:   protected:
144    
# Line 132  class AbstractSystemMatrix { Line 148  class AbstractSystemMatrix {
148       \brief       \brief
149       solves the linear system this*out=in       solves the linear system this*out=in
150    */    */
151    virtual void setToSolution(Data& out,const Data& in,const boost::python::dict& options) const;    virtual void setToSolution(Data& out,Data& in,const boost::python::dict& options) const;
152    
153    /**    /**
154       \brief       \brief
155       performs y+=this*x       performs y+=this*x
156    */    */
157    virtual void ypAx(Data& y,const Data& x) const;    virtual void ypAx(Data& y,Data& x) const;
158    
159    int m_empty;    int m_empty;
160    int m_column_blocksize;    int m_column_blocksize;
# Line 148  class AbstractSystemMatrix { Line 164  class AbstractSystemMatrix {
164    
165  };  };
166    
167  Data operator*(const AbstractSystemMatrix& left, const Data& right) ;  Data operator*(const AbstractSystemMatrix& left,const Data& right) ;
168    
169    
170    

Legend:
Removed from v.100  
changed lines
  Added in v.155

  ViewVC Help
Powered by ViewVC 1.1.26