similar to: Use of .C and .Call

Displaying 20 results from an estimated 20000 matches similar to: "Use of .C and .Call"

2012 Mar 04
2
type conversion
Hi All, I am confused by a type conversion happening against my intent. In an R script I allocate a matrix X, and I pass it to a C function by using tmp -< .C(..., as.double(X),...). I use as.double() because I read that it makes sure that the parameter passing is correct. I return the matrix from the R script using: return (list(..., X = tmp$X, ...)) The returned value is not a matrix
2011 Sep 23
0
(Requested) caTools::runmean Patch
Dear Mr. Tuszynski, I would like to request what I believe would be a beneficial update / patch to the runmean() function in the caTools package. Consider the following R>> x = 1:100 R>> is.integer(x) [1] TRUE R>> library(caTools) R>> head(runmean(x, 5, alg="exact")) [1] 8.487983e-314 1.060998e-313 1.273197e-313 1.697597e-313 2.121996e-313 2.546395e-313
2012 Feb 24
1
R package documentation
Hi All, I am asking for some clarification on R package documentation. The Writing R extension manual did not make this clear for me the following: 1. How to document a dataset? I know the file format from the doc, but I cannot figure out what file to put that info in. I keep getting "Undocumented data sets:" errors and so clearly R is not looking where I put these... 2. How to
2005 Jul 21
1
cut in R
Dear All, I wonder whether it is still valid to use the following R code for cut. All I have done is changed: if (is.na(breaks) | breaks < 2) to: if (is.na(breaks) | breaks < 1) so that it covers interval of 1? It seems okay for my purposes but I am not sure why R specifically does not allow break<2 to happen. Steve. cut.default<- function (x, breaks, labels =
2005 May 12
0
Patch to address (PR#7853) -- tested briefly, seems to
Thank you for the patch. To clarify: this is not a bug. ?.C says The mapping of the types of R arguments to C or Fortran arguments in '.C' or '.Fortran' is R C Fortran integer int * integer numeric double * double precision - or - float * real complex Rcomplex * double complex
2012 Feb 01
1
Makefile to compile .so in src (was: Re: automated libR location)
Prof Brian Ripley wrote: > 'library' in R has a different meaning: I've altered the subject to be > more accurate 'libR'. > > This is what R CMD SHLIB is for: it does all this for you in a portable way. > > But if you want to DIY, you can use R CMD config to find out the > appropriate linker incantation. Thank you for the clarification. I do not insist on
2009 Jul 14
1
Incorrect comment about ISNA(x) in Arith.h (PR#13826)
R-2.9.0/include/R_ext/Arith.h has: int R_IsNA(double); /* True for R's NA only */ int R_IsNaN(double); /* True for special NaN, *not* for NA */ int R_finite(double); /* True if none of NA, NaN, +/-Inf */ #define ISNA(x) R_IsNA(x) /* True for *both* NA and NaN. The first and last lines are contradictory - if R_IsNA is true only for NA, not NaN, then ISNA should be the same.
2007 Mar 03
0
2 bugs in max.col() (PR#9542)
Dear R-Developers, I think I found two bugs in max.col(). Ties between zeros are not broken, which might affect simulations. -Inf and Zero can be treated the same, which can give completely wrong results, e.g. when the second max is sought by replacing all maxs by -Inf. To fix max.col I do offer the C-code behind my function rowMax(), which also handles NAs and seems to be faster. However,
1999 Sep 15
0
buglet in lm.influence() -- easy fix but... (PR#278)
(R 0.65.0 and earlier): example(aov) lm.influence(npk.aov) gives Error: NA/NaN/Inf in foreign function call (arg 6) which comes from the lm.obj$coefficients (the last 3-way interaction coefficient is indetermined and accordingly NA) argument passed to .Fortran("lminfl",...) inside lm.influence. The following is a simple correct patch --- lm.influence.R 1999/08/13
2002 Mar 28
0
Summary: Vectorizing closest match
The original problem I posed was Let x = real vector of length n y = real vector of length n w = real vector of length m, m typically less than n/2 but can be > n z = real vector of length m For w[i], i=1,,,m, find the value of x that is closest to w[i]. In the case of ties, select one (optimally at random or just take the first match). Let z[i] = value of y corresponding to the
2008 Nov 06
3
.C(..., DUP=FALSE) memory costs depending on input size?
Hello, I'm trying to create my own C code for use within R. While optimizing the code I've noticed that even while only using pointers to get my data to C the time needed still depends on data (vector) size. To test this, I've created an empty C function to which I've send vectors containing various sizes of elements. The time needed for each call is measured and plotted. I would
2023 Nov 02
1
Updating OpenSSL from 1.x to 3 breaks kinit
On Thu, 2023-11-02 at 16:04 +0100, MATYAS, Tibor via samba wrote: > Dear all, > > updating openssl from 1.1.x to 3.x on our gentoo systems (recompiled > everything against the new openssl!) > breaks kinit: > > kinit administrator at xxxx > administrator at xxxx's Password: > kinit: rc4 8: EVP_CipherInit_ex einit > > kinit -F -k -t /etc/dhcpduser.keytab -c
2009 Jun 18
2
Argument as.integer(NA) to a function C
Hi the list, I am writing a R function that call a C function. The C function needs integers but I do not manage to give a NA integer as argument : --- C code --- void essai(int *t){ Rprintf("\nT0=%i T1=%i T2=%i T3=%i",t[0],t[1],t[2],t[3]); } --- R --- boub <- c(1,2,3,4) .C("pour",as.integer(boub),NAOK=TRUE) # T0=1 T1=2 T2=3 T3=4[[1]] # [1] 1 2 3 4 boub <-
2005 Jun 06
1
Missing values in argument of .Fortran.
I wish to pass a vector ``y'', some of whose entries are NAs to a fortran subroutine which I am dynamically loading and calling by means of .Fortran(). The subroutine runs through the vector entry by entry; obviously I want to have it do one thing if y[i] is present and a different thing if it is missing. The way I am thinking of proceeding is along the xlines of: ymiss <- is.na(y)
2010 Dec 08
1
Newbie trying to understand $ so I can understand acf function in stats
I am trying to understand the function acf stats:::acf shows me the function I am having trouble understanding the usage "$acf" in the following acf <- array(.C(R_acf, as.double(x), as.integer(sampleT), as.integer(nser), as.integer(lag.max), as.integer(type == "correlation"), acf = double((lag.max + 1L) * nser * nser), NAOK =
2005 Jul 04
2
samba loses its browse list
hi is it possible that it looses the master browser status, and it still thinks that it is the master browser? (which it does) thanks wd Guus Leeuw jr. wrote: >>-----Original Message----- >>From: samba-bounces+guus-leeuw=gmx.de@lists.samba.org [mailto:samba- >>bounces+guus-leeuw=gmx.de@lists.samba.org] On Behalf Of Csere Matyas >>Cc: samba@lists.samba.org
2015 May 28
1
libsmbclient question
Hi Jeremy, It's now clear. We'll do a short term workaround somehow. I created the bug. https://bugzilla.samba.org/show_bug.cgi?id=11295 Thanks for the useful reply. Kind regards, Szilard 2015-05-28 2:27 GMT+02:00 Jeremy Allison <jra at samba.org>: > On Wed, May 27, 2015 at 11:16:08PM +0200, Szilard Matyas wrote: > > Dear Gents, > > > > We are using
2023 Nov 02
1
Updating OpenSSL from 1.x to 3 breaks kinit
02.11.2023 18:04, MATYAS, Tibor via samba: > Dear all, > > updating openssl from 1.1.x to 3.x on our gentoo systems (recompiled everything against the new openssl!) > breaks kinit: FWIW, most distributions switched to openssl3 quite some time ago. Eg, current libssl in Debian is of version 3.0.11-1~deb12u1. You did not provide any other useful info. Two of the most important
2023 Nov 02
2
Updating OpenSSL from 1.x to 3 breaks kinit
Samba is built with the recommended heimdal kerberos. Samba version: 4.18.8 OpenSSL version: 3.0.11 The AD was created with samba 4.5.x (?) and updated continuously. I guess I need to update the old rc4 "secrets" somehow.... BR, Tibor Am 02.11.2023 um 16:51 schrieb Michael Tokarev via samba: > 02.11.2023 18:04, MATYAS, Tibor via samba: >> Dear all, >> >> updating
2000 Jul 09
1
Modified Histogram functions
Dear all, I have done further modifications on the histogram functions that I reported earlier this year, and I hope this can be of use and perhaps included in the distribution. I have been using this stuff a couple of months myself, and while it is nothing sophisticated, it has it's applications. :-) I did a few small modifications today to make it a bit more compact. I have modified the