/[escript]/branches/intelc_win32/escript/src/DataConstant.h
ViewVC logotype

Diff of /branches/intelc_win32/escript/src/DataConstant.h

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

trunk/escript/src/DataConstant.h revision 734 by elspeth, Wed Mar 22 02:12:00 2006 UTC branches/intelc_win32/escript/src/DataConstant.h revision 742 by woo409, Sat Jun 24 11:27:16 2006 UTC
# Line 13  Line 13 
13    
14  #if !defined escript_DataConstant_20040323_H  #if !defined escript_DataConstant_20040323_H
15  #define escript_DataConstant_20040323_H  #define escript_DataConstant_20040323_H
16    #include "system_dep.h"
17    
18  #include "DataAbstract.h"  #include "DataAbstract.h"
19  #include "DataArrayView.h"  #include "DataArrayView.h"
# Line 44  class DataConstant : public DataAbstract Line 45  class DataConstant : public DataAbstract
45       \param value - Input - Data value for a single point.       \param value - Input - Data value for a single point.
46       \param what - Input - A description of what this data object represents.       \param what - Input - A description of what this data object represents.
47    */    */
48      ESCRIPT_DLL_API
49    DataConstant(const boost::python::numeric::array& value,    DataConstant(const boost::python::numeric::array& value,
50                 const FunctionSpace& what);                 const FunctionSpace& what);
51    
# Line 51  class DataConstant : public DataAbstract Line 53  class DataConstant : public DataAbstract
53       \brief       \brief
54       Copy constructor. Performs a deep copy.       Copy constructor. Performs a deep copy.
55    */    */
56      ESCRIPT_DLL_API
57    DataConstant(const DataConstant& other);    DataConstant(const DataConstant& other);
58    
59    /**    /**
# Line 62  class DataConstant : public DataAbstract Line 65  class DataConstant : public DataAbstract
65       \param value - Input - Data value for a single point.       \param value - Input - Data value for a single point.
66       \param what - Input - A description of what this data object represents.       \param what - Input - A description of what this data object represents.
67    */    */
68      ESCRIPT_DLL_API
69    DataConstant(const DataArrayView& value,    DataConstant(const DataArrayView& value,
70                 const FunctionSpace& what);                 const FunctionSpace& what);
71    
# Line 74  class DataConstant : public DataAbstract Line 78  class DataConstant : public DataAbstract
78       \param other - Input - Data object to copy from.       \param other - Input - Data object to copy from.
79       \param region - Input - region to copy.       \param region - Input - region to copy.
80    */    */
81      ESCRIPT_DLL_API
82    DataConstant(const DataConstant& other,    DataConstant(const DataConstant& other,
83                 const DataArrayView::RegionType& region);                 const DataArrayView::RegionType& region);
84    
# Line 87  class DataConstant : public DataAbstract Line 92  class DataConstant : public DataAbstract
92       \param shape - Input - the shape of each data-point.       \param shape - Input - the shape of each data-point.
93       \param data - the data values for each data-point.       \param data - the data values for each data-point.
94    */    */
95      ESCRIPT_DLL_API
96    DataConstant(const FunctionSpace& what,    DataConstant(const FunctionSpace& what,
97                 const DataArrayView::ShapeType &shape,                 const DataArrayView::ShapeType &shape,
98                 const DataArrayView::ValueType &data);                 const DataArrayView::ValueType &data);
# Line 95  class DataConstant : public DataAbstract Line 101  class DataConstant : public DataAbstract
101       \brief       \brief
102       Write the data as a string.       Write the data as a string.
103    */    */
104      ESCRIPT_DLL_API
105    std::string    std::string
106    toString() const;    toString() const;
107    
# Line 107  class DataConstant : public DataAbstract Line 114  class DataConstant : public DataAbstract
114       \param sampleNo - Input - sample number.       \param sampleNo - Input - sample number.
115       \param dataPointNo - Input - data point number for the sample.       \param dataPointNo - Input - data point number for the sample.
116     */     */
117      ESCRIPT_DLL_API
118    virtual    virtual
119    DataArrayView::ValueType::size_type    DataArrayView::ValueType::size_type
120    getPointOffset(int sampleNo,    getPointOffset(int sampleNo,
# Line 118  class DataConstant : public DataAbstract Line 126  class DataConstant : public DataAbstract
126       \param sampleNo - Input - sample number.       \param sampleNo - Input - sample number.
127       \param dataPointNo - Input - data point number for the sample.       \param dataPointNo - Input - data point number for the sample.
128    */    */
129      ESCRIPT_DLL_API
130    virtual    virtual
131    DataArrayView    DataArrayView
132    getDataPoint(int sampleNo,    getDataPoint(int sampleNo,
# Line 127  class DataConstant : public DataAbstract Line 136  class DataConstant : public DataAbstract
136       \brief       \brief
137       Return the number of doubles stored for the Data object.       Return the number of doubles stored for the Data object.
138    */    */
139      ESCRIPT_DLL_API
140    virtual    virtual
141    DataArrayView::ValueType::size_type    DataArrayView::ValueType::size_type
142    getLength() const;    getLength() const;
# Line 138  class DataConstant : public DataAbstract Line 148  class DataConstant : public DataAbstract
148       The caller is reponsible for managing the object created.       The caller is reponsible for managing the object created.
149       \param region - Input - region to slice from this object.       \param region - Input - region to slice from this object.
150    */    */
151      ESCRIPT_DLL_API
152    virtual    virtual
153    DataAbstract*    DataAbstract*
154    getSlice(const DataArrayView::RegionType& region) const;    getSlice(const DataArrayView::RegionType& region) const;
# Line 148  class DataConstant : public DataAbstract Line 159  class DataConstant : public DataAbstract
159       \param value - Input - Data object to copy from.       \param value - Input - Data object to copy from.
160       \param region - Input - Region to copy.       \param region - Input - Region to copy.
161    */    */
162      ESCRIPT_DLL_API
163    virtual    virtual
164    void    void
165    setSlice(const DataAbstract* value,    setSlice(const DataAbstract* value,
# Line 159  class DataConstant : public DataAbstract Line 171  class DataConstant : public DataAbstract
171       The original data point value is used for all values of the new       The original data point value is used for all values of the new
172       data point.       data point.
173    */    */
174      ESCRIPT_DLL_API
175    void    void
176    reshapeDataPoint(const DataArrayView::ShapeType& shape);    reshapeDataPoint(const DataArrayView::ShapeType& shape);
177    
# Line 170  class DataConstant : public DataAbstract Line 183  class DataConstant : public DataAbstract
183    
184      The return value indicates success (0) or otherwise (1).      The return value indicates success (0) or otherwise (1).
185    */    */
186      ESCRIPT_DLL_API
187    int    int
188    archiveData(std::ofstream& archiveFile,    archiveData(std::ofstream& archiveFile,
189                const DataArrayView::ValueType::size_type noValues) const;                const DataArrayView::ValueType::size_type noValues) const;
# Line 181  class DataConstant : public DataAbstract Line 195  class DataConstant : public DataAbstract
195    
196      The return value indicates success (0) or otherwise (1).      The return value indicates success (0) or otherwise (1).
197    */    */
198      ESCRIPT_DLL_API
199    int    int
200    extractData(std::ifstream& archiveFile,    extractData(std::ifstream& archiveFile,
201                const DataArrayView::ValueType::size_type noValues);                const DataArrayView::ValueType::size_type noValues);
# Line 192  class DataConstant : public DataAbstract Line 207  class DataConstant : public DataAbstract
207       \param ev - Output - eigenvalues in increasing order at each data point       \param ev - Output - eigenvalues in increasing order at each data point
208    
209    */    */
210      ESCRIPT_DLL_API
211    virtual void    virtual void
212    eigenvalues(DataAbstract* ev);    eigenvalues(DataAbstract* ev);
213    
# Line 206  class DataConstant : public DataAbstract Line 222  class DataConstant : public DataAbstract
222    
223    */    */
224    
225      ESCRIPT_DLL_API
226    virtual void    virtual void
227    eigenvalues_and_eigenvectors(DataAbstract* ev,DataAbstract* V,const double tol=1.e-13);    eigenvalues_and_eigenvectors(DataAbstract* ev,DataAbstract* V,const double tol=1.e-13);
228    

Legend:
Removed from v.734  
changed lines
  Added in v.742

  ViewVC Help
Powered by ViewVC 1.1.26