Skip to content

[Rcpp-devel] Inf to NA.

4 messages · Romain Francois, Cedric Ginestet, Dirk Eddelbuettel

#
Le mar 21/12/10 17:24, "Cedric Ginestet" c.ginestet05 at googlemail.com a ?crit:
There is no such thing as an infinite value for integers in R.
[1] NA
Message d'avis :
NAs introduits lors de la conversion automatique

The D matrix you build is a numeric matrix, when you use the IntegerMatrix constructor, there is coercion to an integer matrix. 

Hope this helps, 

Romain
#
Dirk and Romain,
Spot on. I will stick to float for the foreseeable future.
Thanks a lot,

Dirk,
I still couldn't find information for the *Rcpp:List* class from here:
http://dirk.eddelbuettel.com/code/rcpp/html/namespaceRcpp.html
More generally, where is the best place to look for information about a 
particular class?

Cheers,
Cedric
On 21/12/10 17:44, romain at r-enthusiasts.com wrote:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.r-forge.r-project.org/pipermail/rcpp-devel/attachments/20101221/fd15efd8/attachment.htm>
#
On 21 December 2010 at 17:56, Cedric Ginestet wrote:
| Dirk and Romain,
| Spot on. I will stick to float for the foreseeable future.
| Thanks a lot,
| 
| Dirk,
| I still couldn't find information for the Rcpp:List class from here:
| http://dirk.eddelbuettel.com/code/rcpp/html/namespaceRcpp.html
| More generally, where is the best place to look for information about a
| particular class?

I find the 'Search' feature for Doxygen quite convenient. Enter terms without
the Rcpp:: prefix though.

If you start at http://dirk.eddelbuettel.com/code/rcpp and enter List at the
top left ... you get to List being typedef'ed to Vector<VECSXP>.  Sorry :)

So you need to look at Vector which you can by clicking on Vector there.

Dirk
#
On 21 December 2010 at 12:15, Dirk Eddelbuettel wrote:
| I find the 'Search' feature for Doxygen quite convenient. Enter terms without
| the Rcpp:: prefix though.
| 
| If you start at http://dirk.eddelbuettel.com/code/rcpp and enter List at the

Sorry: make that URL  http://dirk.eddelbuettel.com/code/rcpp/html/  to get Doxygen.

Dirk