/[escript]
ViewVC logotype

Revision 5888


Jump to revision: Previous Next
Author: jfenwick
Date: Wed Jan 27 07:00:49 2016 UTC (21 months, 4 weeks ago)
Changed paths: 5
Log Message:
Incomplete work on complex DataConstants

z=Data(7+2j)
print z

does't crash but it gives
(nan,0)

The problem is that copyFromArrayToOffset<T>  calls getElt() and friends -
  - which are set to always return doubles.
This means we need to have an explicit specialisation of 
  copyFromArrayToOffset<cplx_t>
  which pulls complex values.


Changed paths

Path Details
Directorybranches/complex/escriptcore/src/DataAbstract.cpp modified , text changed
Directorybranches/complex/escriptcore/src/DataAbstract.h modified , text changed
Directorybranches/complex/escriptcore/src/DataConstant.cpp modified , text changed
Directorybranches/complex/escriptcore/src/DataVector.cpp modified , text changed
Directorybranches/complex/escriptcore/src/DataVector.h modified , text changed

  ViewVC Help
Powered by ViewVC 1.1.26