/[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

revision 2005 by jfenwick, Mon Nov 10 01:21:39 2008 UTC revision 2742 by jfenwick, Thu Nov 12 06:03:37 2009 UTC
# Line 1  Line 1 
1    
2  /*******************************************************  /*******************************************************
3  *  *
4  * Copyright (c) 2003-2008 by University of Queensland  * Copyright (c) 2003-2009 by University of Queensland
5  * Earth Systems Science Computational Center (ESSCC)  * Earth Systems Science Computational Center (ESSCC)
6  * http://www.uq.edu.au/esscc  * http://www.uq.edu.au/esscc
7  *  *
# Line 19  Line 19 
19  #include "DataReady.h"  #include "DataReady.h"
20  #include "DataBlocks2D.h"  #include "DataBlocks2D.h"
21    
 #include <boost/python/numeric.hpp>  
   
22  namespace escript {  namespace escript {
23    
24  //  //
# Line 57  typedef DataReady parent; Line 55  typedef DataReady parent;
55       this data object, where the number of data points is defined by       this data object, where the number of data points is defined by
56       the given function space.       the given function space.
57    
58       \param value - Input - A single data value.       \param value - Input - The value of a single data point.
59       \param what - Input - A description of what this data represents.       \param what - Input - A description of what this data represents.
60    */    */
61    ESCRIPT_DLL_API    ESCRIPT_DLL_API
62    DataExpanded(const boost::python::numeric::array& value,    DataExpanded(const WrappedArray& value,
63                 const FunctionSpace& what);                 const FunctionSpace& what);
64    
65    /**    /**
# Line 132  TODO Note that this constructor will als Line 130  TODO Note that this constructor will als
130      return true;      return true;
131    };    };
132    
133      ESCRIPT_DLL_API
134      bool
135      actsExpanded() const
136      {
137        return true;
138      }
139    
140    /**    /**
141       \brief       \brief
142       Return a textual representation of the data.       Return a textual representation of the data.
# Line 159  TODO Note that this constructor will als Line 164  TODO Note that this constructor will als
164    void    void
165    dump(const std::string fileName) const;    dump(const std::string fileName) const;
166    
167    
168      /**
169        \brief invert square matricies
170        \param out - Where to store the results
171      */
172      ESCRIPT_DLL_API
173      virtual void
174      matrixInverse(DataAbstract* out) const;
175    
176   /**   /**
177       \brief       \brief
178      sets all values to zero      sets all values to zero
# Line 196  TODO Note that this constructor will als Line 210  TODO Note that this constructor will als
210    
211    ESCRIPT_DLL_API    ESCRIPT_DLL_API
212    DataTypes::ValueType&    DataTypes::ValueType&
213    getVector();    getVectorRW();
214    
215    ESCRIPT_DLL_API    ESCRIPT_DLL_API
216    const DataTypes::ValueType&    const DataTypes::ValueType&
217    getVector() const;    getVectorRO() const;
218    
219    
220    
221    /**    /**
# Line 246  TODO Note that this constructor will als Line 261  TODO Note that this constructor will als
261    
262       \param tagKey - Input - Integer key.       \param tagKey - Input - Integer key.
263       \param pointshape - Input - The shape of the value parameter       \param pointshape - Input - The shape of the value parameter
264       \param value - Input - .       \param value - Input -
265         \param dataOffset - Input - where in the value parameter to start reading the data point value.
266    */    */
267    void      void  
268    setTaggedValue(int tagKey,    setTaggedValue(int tagKey,
# Line 283  TODO Note that this constructor will als Line 299  TODO Note that this constructor will als
299       Computes the trace of a matrix       Computes the trace of a matrix
300    
301       \param ev - Output - trace of your matrix       \param ev - Output - trace of your matrix
302         \param axis_offset -
303    
304    */    */
305    ESCRIPT_DLL_API    ESCRIPT_DLL_API
# Line 294  TODO Note that this constructor will als Line 311  TODO Note that this constructor will als
311       Transpose each data point of this Data object around the given axis.       Transpose each data point of this Data object around the given axis.
312    
313       \param ev - Output - transpose of your matrix       \param ev - Output - transpose of your matrix
314         \param axis_offset -
315    */    */
316    ESCRIPT_DLL_API    ESCRIPT_DLL_API
317    virtual void    virtual void
# Line 305  TODO Note that this constructor will als Line 322  TODO Note that this constructor will als
322       swaps components axis0 and axis1       swaps components axis0 and axis1
323    
324       \param ev - Output - swapped components       \param ev - Output - swapped components
325         \param axis0
326         \param axis1
327    */    */
328    ESCRIPT_DLL_API    ESCRIPT_DLL_API
329    virtual void    virtual void
# Line 388  TODO Note that this constructor will als Line 406  TODO Note that this constructor will als
406    
407    /**    /**
408       \brief       \brief
409       Copy the given data point value given a numarray object to all data points in this object.       Copy the given data point value to all data points in this object.
   
      Description:  
      Copy the given data point value given a numarray object to all data points in this object.  
410    
411       \param value Input - A single data point value.       \param value Input - A single data point value.
412    */    */
   void  
   copy(const boost::python::numeric::array& value);  
   
   /**  
      \brief  
      Copy the numarray object to the data points in this object.  
   
      Description:  
      Copy the numarray object to the data points in this object.  
413    
      \param value Input - new values for the data points  
   */  
414    void    void
415    copyAll(const boost::python::numeric::array& value);    copy(const WrappedArray& value);
416    
417    
418    /**    /**
419       \brief       \brief
# Line 428  TODO Note that this constructor will als Line 433  TODO Note that this constructor will als
433    
434    /**    /**
435       \brief       \brief
436       Copy the numarray object to the data point dataPointNo of sample sampleNo in this object.       Copy the value to the data point dataPointNo of sample sampleNo in this object.
   
      Description:  
      Copy the numarray object to the data point dataPointNo of sample sampleNo in this object.  
437    
438       \param sampleNo Input - sample number       \param sampleNo Input - sample number
439       \param dataPointNo Input - data point of the sample       \param dataPointNo Input - data point of the sample
440       \param value Input - new values for the data point       \param value Input - new values for the data point
441    */    */
442    void    ESCRIPT_DLL_API
443    copyToDataPoint(const int sampleNo, const int dataPointNo, const boost::python::numeric::array& value);    virtual void
444      copyToDataPoint(const int sampleNo, const int dataPointNo, const WrappedArray& value);
445    
446    //    //
447    // The main data storage array, a 2D array of data blocks.    // The main data storage array, a 2D array of data blocks.

Legend:
Removed from v.2005  
changed lines
  Added in v.2742

  ViewVC Help
Powered by ViewVC 1.1.26