Norm of DataContainer with complex data_t
As I was implementing the DataHandlerGPU
, I was wondering if the return type of the following functions is intentional in the case of data_t
being either std::complex<float>
or std::complex<double>
:
virtual data_t squaredL2Norm() const = 0;
virtual data_t l1Norm() const = 0;
virtual data_t lInfNorm() const = 0;
Should their return type not be always double
or float
respectively, like for example in the cuBLAS library?