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

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

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

revision 2720 by jfenwick, Wed Sep 2 04:14:03 2009 UTC revision 2721 by jfenwick, Fri Oct 16 05:40:12 2009 UTC
# Line 73  enum ES_optype Line 73  enum ES_optype
73      PROD=NSYM+1,      PROD=NSYM+1,
74      TRANS=PROD+1,      TRANS=PROD+1,
75      TRACE=TRANS+1,      TRACE=TRANS+1,
76      SWAP=TRACE+1      SWAP=TRACE+1,
77        MINVAL=SWAP+1,
78        MAXVAL=MINVAL+1
79  };  };
80    
81  ESCRIPT_DLL_API  ESCRIPT_DLL_API
# Line 309  private: Line 311  private:
311    const DataTypes::ValueType*    const DataTypes::ValueType*
312    resolveNodeUnary(int tid, int sampleNo, size_t& roffset);    resolveNodeUnary(int tid, int sampleNo, size_t& roffset);
313    
314    
315      const DataTypes::ValueType*
316      resolveNodeReduction(int tid, int sampleNo, size_t& roffset);  
317    
318    const DataTypes::ValueType*    const DataTypes::ValueType*
319    resolveNodeSample(int tid, int sampleNo, size_t& roffset);    resolveNodeSample(int tid, int sampleNo, size_t& roffset);
320    
# Line 411  private: Line 417  private:
417    resolveUnary(ValueType& v,  size_t offset,int sampleNo,  size_t& roffset) const;    resolveUnary(ValueType& v,  size_t offset,int sampleNo,  size_t& roffset) const;
418    
419    /**    /**
420      \brief Compute the value of the expression (reduction operation) for the given sample.
421      \return Vector which stores the value of the subexpression for the given sample.
422      \param v A vector to store intermediate results.
423      \param offset Index in v to begin storing results.
424      \param sampleNo Sample number to evaluate.
425      \param roffset (output parameter) the offset in the return vector where the result begins.
426    
427      The return value will be an existing vector so do not deallocate it.
428      If the result is stored in v it should be stored at the offset given.
429      Everything from offset to the end of v should be considered available for this method to use.
430      */
431      ValueType*
432      resolveReduction(ValueType& v, size_t offset, int sampleNo, size_t& roffset) const;
433    
434      /**
435    \brief Compute the value of the expression (unary non-pointwise operation) for the given sample.    \brief Compute the value of the expression (unary non-pointwise operation) for the given sample.
436    \return Vector which stores the value of the subexpression for the given sample.    \return Vector which stores the value of the subexpression for the given sample.
437    \param v A vector to store intermediate results.    \param v A vector to store intermediate results.

Legend:
Removed from v.2720  
changed lines
  Added in v.2721

  ViewVC Help
Powered by ViewVC 1.1.26