similar to: long double, C, fortran

Displaying 20 results from an estimated 1700 matches similar to: "long double, C, fortran"

2011 Mar 17
1
assigning to list element within target environment
I would like to assign an value to an element of a list contained in an environment. The list will contain vectors and matrices. Here's a simple example: # create toy environment testEnv = new.env(parent = emptyenv()) # create list that will be in the environment, then assign() it x = list(a=1,b=2) assign("xList",x,testEnv) # create new element, to be inserted into xList c = 5:7
2014 Dec 20
2
Unexplained difference between results of dppsv and dpotri LAPACK routines
Dear R contributors, Considering the following sample C code, that illustrates two possible uses of a Cholesky decomp for inverting a matrix, equally valid at least in theory: SEXP test() { int d = 2; int info = 0; double mat[4] = {2.5, 0.4, 0.4, 1.7}; double id[4] = {1.0, 0.0, 0.0, 1.0}; double lmat[3]; F77_CALL(dpotrf)("L", &d, mat, &d, &info); lmat[0] = mat[0]; lmat[1]
2009 Apr 09
4
problems with integrate ... arguments
Hi everyone, I saw this problem dealt with here: http://markmail.org/search/list:r-project?q=integrate#query:list%3Ar-project%20integrate+page:1+mid:qczmyzr676pgmaaw+state:results but no one answered that request that I can tell. I'm having the same problem. I'm having problems passing arguments to functions that I'd like to integrate. I could swear this worked in the past, but I
2013 Jan 27
2
Loops
Dear Contributors, I am asking help on the way how to solve a problem related to loops for that I always get confused with. I would like to perform the following procedure in a compact way. Consider that p is a matrix composed of 100 rows and three columns. I need to calculate the sum over some rows of each column separately, as follows: fa1<-(colSums(p[1:25,])) fa2<-(colSums(p[26:50,]))
2010 Jan 03
3
F77_CALL, F77_NAME definition
I give up. Maybe it is my search (Windows) but I cannot seem to find the definition of the F77_CALL or F77_NAME macros. Either there are too many matches or the search just doesn't find it. For example where is the source for: F77_CALL(dpotri) ? Thank you. Kevin
2008 Aug 25
1
aov, lme, multcomp
I am doing an analysis and would like to use lme() and the multcomp package to do multiple comparisons. My design is a within subjects design with three crossed fixed factors (every participant sees every combination of three fixed factors A,B,C). Of course, I can use aov() to analyze this with an error term (leaving out the obvious bits): y ~ A*B*C+Error(Subject/(A*B*C)) I'd also like
2013 Aug 27
1
Error in simulation. NAN
Hi all, im triyng to implement a bayesian model with R and c++. I have a strange problem. I can't reproduce the error with a small script and then i post the original one. The problem is after the line for(MCMC_iter2=0;MCMC_iter2<thin;MCMC_iter2++) For the first 34 iterations all work fine, after, all the simulations of mu_acc_P return an "nan". If i delete the line
2014 Dec 20
0
Unexplained difference between results of dppsv and dpotri LAPACK routines
This isn't the help list for LAPACK, but as far as I can tell, dppsv expects a symmetric matrix input compacted as triangular, not a Choleski decomposed one. So try assigning lmat before the call to dpotrf. -pd > On 20 Dec 2014, at 22:06 , Pierrick Bruneau <pbruneau at gmail.com> wrote: > > Dear R contributors, > > Considering the following sample C code, that
2004 Aug 24
2
bug or no?
The following code prints [1] 2, as it should temp<-function(ab,...){ print(ab) } temp(2,s=3) However, this code prints [1] 3: temp<-function(sb,...){ print(sb) } temp(2,s=3) It should still print [1] 2. It appears that if a variable in ... begins with the same letter as another variable, the value in the variable in ... overwrites the value in the variable with the same first letter. I
2006 Apr 28
0
random NaN in dpotri result
Hello all, In a piece of c++ code (part of a future R package), I'm inverting a relatively large covariance matrix many times using: F77_CALL(dpotrf)(&upper, &xnrow, R, &xnrow, &info); F77_CALL(dpotri)(&upper, &xnrow, R, &xnrow, &info); I am sure that the input matrix is PD and inverts just fine. However, I have found that dpotri gives one or more NaNs from
2004 Aug 24
2
function bug (PR#7199)
output of R.version platform i686-pc-linux-gnu arch i686 os linux-gnu system i686, linux-gnu status major 1 minor 9.1 year 2004 month 06 day 21 language R The following code prints [1] 2, as it should temp<-function(ab,...){ print(ab) } temp(2,s=3) However, this code prints [1] 3: temp<-function(sb,...){ print(sb) } temp(2,s=3) It should still print [1] 2.
2004 Oct 21
2
a few questions
I don't have any there; I suppose that is the problem. I did a locate *.xslt and nothing pertaining to icecast came up. I suppose I should grab the source and check it out. I installed from the rpm. Thanks, Richard Michael Smith wrote: >On Thursday 21 October 2004 14:50, Richard Morey wrote: > > >>Ok, I think I see. The xslt files are kind of a template which tells
2009 Jul 09
1
Changing text in a tkentry widget
I searched the web and the list archives for a solution to this, but didn't see anything, so here goes. I'm new to tcltk. I'm trying to change the contents of a tkentry widget when a button is pressed. Once I get that working, the widget will be read only to the user. Here is some toy code: ############### require(tcltk) thisEnv=environment() tt<-tktoplevel() Name <-
2004 Oct 20
5
a few questions
I have just gotten a stream working and it is very cool. I am using ices0.4 to stream mp3s to icecast2 under redhat 9. I have a couple of questions, though: 1. No files are being written to the admin directory. It is successfully writing the access and error logs and the pid file. The path is correct in the icecast.xml file. The user has write access to the admin directory. Do I need to turn
2005 Jul 05
1
calling fortran functions CHOL and DPOTRF form Fortran
Hi all, I'm working out some Fortran code for which I want to compute the Choleski decomposition of a covariance matrix in Fortran. I tried to do it by two methods : 1) Calling the lapack function DPOTRF. I can see the source code and check that my call is correct, but it does not compile with: system("R CMD SHLIB ~/main.f") dyn.load("~/main.so") I get: Error in
2008 Jun 07
5
Fax on FXS
Hi List; What configuration needed to let my FXS send and receive FAX? Regards Bilal
2004 Oct 20
2
a few questions
Ok, I think I see. The xslt files are kind of a template which tells icecast how to format the xml file that is the admin interface? Where can I get either an example xslt file or information on how this works? I didn't see details in the icecast docs. I have now skimmed the information on xml.com, but don't I need to know what xml tags icecast uses? Thanks for the help, Richard
2004 Oct 20
2
a few questions
I was under the impression icecast wrote useage statistics to that directory, and you accessed them via http://host:port/admin/ Where does the xslt file come from that it tries to access when you attempt to access the admin page? Michael Smith wrote: >On Thursday 21 October 2004 05:36, Richard Morey wrote: > > >>I have just gotten a stream working and it is very cool. I am
2012 Oct 14
2
problem with OSX binary package build?
I noticed that my package BayesFactor (http://cran.r-project.org/web/packages/BayesFactor/index.html) is not available on Mac OS, and the note says to see the check log. The only issue in the check log is a note: checking R code for possible problems ... NOTE all.Nways.env.mc : <local>: no visible binding for global variable 'i' all.Nways.env.mc: no visible binding for global
2007 Mar 05
1
Samba over SSH to Windows Vista
After having scoured the net for a way to do SMB over SSH with Windows, I've tried everything I have found and I still can't get it to work. I'm using Windows Vista as the client and FC6 with Samba 3.0.24-1 as the server. I have set up a share and can successfully connect to that share with no ssh tunnel. I would like to tunnel SMB over SSH, so here is what I have tried: 1.