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

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

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

revision 775 by ksteube, Mon Jul 10 04:00:08 2006 UTC revision 950 by gross, Tue Feb 6 07:01:11 2007 UTC
# Line 78  class DataAbstract { Line 78  class DataAbstract {
78    std::string    std::string
79    toString() const = 0;    toString() const = 0;
80    
81     /**
82         \brief
83         dumps the object into a netCDF file
84      */
85      ESCRIPT_DLL_API
86      virtual
87      void
88      dump(const std::string fileName) const;
89    
90    /**    /**
91       \brief       \brief
92       Return the number of data points per sample.       Return the number of data points per sample.
# Line 165  class DataAbstract { Line 174  class DataAbstract {
174    ESCRIPT_DLL_API    ESCRIPT_DLL_API
175    virtual    virtual
176    void    void
177    setRefValue(int ref,    setValueByReferenceNumber(int ref,
178                const DataArray& value);                              const DataArray& value);
179    
180    /**    /**
181       \brief       \brief
# Line 183  class DataAbstract { Line 192  class DataAbstract {
192    ESCRIPT_DLL_API    ESCRIPT_DLL_API
193    virtual    virtual
194    void    void
195    getRefValue(int ref,    getValueByReferenceNumber(int ref,
196                DataArray& value);                              DataArray& value);
197    
198    /**    /**
199       \brief       \brief
# Line 261  class DataAbstract { Line 270  class DataAbstract {
270    setSlice(const DataAbstract* value,    setSlice(const DataAbstract* value,
271             const DataArrayView::RegionType& region) = 0;             const DataArrayView::RegionType& region) = 0;
272    
   /**  
      \brief  
      Reshape the data points if they are currently rank 0.  
      Will throw an exception if the data points are not rank 0.  
      The original data point value is used for all values of the new  
      data point.  
   */  
   ESCRIPT_DLL_API  
   virtual  
   void  
   reshapeDataPoint(const ShapeType& shape) = 0;  
273    
274    /**    /**
275       \brief       \brief
# Line 333  class DataAbstract { Line 331  class DataAbstract {
331    
332    /**    /**
333       \brief       \brief
334         Copy a double value to the data point dataPointNo of sample sampleNo in this object.
335    
336         Description:
337         Copy a double value to the data point dataPointNo of sample sampleNo in this object.
338    
339         \param sampleNo Input - sample number
340         \param dataPointNo Input - data point of the sample
341         \param value Input - new values for the data point
342      */
343      ESCRIPT_DLL_API
344      virtual void
345      copyToDataPoint(const int sampleNo, const int dataPointNo, const double value);
346    
347      /**
348         \brief
349         Copy the numarray object to the data point dataPointNo of sample sampleNo in this object.
350    
351         Description:
352         Copy the numarray object to the data point dataPointNo of sample sampleNo in this object.
353    
354         \param sampleNo Input - sample number
355         \param dataPointNo Input - data point of the sample
356         \param value Input - new values for the data point
357      */
358      ESCRIPT_DLL_API
359      virtual void
360      copyToDataPoint(const int sampleNo, const int dataPointNo, const boost::python::numeric::array& value);
361    
362    
363      /**
364         \brief
365       Return the tag number associated with the given data-point number.       Return the tag number associated with the given data-point number.
366    
367       If the object cannot be referenced by tag numbers, an exception       If the object cannot be referenced by tag numbers, an exception
# Line 350  class DataAbstract { Line 379  class DataAbstract {
379       \param ev - Output - a symmetric matrix       \param ev - Output - a symmetric matrix
380    
381    */    */
382      ESCRIPT_DLL_API
383    virtual void    virtual void
384    symmetric(DataAbstract* ev);    symmetric(DataAbstract* ev);
385    
# Line 360  class DataAbstract { Line 390  class DataAbstract {
390       \param ev - Output - a nonsymmetric matrix       \param ev - Output - a nonsymmetric matrix
391    
392    */    */
393      ESCRIPT_DLL_API
394    virtual void    virtual void
395    nonsymmetric(DataAbstract* ev);    nonsymmetric(DataAbstract* ev);
396    
# Line 370  class DataAbstract { Line 401  class DataAbstract {
401       \param ev - Output - the trace of a matrix       \param ev - Output - the trace of a matrix
402    
403    */    */
404      ESCRIPT_DLL_API
405    virtual void    virtual void
406    matrixtrace(DataAbstract* ev, int axis_offset);    trace(DataAbstract* ev, int axis_offset);
407    
408    /**    /**
409       \brief       \brief
# Line 380  class DataAbstract { Line 412  class DataAbstract {
412       \param ev - Output - the transpose of a matrix       \param ev - Output - the transpose of a matrix
413    
414    */    */
415      ESCRIPT_DLL_API
416    virtual void    virtual void
417    transpose(DataAbstract* ev, int axis_offset);    transpose(DataAbstract* ev, int axis_offset);
418    
419    /**    /**
420       \brief       \brief
421         swaps components axis0 and axis1
422    
423         \param ev - Output - swapped components
424    
425      */
426      ESCRIPT_DLL_API
427      virtual void
428      swapaxes(DataAbstract* ev, int axis0, int axis1);
429      /**
430         \brief
431       solves the eigenvalue problem this*V=ev*V for the eigenvalues ev       solves the eigenvalue problem this*V=ev*V for the eigenvalues ev
432    
433       \param ev - Output - eigenvalues in increasing order at each data point       \param ev - Output - eigenvalues in increasing order at each data point

Legend:
Removed from v.775  
changed lines
  Added in v.950

  ViewVC Help
Powered by ViewVC 1.1.26