/[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 757 by woo409, Mon Jun 26 13:12:56 2006 UTC revision 783 by gross, Tue Jul 18 01:32:50 2006 UTC
# Line 234  class Data { Line 234  class Data {
234    
235    /**    /**
236       \brief       \brief
237         switches on update protection
238    
239      */
240      ESCRIPT_DLL_API
241      void
242      setProtection();
243    
244      /**
245         \brief
246         Returns trueif the data object is protected against update
247    
248      */
249      ESCRIPT_DLL_API
250      bool
251      isProtected() const;
252      /**
253         \brief
254       Return the values of all data-points as a single python numarray object.       Return the values of all data-points as a single python numarray object.
255    */    */
256    ESCRIPT_DLL_API    ESCRIPT_DLL_API
# Line 766  class Data { Line 783  class Data {
783    
784    ESCRIPT_DLL_API    ESCRIPT_DLL_API
785    void    void
786    #ifndef PASO_MPI
787    calc_mindp(int& SampleNo,    calc_mindp(int& SampleNo,
788               int& DataPointNo) const;               int& DataPointNo) const;
789    #else
790      calc_mindp(int& ProcNo,
791                            int& SampleNo,  
792                 int& DataPointNo) const;
793    #endif
794    /**    /**
795       \brief       \brief
796       Return the sign of each data point of this Data object.       Return the sign of each data point of this Data object.
# Line 781  class Data { Line 803  class Data {
803    
804    /**    /**
805       \brief       \brief
806         Return the symmetric part of a matrix which is half the matrix plus its transpose.
807         *
808      */
809      ESCRIPT_DLL_API
810      Data
811      symmetric() const;
812    
813      /**
814         \brief
815         Return the nonsymmetric part of a matrix which is half the matrix minus its transpose.
816         *
817      */
818      ESCRIPT_DLL_API
819      Data
820      nonsymmetric() const;
821    
822      /**
823         \brief
824         Return the trace of a matrix
825         *
826      */
827      ESCRIPT_DLL_API
828      Data
829      matrixtrace(int axis_offset) const;
830    
831      /**
832         \brief
833         Transpose each data point of this Data object around the given axis.
834         *
835      */
836      ESCRIPT_DLL_API
837      Data
838      transpose(int axis_offset) const;
839    
840      /**
841         \brief
842       Return the eigenvalues of the symmetric part at each data point of this Data object in increasing values.       Return the eigenvalues of the symmetric part at each data point of this Data object in increasing values.
843       Currently this function is restricted to rank 2, square shape, and dimension 3.       Currently this function is restricted to rank 2, square shape, and dimension 3.
844       *       *
# Line 804  class Data { Line 862  class Data {
862    
863    /**    /**
864       \brief       \brief
      Transpose each data point of this Data object around the given axis.  
      --* not implemented yet *--  
      *  
   */  
   ESCRIPT_DLL_API  
   Data  
   transpose(int axis) const;  
   
   /**  
      \brief  
865       Calculate the trace of each data point of this Data object.       Calculate the trace of each data point of this Data object.
866       *       *
867    */    */
# Line 1186  class Data { Line 1234  class Data {
1234                const FunctionSpace& fspace);                const FunctionSpace& fspace);
1235    
1236    
1237    #ifdef PASO_MPI
1238    /**    /**
1239       \brief       \brief
1240       print the data values to stdout. Used for debugging       print the data values to stdout. Used for debugging
1241    */    */
1242    void print();    ESCRIPT_DLL_API
1243      void
1244        print(void);
1245    
1246      /**
1247         \brief
1248         return the MPI rank number of the local data
1249             MPI_COMM_WORLD is assumed and the result of MPI_Comm_size()
1250             is returned
1251      */
1252      ESCRIPT_DLL_API
1253        int
1254        get_MPIRank(void) const;
1255    
1256      /**
1257         \brief
1258         return the MPI rank number of the local data
1259             MPI_COMM_WORLD is assumed and the result of MPI_Comm_rank()
1260             is returned
1261      */
1262      ESCRIPT_DLL_API
1263        int
1264        get_MPISize(void) const;
1265    
1266      /**
1267         \brief
1268         return the MPI rank number of the local data
1269             MPI_COMM_WORLD is assumed and returned.
1270      */
1271      ESCRIPT_DLL_API
1272        MPI_Comm
1273        get_MPIComm(void) const;
1274    #endif
1275        
1276   protected:   protected:
1277    
1278   private:   private:
# Line 1295  class Data { Line 1376  class Data {
1376    reshapeDataPoint(const DataArrayView::ShapeType& shape);    reshapeDataPoint(const DataArrayView::ShapeType& shape);
1377    
1378    //    //
1379      // flag to protect the data object against any update
1380      bool m_protected;
1381    
1382      //
1383    // pointer to the actual data object    // pointer to the actual data object
1384    boost::shared_ptr<DataAbstract> m_data;    boost::shared_ptr<DataAbstract> m_data;
1385    

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

  ViewVC Help
Powered by ViewVC 1.1.26