/[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 2083 by jfenwick, Thu Nov 20 05:31:33 2008 UTC revision 2084 by jfenwick, Fri Nov 21 05:20:42 2008 UTC
# Line 63  enum ES_optype Line 63  enum ES_optype
63      LEZ=GZ+3,      LEZ=GZ+3,
64      SYM=LEZ+1,      SYM=LEZ+1,
65      NSYM=SYM+1,      NSYM=SYM+1,
66      PROD=NSYM+1      PROD=NSYM+1,
67        TRANS=PROD+1,
68        TRACE=TRANS+1
69  };  };
70    
71  ESCRIPT_DLL_API  ESCRIPT_DLL_API
# Line 112  public: Line 114  public:
114    DataLazy(DataAbstract_ptr left, ES_optype op);    DataLazy(DataAbstract_ptr left, ES_optype op);
115    
116    /**    /**
117      \brief Produce a DataLazy for a unary operation which requires a parameter.
118      \param left DataAbstract to be operated on.
119      \param op unary operation to perform.
120      \param axis_offset the parameter for the operation
121      \throws DataException if op is not a unary operation or if p cannot be converted to a DataLazy.
122      Note that IDENTITY is not considered a unary operation.
123      */
124      ESCRIPT_DLL_API  
125      DataLazy(DataAbstract_ptr left, ES_optype op, int axis_offset);
126    
127    
128      /**
129    \brief Produce a DataLazy for a binary operation.    \brief Produce a DataLazy for a binary operation.
130    \param left left operand    \param left left operand
131    \param right right operand    \param right right operand
# Line 288  private: Line 302  private:
302    ValueType*    ValueType*
303    resolveNP1OUT(ValueType& v, size_t offset, int sampleNo, size_t& roffset) const;    resolveNP1OUT(ValueType& v, size_t offset, int sampleNo, size_t& roffset) const;
304    
305    /**
306      \brief Compute the value of the expression (unary operation) for the given sample.
307      \return Vector which stores the value of the subexpression for the given sample.
308      \param v A vector to store intermediate results.
309      \param offset Index in v to begin storing results.
310      \param sampleNo Sample number to evaluate.
311      \param roffset (output parameter) the offset in the return vector where the result begins.
312    
313      The return value will be an existing vector so do not deallocate it.
314      If the result is stored in v it should be stored at the offset given.
315      Everything from offset to the end of v should be considered available for this method to use.
316    */
317    DataTypes::ValueType*
318    resolveNP1OUT_P(ValueType& v, size_t offset, int sampleNo, size_t& roffset) const;
319    
320    
321    /**    /**
322    \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.

Legend:
Removed from v.2083  
changed lines
  Added in v.2084

  ViewVC Help
Powered by ViewVC 1.1.26