Closed m-birke closed 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
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