/[escript]/branches/arrayview_from_1695_trunk/escript/src/DataTypes.h
ViewVC logotype

Diff of /branches/arrayview_from_1695_trunk/escript/src/DataTypes.h

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

revision 1714 by jfenwick, Thu Aug 21 00:01:55 2008 UTC revision 1715 by jfenwick, Thu Aug 21 04:52:14 2008 UTC
# Line 129  namespace escript { Line 129  namespace escript {
129     DataTypes::RegionType     DataTypes::RegionType
130     getSliceRegion(const DataTypes::ShapeType& shape, const boost::python::object& key);     getSliceRegion(const DataTypes::ShapeType& shape, const boost::python::object& key);
131    
132      /**
133      \brief
134       Modify region to copy from in order to
135       deal with the case where one range in the region contains identical indexes,
136       eg: <<1,1><0,3><0,3>>
137       This situation implies we want to copy from an object with rank greater than that of this
138       object. eg: we want to copy the values from a two dimensional slice out of a three
139       dimensional object into a two dimensional object.
140       We do this by taking a slice from the other object where one dimension of
141       the slice region is of size 1. So in the above example, we modify the above
142       region like so: <<1,2><0,3><0,3>> and take this slice.
143      */
144      DataTypes::RegionLoopRangeType
145      getSliceRegionLoopRange(const DataTypes::RegionType& region);
146    
147    ESCRIPT_DLL_API    ESCRIPT_DLL_API
148    inline    inline
# Line 186  namespace escript { Line 199  namespace escript {
199      return temp;      return temp;
200    }    }
201    
202      ESCRIPT_DLL_API
203      inline
204      bool
205      checkShape(const ShapeType& s1, const ShapeType& s2)
206      {
207        return s1==s2;
208      }
209    
210   }   // End namespace DataTypes   }   // End namespace DataTypes
211    

Legend:
Removed from v.1714  
changed lines
  Added in v.1715

  ViewVC Help
Powered by ViewVC 1.1.26