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

revision 109 by jgs, Thu Jan 27 06:21:59 2005 UTC revision 110 by jgs, Mon Feb 14 04:14:42 2005 UTC
# Line 69  class Data { Line 69  class Data {
69    
70    public:    public:
71    
72      // These typedefs allow function names to be cast to pointers
73      // to functions of the appropriate type when calling unaryOp etc.
74    typedef double (*UnaryDFunPtr)(double);    typedef double (*UnaryDFunPtr)(double);
75    typedef double (*BinaryDFunPtr)(double,double);    typedef double (*BinaryDFunPtr)(double,double);
76    
# Line 398  class Data { Line 400  class Data {
400    
401    /**    /**
402       \brief       \brief
403         Assign the given value to the data-points referenced by the given
404         reference number.
405    
406         The value supplied is a python numarray object.  The data from this numarray
407         is unpacked into a DataArray, and this is used to set the corresponding
408         data-points in the underlying Data object.
409    
410         If the underlying Data object cannot be accessed via reference numbers, an
411         exception will be thrown.
412    
413         \param ref - Input - reference number.
414         \param value - Input - value to assign to data-points associated with
415                                the given reference number.
416      */
417      void
418      setRefValue(int ref,
419                  const boost::python::numeric::array& value);
420    
421      /**
422         \brief
423         Return the values associated with the data-points referenced by the given
424         reference number.
425    
426         The value supplied is a python numarray object. The data from the corresponding
427         data-points in this Data object are packed into the given numarray object.
428    
429         If the underlying Data object cannot be accessed via reference numbers, an
430         exception will be thrown.
431    
432         \param ref - Input - reference number.
433         \param value - Output - object to receive values from data-points
434                                 associated with the given reference number.
435      */
436      void
437      getRefValue(int ref,
438                  boost::python::numeric::array& value);
439    
440      /**
441         \brief
442       Return a view into the data for the data point specified.       Return a view into the data for the data point specified.
443       NOTE: Construction of the DataArrayView is a relatively expensive       NOTE: Construction of the DataArrayView is a relatively expensive
444       operation.       operation.
# Line 690  class Data { Line 731  class Data {
731    
732    /**    /**
733      \brief      \brief
734        writes the object to a file in the VTK file format
735      */
736      void
737      saveVTK(std::string fileName) const;
738    
739      /**
740        \brief
741      Return the negation of each data point of this Data object.      Return the negation of each data point of this Data object.
742    */    */
743    Data    Data

Legend:
Removed from v.109  
changed lines
  Added in v.110

  ViewVC Help
Powered by ViewVC 1.1.26