/[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 2036 by jfenwick, Mon Nov 10 01:21:39 2008 UTC revision 2037 by jfenwick, Thu Nov 13 06:17:12 2008 UTC
# Line 60  enum ES_optype Line 60  enum ES_optype
60      GZ=RECIP+1,      GZ=RECIP+1,
61      LZ=GZ+1,      LZ=GZ+1,
62      GEZ=GZ+2,      GEZ=GZ+2,
63      LEZ=GZ+3      LEZ=GZ+3,
64        SYM=LEZ+1,
65        NSYM=SYM+1
66  };  };
67    
68  ESCRIPT_DLL_API  ESCRIPT_DLL_API
# Line 226  private: Line 228  private:
228    resolveSample(ValueType& v,  size_t offset ,int sampleNo, size_t& roffset);    resolveSample(ValueType& v,  size_t offset ,int sampleNo, size_t& roffset);
229    
230    /**    /**
231    \brief Compute the value of the expression (binary operation) for the given sample.    \brief Compute the value of the expression (unary operation) for the given sample.
232    \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.
233    \param v A vector to store intermediate results.    \param v A vector to store intermediate results.
234    \param offset Index in v to begin storing results.    \param offset Index in v to begin storing results.
# Line 241  private: Line 243  private:
243    resolveUnary(ValueType& v,  size_t offset,int sampleNo,  size_t& roffset) const;    resolveUnary(ValueType& v,  size_t offset,int sampleNo,  size_t& roffset) const;
244    
245    /**    /**
246      \brief Compute the value of the expression (unary non-pointwise operation) for the given sample.
247      \return Vector which stores the value of the subexpression for the given sample.
248      \param v A vector to store intermediate results.
249      \param offset Index in v to begin storing results.
250      \param sampleNo Sample number to evaluate.
251      \param roffset (output parameter) the offset in the return vector where the result begins.
252    
253      The return value will be an existing vector so do not deallocate it.
254      If the result is stored in v it should be stored at the offset given.
255      Everything from offset to the end of v should be considered available for this method to use.
256    
257      This method differs from the one above in that deals with operations that are not
258      point-wise. That is, the answer cannot just be written on top of the input.
259      Extra buffers are required for these operations.
260      */
261    
262      ValueType*
263      resolveNP1OUT(ValueType& v, size_t offset, int sampleNo, size_t& roffset) const;
264    
265    
266      /**
267    \brief Compute the value of the expression (binary operation) for the given sample.    \brief Compute the value of the expression (binary operation) for the given sample.
268    \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.
269    \param v A vector to store intermediate results.    \param v A vector to store intermediate results.

Legend:
Removed from v.2036  
changed lines
  Added in v.2037

  ViewVC Help
Powered by ViewVC 1.1.26