Displaying 20 results from an estimated 1000 matches similar to: "Changing options in R CMD SHLIB"
2009 Aug 31
2
Problem in matrix definition?
I'm implementing a function to compute the moore-penrose inverse, using a code from the article: Fast Computation of Moore-Penrose Inverse Matrices. Neural Information Processing - Letters and Reviews. Vol.8, No.2, August 2005
However, the R presents an error message when I use the geninv.
The odd thing is that the error occurs for some arrays, however they have the same size. And the R
2009 Aug 12
2
Problem with function in fortran 95
I am writing a function in fortran 95, but the intrinsic function MATMUL is not working properly. Here's an example.
SUBROUTINE mymult(x,y,res,m,n)
IMPLICIT NONE
INTEGER :: m,n
REAL :: x, y, res
DIMENSION :: x(m,n), y(n,m), res(m,m)
res = MATMUL(x,y)
END SUBROUTINE mymult
R CMD SHLIB mat.f95
In R:
dyn.load("mat.so")
x <-
2009 Dec 14
1
Logit Estimation with Panel Data
Hi all!
Do you know if there is any R function/package that can be used to
estimate "logit" models with panel data and forecasting?
Thanks,
Moysés.
--
Moysés Nascimento
Bacharel em Estatística/UFES
Mestre em Estatística Aplicada e Biometria/UFV
Doutorando em Estatística e Experimentação Agropecuária/UFLA
moysesnascim@gmail.com
[[alternative HTML version deleted]]
2009 Oct 02
1
Compiling with High Performance Fortran
Dear,
I looked in the list something on as to compile a code with access the High Performance FORTRAN using R CMD SHLIB, but I did not find. Would like to know if the accepted R this type of language?
Thanks!
? ???????????? F?bio Mathias Corr?a
Estat?stica e Experimenta??o Agropecu?ria/UFLA
____________________________________________________________________________________
Veja quais
2019 Feb 01
2
Set the number of threads using openmp with .Fortran?
Hi everybody,
I'm trying to develop an R package with Fortran and OpenMP. I wrote a
simple hello world but I'm not able to set the number of threads. I found this
old email chain
<http://r.789695.n4.nabble.com/Set-the-number-of-threads-using-openmp-with-C-td2284685.html>
and
I tried to set my compile instructions accordingly but i had no luck.
*This is my makevars:*
2019 Feb 02
1
Set the number of threads using openmp with .Fortran?
I got this to work on Linux but it is not working on Windows. *My
understanding is that this should also work on windows, is that correct?*
If so, what should I do? differently?
To get it to work on Linux, I modified my R script as follows:
#' OpenMP Hello World
#'
#' @param nthreads The number of threads that you want to use
#' @example
#' hello(nthreads=2)
#' @export
2008 Oct 21
4
subscripting a one column matrix drops dimension
Hi all,
Why subscripting a one column matrix drops one dimension?
> x<- matrix(rnorm(100), ncol=1)
> str(x)
num [1:100, 1] -0.413 -0.845 -1.625 -1.393 0.507 ...
> str(x[20:30,])
num [1:11] -0.315 -0.693 -0.771 0.448 0.204 ...
> str(x[20:30])
num [1:11] -0.315 -0.693 -0.771 0.448 0.204 ...
This breaks:
> cov(x)
[,1]
[1,] 0.9600812
>
2003 Sep 30
2
truncated multivariate normal
Please,
I would like to know how to generate a truncated multivariate normal
distribution k - dimensional, X ~ NT(mu, Sigma), where the
elements of X to be non-negative (except the first), and the first
dimension is strictly larger than zero.
Example:
X ~ NT_2(mu, Sigma),
where mu=c(0.5, 0.5) and Sigma=c([120, 191], [191,154]), with X_1>0
and X_2>=0
Could anybody help
2010 Dec 14
1
How to specify compiler options when using R CMD SHLIB
Hi
I've built a dll using Fortran code and can call it by either R or
Fortran. Calling by the former gives me the wrong answer and the later
gives the correct answer.
>From what I've read, it looks like I should use the subroutines DBLEPR,
INTPR and REALPR to print to the R console rather than using Fortran
standard I/O and that if I use the command
R CMD SHLIB source.f that these
2011 Apr 20
2
Include C++ DLL, error in ...: C symbol name not in load table
Hello R experts
I am googling and reading around, however, I can't get it working
(perhaps because I do not understand much C, however, I'll give it
a try). I am trying to include C++ code into an R routine, where
the C++ code looks:
#include <iostream>
using namespace std;
void foo (double* x, double* y, double* out)
{
out[0] = x[0] + y[0];
}
Back in R, the command
R CMD
2009 Jun 06
1
Qs on calling R from C
Consider the following simple C program:
/*** hello_r.c ***/
#include <Rinternals.h>
SEXP hello() {
return mkString("Hello, world!\n");
}
int main(void) {
SEXP x = hello();
return x == NULL; /* i.e. 0 on success */
}
This program segfaults:
% myR/bin/R CMD LINK gcc -I./R-2.9.0/src/include -L./myR/lib64/R/lib -lR
hello_r.c -o hello_r > /dev/null
% hello_r
zsh:
2016 Jul 28
0
Creating shared object with BASE in EXPORTS on Windows
I am building shared objects on Windows system with BASE as a name in
the shared object. When BASE appears under EXPORTS in tmp.def file, R
CMD SHLIB doesn't succeed. This happens on Windows but not Mac or
Ubuntu.
Minimal examples:
////////////////////////////////////////
This code builds fine
////////////////////////////////////////
void base(int *nin, double *x) {
int n = nin[0];
int
2020 May 27
2
OpenMP Error in Clang
Hello,
I am getting the following error while trying to build a benchmark with a custom function pass:
clang -Xclang -fopenmp=libomp -Xclang -load -Xclang my_lib.so file.c
error: unknown argument: '-fopenmp=libomp'
If I use this instead:
clang -Xclang -fopenmp=libomp -Xclang -load -Xclang my_lib.so file.c
I get the error: fatal error: 'omp.h' file not found
I am not
2015 May 02
2
[LLVMdev] [cfe-dev] libiomp, not libgomp as default library linked with -fopenmp
On Sat, May 02, 2015 at 11:18:35PM +0300, Andrey Bokhanko wrote:
> 3) Some people believe that libiomp is not a proper name anymore and
> should be changed. I'm not a library expert, so really don't know.
> However, this means that we should flip default library setting ASAP.
> Why? Because now "libiomp5" is a user-visible name (one has to use
>
2016 Aug 02
0
Creating shared object with BASE in EXPORTS on Windows
It looks like `BASE` is a keyword in the .def file specification.
https://github.com/bminor/binutils-gdb/blob/master/ld/deffilep.y#L241-L268
For several keywords, I could replicate the syntax error from ld.exe
when the keyword was listed in EXPORTS in the .def file.
As far as I can tell, the dllname-win.def file is a must in this case
making sure none of the keywords get exported there.
2015 May 12
2
[LLVMdev] [Openmp-dev] OpenMP 3.1 Implementation Complete
Jack,
Alexey [Bataev] promised to send it for review in a day or two. Then it should be approved by code reviewers, which might take some time.
andrey
Отправлено с iPad
> 12 мая 2015 г., в 21:22, Jack Howarth <howarth.mailing.lists at gmail.com> написал(а):
>
> Andrey,
> Any idea when the patch to enable openmp as the default for
> -fopenmp will be posted to
2015 May 08
2
[LLVMdev] [Openmp-dev] OpenMP 3.1 Implementation Complete
No, just changing defaults -- subject to code reviewers approval.
As I said before, I prefer to leave library naming to library pros.
Andrey
On Fri, May 8, 2015 at 7:21 PM, Jack Howarth
<howarth.mailing.lists at gmail.com> wrote:
> So you plan on switching and enabling the openmp library defaults as
> well as changing the openmp library name at the same time?
> Jack
>
2015 May 02
3
[LLVMdev] libiomp, not libgomp as default library linked with -fopenmp
Jack,
Could you, please, submit a bug report? -- including steps to
reproduce (where you got imageMagick sources, how exactly you compiled
them, etc)
Andrey
On Fri, May 1, 2015 at 3:56 PM, Jack Howarth
<howarth.mailing.lists at gmail.com> wrote:
>
>
> On Fri, May 1, 2015 at 4:45 AM, Andrey Bokhanko <andreybokhanko at gmail.com>
> wrote:
>>
>> Chandler,
2015 May 13
2
[LLVMdev] [Openmp-dev] OpenMP 3.1 Implementation Complete
Jack, this is not a problem of this patch, this a problem of your
configuration. This patch uses standard clang machinery for locating
libiomp5 library.
Best regards,
Alexey Bataev
=============
Software Engineer
Intel Compiler Team
13.05.2015 15:59, Jack Howarth пишет:
> On Tue, May 12, 2015 at 3:58 PM, <andreybokhanko at gmail.com> wrote:
>> Jack,
>>
>> Alexey
2019 Jan 06
4
Failed to install RQuantLib in Ubuntu machine
Hi,
<This issue was previously posted in R-help, but advised to post here as a
more relevant group>
I was trying to install RQuantLib in my Ubuntu machine which failed with
below information :
*> install.packages('RQuantLib', repos='http://cran.rstudio.com/
<http://cran.rstudio.com/>', INSTALL_opts = c('--no-lock'))*
*Installing package into