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

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

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

trunk/esys2/escript/src/Data/Data.h revision 147 by jgs, Fri Aug 12 01:45:47 2005 UTC trunk/escript/src/Data/Data.h revision 155 by jgs, Wed Nov 9 02:02:19 2005 UTC
# Line 44  extern "C" { Line 44  extern "C" {
44  namespace escript {  namespace escript {
45    
46  //  //
47  // Forward declaration for various implimentations of Data.  // Forward declaration for various implementations of Data.
48  class DataEmpty;  class DataEmpty;
49  class DataConstant;  class DataConstant;
50  class DataTagged;  class DataTagged;
# Line 206  class Data { Line 206  class Data {
206         const boost::python::tuple& shape=boost::python::make_tuple(),         const boost::python::tuple& shape=boost::python::make_tuple(),
207         const FunctionSpace& what=FunctionSpace(),         const FunctionSpace& what=FunctionSpace(),
208         bool expanded=false);         bool expanded=false);
209      /**
210         \brief
211         Destructor
212      */
213      ~Data();
214    
215    /**    /**
216       \brief       \brief
# Line 226  class Data { Line 231  class Data {
231    convertToNumArray();    convertToNumArray();
232    
233    /**    /**
      \brief fills the expanded Data object from values of a  python numarray object.  
   
   */  
   void  
   fillFromNumArray(const boost::python::numeric::array);  
   /**  
234       \brief       \brief
235       Return the values of all data-points for the given sample as a single python numarray object.       Return the values of all data-points for the given sample as a single python numarray object.
236    */    */
# Line 248  class Data { Line 247  class Data {
247    
248    /**    /**
249       \brief       \brief
250         Fills the expanded Data object from values of a python numarray object.
251      */
252      void
253      fillFromNumArray(const boost::python::numeric::array);
254    
255      /**
256         \brief
257         Return the tag number associated with the given data-point.
258    
259         The data-point number here corresponds to the data-point number in the
260         numarray returned by convertToNumArray.
261      */
262      int
263      getTagNumber(int dpno);
264    
265      /**
266         \brief
267       Return the C wrapper for the Data object.       Return the C wrapper for the Data object.
268    */    */
269    escriptDataC    escriptDataC
# Line 684  class Data { Line 700  class Data {
700    const boost::python::tuple    const boost::python::tuple
701    mindp() const;    mindp() const;
702    
703      void
704      calc_mindp(int& SampleNo,
705                 int& DataPointNo) const;
706    
707    /**    /**
708       \brief       \brief
709       Return the length of each data point of this Data object.       Return the length of each data point of this Data object.
# Line 746  class Data { Line 766  class Data {
766    
767    /**    /**
768       \brief       \brief
769         Return the asin of each data point of this Data object.
770         *
771      */
772      Data
773      asin() const;
774    
775      /**
776         \brief
777         Return the acos of each data point of this Data object.
778         *
779      */
780      Data
781      acos() const;
782    
783      /**
784         \brief
785         Return the atan of each data point of this Data object.
786         *
787      */
788      Data
789      atan() const;
790    
791      /**
792         \brief
793         Return the sinh of each data point of this Data object.
794         *
795      */
796      Data
797      sinh() const;
798    
799      /**
800         \brief
801         Return the cosh of each data point of this Data object.
802         *
803      */
804      Data
805      cosh() const;
806    
807      /**
808         \brief
809         Return the tanh of each data point of this Data object.
810         *
811      */
812      Data
813      tanh() const;
814    
815      /**
816         \brief
817         Return the asinh of each data point of this Data object.
818         *
819      */
820      Data
821      asinh() const;
822    
823      /**
824         \brief
825         Return the acosh of each data point of this Data object.
826         *
827      */
828      Data
829      acosh() const;
830    
831      /**
832         \brief
833         Return the atanh of each data point of this Data object.
834         *
835      */
836      Data
837      atanh() const;
838    
839      /**
840         \brief
841       Return the log to base 10 of each data point of this Data object.       Return the log to base 10 of each data point of this Data object.
842       *       *
843    */    */

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

  ViewVC Help
Powered by ViewVC 1.1.26