daphne-eu / daphne

DAPHNE: An Open and Extensible System Infrastructure for Integrated Data Analysis Pipelines
Apache License 2.0
67 stars 62 forks source link

abs() casts to integer #863

Closed m-birke closed 1 month ago

m-birke commented 1 month ago

abs() casts to integer although it still returns double matrix

CODE:

m = as.matrix([1.11,-2.22,-3.312,4.123123]); print(m); n = abs(m); print(n);

STDOUT:

DenseMatrix(4x1, double) 1.11 -2.22 -3.312 4.12312 DenseMatrix(4x1, double) 1 2 3 4

EXPECTED:

DenseMatrix(4x1, double) 1.11 2.22 3.312 4.12312