/[escript]/trunk/escriptcore/src/BinaryDataReadyOps.cpp
ViewVC logotype

Diff of /trunk/escriptcore/src/BinaryDataReadyOps.cpp

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

revision 6167 by jfenwick, Wed Apr 6 07:57:22 2016 UTC revision 6168 by jfenwick, Wed Apr 13 03:08:12 2016 UTC
# Line 29  namespace escript Line 29  namespace escript
29    
30  template <class ResSCALAR, class LSCALAR, class RSCALAR>  template <class ResSCALAR, class LSCALAR, class RSCALAR>
31  inline void binaryOpDataReadyHelperCCC(DataConstant& res, const DataConstant& left, const DataConstant& right,  inline void binaryOpDataReadyHelperCCC(DataConstant& res, const DataConstant& left, const DataConstant& right,
32               escript::ESFunction operation)               escript::ES_optype operation)
33  {  {
34    ResSCALAR resdummy=0;    ResSCALAR resdummy=0;
35    LSCALAR dummyl=0;    LSCALAR dummyl=0;
# Line 63  inline void binaryOpDataReadyHelperCCC(D Line 63  inline void binaryOpDataReadyHelperCCC(D
63    
64    
65  void binaryOpDataCCC(DataConstant& result, const DataConstant& left, const DataConstant& right,  void binaryOpDataCCC(DataConstant& result, const DataConstant& left, const DataConstant& right,
66               escript::ESFunction operation)               escript::ES_optype operation)
67  {  {
68    bool cplxresult=left.isComplex() || right.isComplex();    bool cplxresult=left.isComplex() || right.isComplex();
69    if (result.isComplex()!=cplxresult)    if (result.isComplex()!=cplxresult)
# Line 101  void binaryOpDataCCC(DataConstant& resul Line 101  void binaryOpDataCCC(DataConstant& resul
101    
102  template <class ResSCALAR, class LSCALAR, class RSCALAR>  template <class ResSCALAR, class LSCALAR, class RSCALAR>
103  inline void binaryOpDataReadyHelperTCT(DataTagged& res, const DataConstant& left, const DataTagged& right,  inline void binaryOpDataReadyHelperTCT(DataTagged& res, const DataConstant& left, const DataTagged& right,
104               escript::ESFunction operation)               escript::ES_optype operation)
105  {  {
106    ResSCALAR resdummy=0;    ResSCALAR resdummy=0;
107    LSCALAR dummyl=0;    LSCALAR dummyl=0;
# Line 188  inline void binaryOpDataReadyHelperTCT(D Line 188  inline void binaryOpDataReadyHelperTCT(D
188    
189    
190  void binaryOpDataTCT(DataTagged& result, const DataConstant& left, const DataTagged& right,  void binaryOpDataTCT(DataTagged& result, const DataConstant& left, const DataTagged& right,
191               escript::ESFunction operation)               escript::ES_optype operation)
192  {  {
193    bool cplxresult=left.isComplex() || right.isComplex();    bool cplxresult=left.isComplex() || right.isComplex();
194    if (result.isComplex()!=cplxresult)    if (result.isComplex()!=cplxresult)
# Line 227  void binaryOpDataTCT(DataTagged& result, Line 227  void binaryOpDataTCT(DataTagged& result,
227    
228  template <class ResSCALAR, class LSCALAR, class RSCALAR>  template <class ResSCALAR, class LSCALAR, class RSCALAR>
229  inline void binaryOpDataReadyHelperECE(DataExpanded& res, const DataConstant& left, const DataExpanded& right,  inline void binaryOpDataReadyHelperECE(DataExpanded& res, const DataConstant& left, const DataExpanded& right,
230               escript::ESFunction operation)               escript::ES_optype operation)
231  {  {
232    ResSCALAR resdummy=0;    ResSCALAR resdummy=0;
233    LSCALAR dummyl=0;    LSCALAR dummyl=0;
# Line 268  inline void binaryOpDataReadyHelperECE(D Line 268  inline void binaryOpDataReadyHelperECE(D
268    
269    
270  void binaryOpDataECE(DataExpanded& result, const DataConstant& left, const DataExpanded& right,  void binaryOpDataECE(DataExpanded& result, const DataConstant& left, const DataExpanded& right,
271               escript::ESFunction operation)               escript::ES_optype operation)
272  {  {
273    bool cplxresult=left.isComplex() || right.isComplex();    bool cplxresult=left.isComplex() || right.isComplex();
274    if (result.isComplex()!=cplxresult)    if (result.isComplex()!=cplxresult)
# Line 306  void binaryOpDataECE(DataExpanded& resul Line 306  void binaryOpDataECE(DataExpanded& resul
306    
307  template <class ResSCALAR, class LSCALAR, class RSCALAR>  template <class ResSCALAR, class LSCALAR, class RSCALAR>
308  inline void binaryOpDataReadyHelperEET(DataExpanded& res, const DataExpanded& left, const DataTagged& right,  inline void binaryOpDataReadyHelperEET(DataExpanded& res, const DataExpanded& left, const DataTagged& right,
309               escript::ESFunction operation)               escript::ES_optype operation)
310  {  {
311    ResSCALAR resdummy=0;    ResSCALAR resdummy=0;
312    LSCALAR dummyl=0;    LSCALAR dummyl=0;
# Line 325  inline void binaryOpDataReadyHelperEET(D Line 325  inline void binaryOpDataReadyHelperEET(D
325    
326    
327  void binaryOpDataEET(DataExpanded& result, const DataExpanded& left, const DataTagged& right,  void binaryOpDataEET(DataExpanded& result, const DataExpanded& left, const DataTagged& right,
328               escript::ESFunction operation)               escript::ES_optype operation)
329  {  {
330    bool cplxresult=left.isComplex() || right.isComplex();    bool cplxresult=left.isComplex() || right.isComplex();
331    if (result.isComplex()!=cplxresult)    if (result.isComplex()!=cplxresult)
# Line 364  void binaryOpDataEET(DataExpanded& resul Line 364  void binaryOpDataEET(DataExpanded& resul
364    
365  template <class ResSCALAR, class LSCALAR, class RSCALAR>  template <class ResSCALAR, class LSCALAR, class RSCALAR>
366  inline void binaryOpDataReadyHelperETE(DataExpanded& res, const DataTagged& left, const DataExpanded& right,  inline void binaryOpDataReadyHelperETE(DataExpanded& res, const DataTagged& left, const DataExpanded& right,
367               escript::ESFunction operation)               escript::ES_optype operation)
368  {  {
369    ResSCALAR resdummy=0;    ResSCALAR resdummy=0;
370    LSCALAR dummyl=0;    LSCALAR dummyl=0;
# Line 383  inline void binaryOpDataReadyHelperETE(D Line 383  inline void binaryOpDataReadyHelperETE(D
383    
384    
385  void binaryOpDataETE(DataExpanded& result, const DataTagged& left, const DataExpanded& right,  void binaryOpDataETE(DataExpanded& result, const DataTagged& left, const DataExpanded& right,
386               escript::ESFunction operation)               escript::ES_optype operation)
387  {  {
388    bool cplxresult=left.isComplex() || right.isComplex();    bool cplxresult=left.isComplex() || right.isComplex();
389    if (result.isComplex()!=cplxresult)    if (result.isComplex()!=cplxresult)
# Line 424  void binaryOpDataETE(DataExpanded& resul Line 424  void binaryOpDataETE(DataExpanded& resul
424    
425  template <class ResSCALAR, class LSCALAR, class RSCALAR>  template <class ResSCALAR, class LSCALAR, class RSCALAR>
426  inline void binaryOpDataReadyHelperTTC(DataTagged& res, const DataTagged& left, const DataConstant& right,  inline void binaryOpDataReadyHelperTTC(DataTagged& res, const DataTagged& left, const DataConstant& right,
427               escript::ESFunction operation)               escript::ES_optype operation)
428  {  {
429    ResSCALAR resdummy=0;    ResSCALAR resdummy=0;
430    LSCALAR dummyl=0;    LSCALAR dummyl=0;
# Line 520  inline void binaryOpDataReadyHelperTTC(D Line 520  inline void binaryOpDataReadyHelperTTC(D
520    
521    
522  void binaryOpDataTTC(DataTagged& result, const DataTagged& left, const DataConstant& right,  void binaryOpDataTTC(DataTagged& result, const DataTagged& left, const DataConstant& right,
523               escript::ESFunction operation)               escript::ES_optype operation)
524  {  {
525    bool cplxresult=left.isComplex() || right.isComplex();    bool cplxresult=left.isComplex() || right.isComplex();
526    if (result.isComplex()!=cplxresult)    if (result.isComplex()!=cplxresult)
# Line 559  void binaryOpDataTTC(DataTagged& result, Line 559  void binaryOpDataTTC(DataTagged& result,
559    
560  template <class ResSCALAR, class LSCALAR, class RSCALAR>  template <class ResSCALAR, class LSCALAR, class RSCALAR>
561  inline void binaryOpDataReadyHelperTTT(DataTagged& res, const DataTagged& left, const DataTagged& right,  inline void binaryOpDataReadyHelperTTT(DataTagged& res, const DataTagged& left, const DataTagged& right,
562               escript::ESFunction operation)               escript::ES_optype operation)
563  {  {
564    ResSCALAR resdummy=0;    ResSCALAR resdummy=0;
565    LSCALAR dummyl=0;    LSCALAR dummyl=0;
# Line 672  inline void binaryOpDataReadyHelperTTT(D Line 672  inline void binaryOpDataReadyHelperTTT(D
672    
673    
674  void binaryOpDataTTT(DataTagged& result, const DataTagged& left, const DataTagged& right,  void binaryOpDataTTT(DataTagged& result, const DataTagged& left, const DataTagged& right,
675               escript::ESFunction operation)               escript::ES_optype operation)
676  {  {
677    bool cplxresult=left.isComplex() || right.isComplex();    bool cplxresult=left.isComplex() || right.isComplex();
678    if (result.isComplex()!=cplxresult)    if (result.isComplex()!=cplxresult)
# Line 710  void binaryOpDataTTT(DataTagged& result, Line 710  void binaryOpDataTTT(DataTagged& result,
710    
711  template <class ResSCALAR, class LSCALAR, class RSCALAR>  template <class ResSCALAR, class LSCALAR, class RSCALAR>
712  inline void binaryOpDataReadyHelperEEC(DataExpanded& res, const DataExpanded& left, const DataConstant& right,  inline void binaryOpDataReadyHelperEEC(DataExpanded& res, const DataExpanded& left, const DataConstant& right,
713               escript::ESFunction operation)               escript::ES_optype operation)
714  {  {
715    ResSCALAR resdummy=0;    ResSCALAR resdummy=0;
716    LSCALAR dummyl=0;    LSCALAR dummyl=0;
# Line 752  inline void binaryOpDataReadyHelperEEC(D Line 752  inline void binaryOpDataReadyHelperEEC(D
752    
753    
754  void binaryOpDataEEC(DataExpanded& result, const DataExpanded& left, const DataConstant& right,  void binaryOpDataEEC(DataExpanded& result, const DataExpanded& left, const DataConstant& right,
755               escript::ESFunction operation)               escript::ES_optype operation)
756  {  {
757    bool cplxresult=left.isComplex() || right.isComplex();    bool cplxresult=left.isComplex() || right.isComplex();
758    if (result.isComplex()!=cplxresult)    if (result.isComplex()!=cplxresult)
# Line 791  void binaryOpDataEEC(DataExpanded& resul Line 791  void binaryOpDataEEC(DataExpanded& resul
791    
792  template <class ResSCALAR, class LSCALAR, class RSCALAR>  template <class ResSCALAR, class LSCALAR, class RSCALAR>
793  inline void binaryOpDataReadyHelperEEE(DataExpanded& res, const DataExpanded& left, const DataExpanded& right,  inline void binaryOpDataReadyHelperEEE(DataExpanded& res, const DataExpanded& left, const DataExpanded& right,
794               escript::ESFunction operation)               escript::ES_optype operation)
795  {  {
796    ResSCALAR resdummy=0;    ResSCALAR resdummy=0;
797    LSCALAR dummyl=0;    LSCALAR dummyl=0;
# Line 834  inline void binaryOpDataReadyHelperEEE(D Line 834  inline void binaryOpDataReadyHelperEEE(D
834    
835    
836  void binaryOpDataEEE(DataExpanded& result, const DataExpanded& left, const DataExpanded& right,  void binaryOpDataEEE(DataExpanded& result, const DataExpanded& left, const DataExpanded& right,
837               escript::ESFunction operation)               escript::ES_optype operation)
838  {  {
839    bool cplxresult=left.isComplex() || right.isComplex();    bool cplxresult=left.isComplex() || right.isComplex();
840    if (result.isComplex()!=cplxresult)    if (result.isComplex()!=cplxresult)

Legend:
Removed from v.6167  
changed lines
  Added in v.6168

  ViewVC Help
Powered by ViewVC 1.1.26