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

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

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

trunk/esys2/escript/src/Data/DataExpanded.h revision 123 by jgs, Fri Jul 8 04:08:13 2005 UTC trunk/escript/src/DataExpanded.h revision 580 by gross, Wed Mar 8 05:45:51 2006 UTC
# Line 12  Line 12 
12   *                                                                            *   *                                                                            *
13   ******************************************************************************   ******************************************************************************
14  */  */
15                                                                              
16  #if !defined escript_DataExpanded_20040323_H  #if !defined escript_DataExpanded_20040323_H
17  #define escript_DataExpanded_20040323_H  #define escript_DataExpanded_20040323_H
18    
# Line 20  Line 20 
20  #include "DataBlocks2D.h"  #include "DataBlocks2D.h"
21  #include "DataArrayView.h"  #include "DataArrayView.h"
22    
 #include <boost/scoped_ptr.hpp>  
23  #include <boost/python/numeric.hpp>  #include <boost/python/numeric.hpp>
24    
25  namespace escript {  namespace escript {
26    
27  //  //
28  // Forward declarations of other Data types.  // Forward declarations of other Data types.
 class DataEmpty;  
29  class DataConstant;  class DataConstant;
30  class DataTagged;  class DataTagged;
31    
# Line 283  class DataExpanded : public DataAbstract Line 281  class DataExpanded : public DataAbstract
281    extractData(std::ifstream& archiveFile,    extractData(std::ifstream& archiveFile,
282                const DataArrayView::ValueType::size_type noValues);                const DataArrayView::ValueType::size_type noValues);
283    
284      /**
285         \brief
286         solves the eigenvalue problem this*V=ev*V for the eigenvalues ev
287    
288         \param ev - Output - eigenvalues in increasing order at each data point
289    
290      */
291      virtual void
292      eigenvalues(DataAbstract* ev);
293    
294      /**
295         \brief
296         solves the eigenvalue problem this*V=ev*V for the eigenvalues ev and eigenvectors V
297    
298         \param ev - Output - eigenvalues in increasing order at each data point
299         \param V - Output - corresponding eigenvectors. They are normalized such that their length is one
300                             and the first nonzero component is positive.
301         \param tol - Input - eigenvalue with relative distance tol are treated as equal.
302    
303      */
304    
305      virtual void
306      eigenvalues_and_eigenvectors(DataAbstract* ev,DataAbstract* V,const double tol=1.e-13);
307    
308    
309   protected:   protected:
310    
311   private:   private:
# Line 309  class DataExpanded : public DataAbstract Line 332  class DataExpanded : public DataAbstract
332    
333    /**    /**
334       \brief       \brief
335       Copy the given data point to all data points in this object.       Copy the given data point value to all data points in this object.
336    
337       Description:       Description:
338       Copy the given data point to all data points in this object.       Copy the given data point to all data points in this object.
# Line 319  class DataExpanded : public DataAbstract Line 342  class DataExpanded : public DataAbstract
342    void    void
343    copy(const DataArrayView& value);    copy(const DataArrayView& value);
344    
345      /**
346         \brief
347         Copy the given data point value given a numarray object to all data points in this object.
348    
349         Description:
350         Copy the given data point value given a numarray object to all data points in this object.
351    
352         \param value Input - A single data point value.
353      */
354    void    void
355    copy(const boost::python::numeric::array& value);    copy(const boost::python::numeric::array& value);
356    
357      /**
358         \brief
359         Copy the numarray object to the data points in this object.
360    
361         Description:
362         Copy the numarray object to the data points in this object.
363    
364         \param value Input - new values for the data points
365      */
366      void
367      copyAll(const boost::python::numeric::array& value);
368    
369    //    //
370    // The main data storage array, a 2D array of data blocks.    // The main data storage array, a 2D array of data blocks.
371    // noSamples * noDataPointsPerSample    // noSamples * noDataPointsPerSample

Legend:
Removed from v.123  
changed lines
  Added in v.580

  ViewVC Help
Powered by ViewVC 1.1.26