wrathematics / float

Single precision (float) matrices for R.
Other
46 stars 12 forks source link

Minor issue - printing with str() #12

Closed dselivanov closed 6 years ago

dselivanov commented 6 years ago

At the moment output is a bit confusing:

set.seed(1)
str(fl(x = matrix(runif(12), 4)))

Formal class 'float32' [package "float"] with 1 slot ..@ Data: int [1:4, 1:3] 1049096384 1052673798 1058186885 1063813198 1045333429 1063648478 1064425021 1059662347 1059130782 1031607194 ...

wrathematics commented 6 years ago

Ahh, good catch. I forgot to write a str() method. I'll try to add one tonight.

wrathematics commented 6 years ago

Added in https://github.com/wrathematics/float/commit/1f139a08606e1f260c4627e02b7b7f0b973aa80a.