/[escript]/branches/trilinos_from_5897/escriptcore/src/DataConstant.h
ViewVC logotype

Diff of /branches/trilinos_from_5897/escriptcore/src/DataConstant.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 1388 by trankine, Fri Jan 11 07:45:58 2008 UTC
# Line 1  Line 1 
1  //$Id$  
2  /*  /* $Id$ */
3   ************************************************************  
4   *          Copyright 2006 by ACcESS MNRF                   *  /*******************************************************
5   *                                                          *   *
6   *              http://www.access.edu.au                    *   *           Copyright 2003-2007 by ACceSS MNRF
7   *       Primary Business: Queensland, Australia            *   *       Copyright 2007 by University of Queensland
8   *  Licensed under the Open Software License version 3.0    *   *
9   *     http://www.opensource.org/licenses/osl-3.0.php       *   *                http://esscc.uq.edu.au
10   *                                                          *   *        Primary Business: Queensland, Australia
11   ************************************************************   *  Licensed under the Open Software License version 3.0
12  */   *     http://www.opensource.org/licenses/osl-3.0.php
13     *
14     *******************************************************/
15    
16  #if !defined escript_DataConstant_20040323_H  #if !defined escript_DataConstant_20040323_H
17  #define escript_DataConstant_20040323_H  #define escript_DataConstant_20040323_H
# Line 104  class DataConstant : public DataAbstract Line 106  class DataConstant : public DataAbstract
106    ESCRIPT_DLL_API    ESCRIPT_DLL_API
107    std::string    std::string
108    toString() const;    toString() const;
109     /**
110         \brief
111         dumps the object into a netCDF file
112      */
113      ESCRIPT_DLL_API
114      virtual
115      void
116      dump(const std::string fileName) const;
117    
118     /**
119         \brief
120        sets all values to zero
121      */
122      ESCRIPT_DLL_API
123      virtual
124      void
125      setToZero();
126    
127    /**    /**
128       \brief       \brief
# Line 166  class DataConstant : public DataAbstract Line 185  class DataConstant : public DataAbstract
185             const DataArrayView::RegionType& region);             const DataArrayView::RegionType& region);
186    
187    /**    /**
      \brief  
      Reshape the data point if the data point is currently rank 0.  
      The original data point value is used for all values of the new  
      data point.  
   */  
   ESCRIPT_DLL_API  
   void  
   reshapeDataPoint(const DataArrayView::ShapeType& shape);  
   
   /**  
188      \brief      \brief
189      Archive the underlying data values to the file referenced      Archive the underlying data values to the file referenced
190      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
# Line 202  class DataConstant : public DataAbstract Line 211  class DataConstant : public DataAbstract
211    
212    /**    /**
213       \brief       \brief
214         Computes a symmetric matrix (A + AT) / 2
215    
216         \param ev - Output - symmetric matrix
217    
218      */
219      ESCRIPT_DLL_API
220      virtual void
221      symmetric(DataAbstract* ev);
222    
223      /**
224         \brief
225         Computes a nonsymmetric matrix (A - AT) / 2
226    
227         \param ev - Output - nonsymmetric matrix
228    
229      */
230      ESCRIPT_DLL_API
231      virtual void
232      nonsymmetric(DataAbstract* ev);
233    
234      /**
235         \brief
236         Computes the trace of a matrix
237    
238         \param ev - Output - trace of matrix
239    
240      */
241      ESCRIPT_DLL_API
242      virtual void
243      trace(DataAbstract* ev, int axis_offset);
244    
245      /**
246         \brief
247         Transpose each data point of this Data object around the given axis.
248    
249         \param ev - Output - transpose of matrix
250    
251      */
252      ESCRIPT_DLL_API
253      virtual void
254      transpose(DataAbstract* ev, int axis_offset);
255    
256      /**
257         \brief
258         swaps components axis0 and axis1
259    
260         \param ev - Output - swapped components
261    
262      */
263      ESCRIPT_DLL_API
264      virtual void
265      swapaxes(DataAbstract* ev, int axis0, int axis1);
266    
267    
268      /**
269         \brief
270       solves the eigenvalue problem this*V=ev*V for the eigenvalues ev       solves the eigenvalue problem this*V=ev*V for the eigenvalues ev
271    
272       \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.757  
changed lines
  Added in v.1388

  ViewVC Help
Powered by ViewVC 1.1.26