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

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

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

revision 757 by woo409, Mon Jun 26 13:12:56 2006 UTC revision 983 by gross, Tue Feb 20 02:49:08 2007 UTC
# Line 171  class DataTagged : public DataAbstract { Line 171  class DataTagged : public DataAbstract {
171    virtual    virtual
172    std::string    std::string
173    toString() const;    toString() const;
174     /**
175         \brief
176         dumps the object into a netCDF file
177      */
178      ESCRIPT_DLL_API
179      virtual
180      void
181      dump(const std::string fileName) const;
182    
183    /**    /**
184       \brief       \brief
# Line 306  class DataTagged : public DataAbstract { Line 314  class DataTagged : public DataAbstract {
314                 int dataPointNo);                 int dataPointNo);
315    
316    /**    /**
317         \brief
318         getData
319    
320         Description:
321         Return pointer to the data
322        T
323      */
324      ESCRIPT_DLL_API
325      const DataArrayView::ValueType::ElementType*
326      DataTagged::getData() const;
327    
328      /**
329       \brief       \brief
330       getTagLookup       getTagLookup
331    
# Line 410  class DataTagged : public DataAbstract { Line 430  class DataTagged : public DataAbstract {
430    
431    /**    /**
432       \brief       \brief
      reshapeDataPoint  
   
      Description:  
      Reshape each data-point in this object to the given shape, only  
      if current data-points are scalars. An exception is thrown if  
      the current data-points have rank other than 0.  
      The original values of the data-points are used for all values  
      of the new data-points.  
     T  
   */  
   ESCRIPT_DLL_API  
   void  
   reshapeDataPoint(const DataArrayView::ShapeType& shape);  
   
   /**  
      \brief  
433       Archive the underlying data values to the file referenced       Archive the underlying data values to the file referenced
434       by ofstream. A count of the number of values expected to be written       by ofstream. A count of the number of values expected to be written
435       is provided as a cross-check.       is provided as a cross-check.
# Line 451  class DataTagged : public DataAbstract { Line 455  class DataTagged : public DataAbstract {
455    
456    /**    /**
457       \brief       \brief
458         Computes a symmetric matrix (A + AT) / 2
459    
460         \param ev - Output - symmetric matrix
461    
462      */
463      ESCRIPT_DLL_API
464      virtual void
465      symmetric(DataAbstract* ev);
466    
467      /**
468         \brief
469         Computes a nonsymmetric matrix (A - AT) / 2
470    
471         \param ev - Output - nonsymmetric matrix
472    
473      */
474      ESCRIPT_DLL_API
475      virtual void
476      nonsymmetric(DataAbstract* ev);
477    
478      /**
479         \brief
480         Computes the trace of a matrix
481    
482         \param ev - Output - the trace of a matrix
483    
484      */
485      ESCRIPT_DLL_API
486      virtual void
487      trace(DataAbstract* ev, int axis_offset);
488    
489      /**
490         \brief
491         swaps components axis0 and axis1
492    
493         \param ev - Output - swapped components
494    
495      */
496      ESCRIPT_DLL_API
497      virtual void
498      swapaxes(DataAbstract* ev, int axis0, int axis1);
499    
500      /**
501         \brief
502         Transpose each data point of this Data object around the given axis.
503    
504         \param ev - Output - the transpose of a matrix
505    
506      */
507      ESCRIPT_DLL_API
508      virtual void
509      transpose(DataAbstract* ev, int axis_offset);
510    
511      /**
512         \brief
513       solves the eigenvalue problem this*V=ev*V for the eigenvalues ev       solves the eigenvalue problem this*V=ev*V for the eigenvalues ev
514    
515       \param ev - Output - eigenvalues in increasing order at each data point       \param ev - Output - eigenvalues in increasing order at each data point
# Line 519  DataTagged::getDefaultValue() const Line 578  DataTagged::getDefaultValue() const
578  }  }
579    
580  inline  inline
581    const DataArrayView::ValueType::ElementType*
582    DataTagged::getData() const
583    {
584       return &(m_data[0]);
585    }
586    
587    inline
588  const DataTagged::DataMapType&  const DataTagged::DataMapType&
589  DataTagged::getTagLookup() const  DataTagged::getTagLookup() const
590  {  {

Legend:
Removed from v.757  
changed lines
  Added in v.983

  ViewVC Help
Powered by ViewVC 1.1.26