Extend R with C!!!

2,317 views

Published on

3 Comments
1 Like
Statistics
Notes
  • Hello Dear,
    Nice Meeting You, my name is miss faith, i wish to have you as my friend when i came across your profile today , please get back to me at my private email ( faithassin24@yahoo.in ) for more details of my self, and i also have something very important to share with you and also promise to send my picture to you OK? yours friend faith
    ( faithassin24@yahoo.in )
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • Hi dear,
    My name is amirah, a beautiful young girl full of love and affection.
    Well, I saw your profile today on the dating site www.slideshare.net, which gave me interest to contact you and know what the future
    might bring for us together.
    if you feel interested in being my friend, you can contact me back
    through my private email address and I'll give you my picture and tell you more about me.........(amirahrashide005@yahoo.com)
    I wait for your response
    Thank you and God bless
    Sincerely with love
    amirah ...
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • Hello
    my name is Queen
    i saw your profile today and became interested in you, i will like to know you the more, and i want you to send an email to my mail so that i can give you my picture for you to know whom i am. Here is my email address [jobe.queen@yahoo.com] I believe we can move from here. I am waiting for your reply in my mail don't send it in the site.
    [Remember the distance or color does not matter but love matters allot in life]
    [jobe.queen@yahoo.com]
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
No Downloads
Views
Total views
2,317
On SlideShare
0
From Embeds
0
Number of Embeds
327
Actions
Shares
0
Downloads
0
Comments
3
Likes
1
Embeds 0
No embeds

No notes for slide
  • Extend R with C!!!

    1. 1. Extend R with C!!! 2009/11/22 id:mickey24
    2. 2. id: mickey24 (@mickey24)
    3. 3. id: mickey24 (@mickey24)
    4. 4. • Tsukuba.R#4 • R Brainf*ck
    5. 5. • Tsukuba.R#4 • R Brainf*ck • Tsukuba.R#5 • Animation with R
    6. 6. C R
    7. 7. • •
    8. 8. C R
    9. 9. C R •C R
    10. 10. C R •C R •C R C R
    11. 11. Motivation
    12. 12. Motivation 1.
    13. 13. Motivation 1. •
    14. 14. Motivation 1. • • C R (40 50 ) www - Seeking for my unique color. http://d.hatena.ne.jp/syou6162/20090117/1232120983
    15. 15. Motivation 1. • • C R (40 50 ) www - Seeking for my unique color. http://d.hatena.ne.jp/syou6162/20090117/1232120983 2. R C
    16. 16. #include <R.h> #include <Rinternals.h> SEXP test(SEXP exp) { ... }
    17. 17. C R // integer int n = INTEGER(exp)[0]; // string PROTECT(exp = AS_CHARACTER(exp)); char* str = R_alloc(strlen(CHAR( STRING_ELT(exp, 0))), sizeof(char)); strcpy(str, CHAR(STRING_ELT(exp, 0))); ... UNPROTECT(1)
    18. 18. C R // integer SEXP exp_int; PROTECT(exp_int = NEW_INTEGER(1)); int* pi = INTEGER_POINTER(exp_int); pi[0] = 24; ... UNPROTECT(1); return exp_int;
    19. 19. $ R CMD SHLIB test.c
    20. 20. $ R CMD SHLIB test.c • test.so
    21. 21. $ R CMD SHLIB test.c • test.so • R R
    22. 22. $ R CMD SHLIB test.c • test.so • R R • Makefile Makevars
    23. 23. R C dyn.load("test.so") test <- function(n) { .Call("test", integer(n)) } test(24) Writing R Extensions http://cran.r-project.org/doc/contrib/manuals-jp/R-exts.jp.pdf
    24. 24. • •
    25. 25. •C R
    26. 26. •C R • C R
    27. 27. •C R • C R • 6162
    28. 28. OpenCV
    29. 29. OpenCV •
    30. 30. OpenCV • • BSD
    31. 31. OpenCV • • BSD • C C++ Python
    32. 32. OpenCV • • BSD • C C++ Python •
    33. 33.
    34. 34.
    35. 35. … …
    36. 36.
    37. 37. • •C R
    38. 38. • •C R •
    39. 39. • C R - Seeking for my unique color. http://d.hatena.ne.jp/syou6162/20090117/1232125870 • Writing R Extensions http://cran.r-project.org/doc/contrib/manuals-jp/R-exts.jp.pdf

    ×