wrathematics / float

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

Machine_float not exported #35

Open david-cortes opened 3 years ago

david-cortes commented 3 years ago

I see the readme says that .Machine_float should show the information about float type for my machine, but it doesn't seem to be an exported function from the package. None of the following succeeds:

.Machine_float
float::.Machine_float
float:::.Machine_float
Machine_float
float::Machine_float
float:::Machine_float
dselivanov commented 3 years ago
.Call(float:::R_machine_spm)
wrathematics commented 3 years ago

I made it a dataset at some point to satisfy CRAN policies. It should be available if the package is loaded. You can also do

data(Machine_float, package="float")
Machine_float
## $float.eps
## [1] 1.192093e-07
## 
## $float.xmin
## [1] 1.175494e-38
## 
## $float.xmax
## [1] 3.402823e+38
## 
## $float.base
## [1] 2
## 
## $float.digits
## [1] 24
## 
## $float.exponent
## [1] 8
## 
## $float.min.exp
## [1] -125
## 
## $float.max.exp
## [1] 128

I will try to fix the docs soon.