Displaying 20 results from an estimated 500 matches similar to: "optim-Bug (PR#6720)"
2008 Jan 19
1
R_alloc segfaults
I want to write a little stand-alone C program that calls R_alloc, but
I get a segmentation fault:
int main(int argc, char** argv){
double* d = (double *)R_alloc(2, sizeof(double)); // <- segmentation fault!
return 0;
}
gdb reveals that sizeof(double) evaluated to 0:
> R_alloc (nelem=2, eltsize=0) at memory.c:1649
so it results in the segfault later.
This is how I compile my
2006 Jul 21
0
(no subject)
Hi,
I am having problems when trying to apply factor analysis in a covariance matrix,
> factanal(covmat=strip1cmcd, factors=5, control=list(lower=0.0264))
Error in optim(start, FAfn, FAgr, method = "L-BFGS-B", lower = lower, :
non-finite value supplied by optim
In addition: Warning message:
NaNs produced in: sqrt(diag(cv))
I have searched for possible solutions in
2014 Sep 07
1
lbfgsb from C/C++
Hi,
I would like to call R's lbfgsb function from my C/C++ code by including
R_ext/Applic.h and linking against libR.
Currently, I am allocating memory for x (and the other input arrays for
lbfgsb) in my C/C++ code via malloc/new. However, this gives a segmentation
fault when executing the program.
I tried to allocate x via PROTECT(x = NEW_NUMERIC(n)); x_p =
NUMERIC_POINTER(x);.
This compiles
2002 Jan 17
2
Solaris 2.6 Compile (PR#1268)
Full_Name: Geordon Marchak
Version: R-1.3.1
OS: Solaris 2.6
Submission from: (NULL) (199.67.239.91)
Got the following error when compiling on Solaris 2.6 with the standard GNU
gcc package (from the Sun site). BTW - linux compiles no problem (and fast
too :-)
# make
`Makedeps' is up to date.
gcc -I. -I../../src/include -I../../src/include -I/usr/local/include
-DHAVE_CONFIG_H -g -O2 -c
2002 Jun 13
3
[R] help debugging segfaults
Hi all,
Thanks to Prof. Ripley, Prof. Gentleman, and Simon Wood (did I miss
anyone?). The problem seemed to have gone away.
Everyone suggested using some malloc debugger (such as Electric Fence). All
I did was following half of what BDR suggested below, i.e., changing all the
S_alloc() calls to Calloc() and Free(). I didn't get to try efence, and the
problem seems to have disappeared!
As
2007 Feb 15
1
Function to assign quantiles?
Hi.
If I call the quantiles function as follows:
qvec = quantiles(dvals,probs=seq(0,1,0.1))
the results will return a vector something like the following example:
0% 10% 20% 30% 40% 50% 60% 70% 80% 90%
100%
56.0 137.3 238.4 317.9 495.8 568.5 807.4 1207.7 1713.0
2951.1 8703.0
Now I want to assign the deciles, 1 - 10, to each
2005 Nov 13
1
Memory allocation (PR#8304)
Full_Name: Hans Kestler
Version: 2.2.0
OS: 10.4.3
Submission from: (NULL) (84.156.184.101)
> sam1.out<-sam(raw1[,2:23],raw1.cl,B=0,rand=124)
We're doing 319770 complete permutations
Error: cannot allocate vector of size 575586 Kb
R(572,0xa000ed68) malloc: *** vm_allocate(size=589402112) failed (error code=3)
R(572,0xa000ed68) malloc: *** error: can't allocate region
1998 Jan 21
2
alloc
I am trying to get our database interface (PADI) working with R. The code does
some memory allocation and for Splus there is an ifdef which controls whether
malloc or S_alloc is called. I did nm R.binary | grep alloc to see if this was
supported and I find there are some choices:
[2490] | 446036| 272|FUNC |GLOB |0 |7 |R_alloc
[806] | 693956| 312|FUNC |LOCL |0 |7
2002 May 06
2
compiling on Solaris 7 (PR#1520)
Full_Name: Chris Pelton
Version: R-1.5.0
OS: Solaris &
Submission from: (NULL) (169.237.121.210)
I am unable to compile R-1.5.0, and am getting the following errors with make. I
searched through
the buglist and didn't see anything similar, although I wouldn't doubt if I was
just
using the wrong version of something.
gcc version 3.0.3
gcc -I. -I../../src/include
2008 Mar 07
1
parameters for lbfgsb (function for optimization)
Can anyone help me with lbfgsb (function for optimization)?
It takes the following parameters:
void lbfgsb (int n, int lmm, double *x, double *lower,
double *upper, int *nbd, double *Fmin, optimfn fn,
optimgr gr, int *fail, void *ex, double factr,
double pgtol, int *fncount, int *grcount,
int maxit, char *msg, int trace, int nREPORT);
What do I put for parameter ex (11th parameter)? I looked at
2004 Jun 10
1
Can´t start help and update on Mac (PR#6920
--Apple-Mail-1--963012407
Content-Transfer-Encoding: 7bit
Content-Type: text/plain;
charset=US-ASCII;
format=flowed
Hi,
I get exactly the same error message as in report no 6920. Furthermore,
starting "update Bioconducter" the following message appears (running
Mac OS X 10.3.4 (7H63)) :
> {library(reposTools);update.packages2(getAllDeps=TRUE)}
Synching your local package
2016 Oct 08
4
optim(…, method=‘L-BFGS-B’) stops with an error message while violating the lower bound
Hi, Mark et al.:
Thanks, Mark.
Three comments:
1. Rvmmin was one of the methods I tried after Ravi
directed me to optimx. It returned NAs for essentially everything. See
my email of this subject stamped 4:43 PM Central time = 21:43 UTC.
2. It would be interesting to know if the current
algorithm behind optim and optimx with
2002 Mar 01
1
fft
Hi,
I have problems when calling fft_factor and fft_work directly in my
C-code. Martin Maechler already told me that I should not do this --
anyway, the code works fine if the length of the vector is a multiple
of 2,3,5.
If the length of the vector has different form I get, in some cases, a
segmentation fault when work and iwork are freed (I use C's malloc to
allocate memory for work and
2009 Jul 02
1
Problem with groupedData and lme
Dear R-users,
I'm currently having trouble with the implementation of a groupedData
object in the lme() function.
Executing the following function
> applyScalingSimp <- function(input.population)
> {
> ## GA is a time value
> varInOrder <- c("GA","weight","grouping","sex")
> modelVar <-
1999 Dec 23
1
rpart on Alpha under OSF
Running on an Alpha machine which reports (uname -a)
OSF1 bsdx01.bs.ehu.es V4.0 878 alpha
and using the binary distribution put together by Albrecht Gebhardt
(in http://cran.at.r-project.org/bin/osf/osf4.0/tar/alpha_ev5/) I
obtain core dumps whenever I try to use package rpart. I have R
REMOVE'd the rpart package, downloaded the source rpart_1.0-7.tar from
CRAN and
2005 Dec 04
4
Construct a data.frame in a FOR-loop
Say I have a FOR-loop for computing powers (just a trivial example)
for(i in 1:5)
{
x<-i^2
y<-i^3
}
How can I create a data.frame and a 3D plot of (i,x(i),y(i)), i.e. for
each iteration
Thanks,
Serguei Kaniovski
--
___________________________________________________________________
??sterreichisches Institut f??r Wirtschaftsforschung (WIFO)
Name: Serguei Kaniovski
2000 Aug 15
1
Defective pointer to tech report (PR#634)
Full_Name: Rod Montgomery
Version: 1.1.0
OS: Windows-95
Submission from: (NULL) (38.26.56.3)
File R-1.1.0/src/appl/lbfgsb.c --
Comment in code says two papers describing underlying math are in
ftp://ece.nwu.edu/pub/lbfgs/lbfgs_bcm/
but that directory seems not to exist.
(Actually, the comment does not give a URL - it just says
to look in that directory on that FTP server.)
Paper [1] does
2020 May 04
1
error in message printed by L-BFGS-B
Hi
I have a FORTRAN version of the L-BFGS-B algorithm and I was comparing it
to the code in the lbfgsb.c file available at R-4.0.0.tar.gz
Everithing looks the same, except for those two lines that must be printed
by the prn3lb function in case of an error (lines 3559 and 3561 in
lbfgsb.c):
case -5: Rprintf("l(%d) > u(%d). No feasible solution", k, k); break;
case -7:
2016 Aug 11
2
Invoke loop vectorizer
Hi there ,
I use clang-cl /Qvec test.c to compile the code. But the pass
LoopVectorizer is never invoked.
I was wondering if this is sufficient to enable auto vectorizer?
Thanks,
Xiaochu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20160811/8b6cb760/attachment.html>
2002 Jun 12
3
help debugging segfaults
(Sorry for the cross-post--- I wasn't sure which list is more
appropriate...)
Hi everyone,
I've run into segfaults when using my randomForest package on large dataset
(e.g., 100 x 15200) and large number of trees (e.g., ntree=7000 and
mtry=3000). I'm wondering if anyone can give me some hints on where to look
for the problem.
The randomForest package mainly consists of two things: