similar to: Is there a way to vectorize this? [with correction]

Displaying 20 results from an estimated 500 matches similar to: "Is there a way to vectorize this? [with correction]"

2008 Oct 31
0
Is there a way to vectorize this?
I apologize up front for this being a little long. I hope it's understandable. Please let me know if I need to clarify anything. Several months ago I wrote a series of functions to help me take my R analyses and build custom reports in html files. Each function either builds or modifies a string of html code that can then be written to a file to produce the desired output. To make
2019 Jun 18
3
Fast way to call an R function from C++?
Hi, I'm looking for a most efficient way to call an R function from C++ in a package. I know there are two functions (`R_forceAndCall` and `Rf_eval`) that can do the "call" part, but both are slow compared to calling the same function in R. I also try to use Rcpp and it is the worse one. Here is my test code: C++ code: ``` // [[Rcpp::export]] SEXP C_test1(SEXP f, SEXP x) { SEXP
2019 Jun 18
2
Fast way to call an R function from C++?
For reference, your benchmark using UNWIND_PROTECT: > system.time(test(testFunc, evn$x)) user system elapsed 0.331 0.000 0.331 > system.time(test(C_test1, testFunc, evn$x)) user system elapsed 2.029 0.000 2.036 > system.time(test(C_test2, expr, evn)) user system elapsed 2.307 0.000 2.313 > system.time(test(C_test3, testFunc, evn$x)) user system
2011 Aug 16
6
Unicorn logging in production env
Hi All, as I can see on https://github.com/defunkt/unicorn/blob/master/lib/unicorn.rb#L53 the?Rack::CommonLogger used only in development env and in weird evn called "deployment". Any chance to add "production" to this case? Serg Podtynnyi
2007 Mar 23
4
Complex sendmail alias handling.
Hi all: I have a situation where I need to change the distribution of emails for selected accounts on a regular basis. This is for the controlling of the distribution of our "support" email address. In the past I just created a "alias.bas" file to hold the bulk of our aliases and then 3 "support" alias files, alias.wkd, alias.evn and alias.wed (for weekday, evening
2005 Dec 28
6
coverage does not work
Hi, I''ve installed coverage (gem install coverage) and try to run tests with -rcoverage option on, but following error occurs: ruby: No such file to load -- coverage (LoadError) I try: ruby -rcoverage mytest.rb 1. I have rubygems in evn var RUBYOPT 2. Gem seems to be installed properly (I can read doc via gems, the files exist in the ../gem/... dirs) Does anyone know what is the
2007 May 13
1
Strange behavior of debugger
Hi, All: I had some trouble debugging C source dynamically loaded into R , when I issued N in gdb(or insight) , the debugger, instead of moving downward step by step, jumped to strange positions (upward, downward, one step, a few steps away). To enter the debugger, I issued gdb(insight) Rgui.exe in Cygwin and add this line : asm("int $3"); to my C code. After entering R, I
2004 Dec 18
1
changing boxes
I''ve had a shorewall firewall protecting my home network for almost 3 years now which is currently on a RedHat 7.3 box and I''m running version 1.4.7 I''m replacing this box with a newer one and have set it up with Gentoo linux and the 2.6.9-r9 kernel and installed Gentoo''s distro of shorewall which is version 2.0.7. I have also compiled the needed netfilter
2010 Dec 08
1
RGL crashes
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi rgl crashes my R session, when resizing the rgl graphic window. I am using Ubuntu Maversick, with dual monitor setup. If I disconnect one monitor, I can resize it "a little bit", but it still craches if I enlarge it to much. I assume that the problem has to do with allocated graphic memory in the kernel, but why is R crashing
2010 Dec 08
1
RGL crashes
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi rgl crashes my R session, when resizing the rgl graphic window. I am using Ubuntu Maversick, with dual monitor setup. If I disconnect one monitor, I can resize it "a little bit", but it still craches if I enlarge it to much. I assume that the problem has to do with allocated graphic memory in the kernel, but why is R crashing
2004 Aug 06
3
cannot get icecast and ices to talk...authenticationfailed
I just tried with no mountpoint information, and I get the same results, icecast is still not accepting 'SOURCE hackme' as the first header, it only wants the password (verified by telneting in). So, how to I recompile libshout2 into the ices2beta? It doesn't want to take the command-line param, or the in.so.conf file setting (or the LIBDIR evn variable)... Or, can someone give me a
2019 Jun 19
0
Fast way to call an R function from C++?
Hello Kevin and I?aki, Thanks for your quick responses. I sincerely appreciate them! I can see how complicated it is to interact with R in C. I?aki's suggestion is very helpful, I saw there is a lot of performance gain by turning the flag on, but sadly the best performance it can offer still cannot beat R itself. It is interesting to see that C++ is worse than R in this special case despite
2004 Aug 06
1
cannot get icecast and ices totalk...authenticationfailed
I have the latest items, but cannot seem to figure out how to include libshout2 in the ices build...I put it into the requested conf file, set LIBDIR, and tried the --libdir param when compiling ices, with no luck. Thanks! Eric > > go to http://www.icecast.org/~brendan and get the latest libshout2 and > the latest ices-0.2.3. > > using the latest icecast2-cvs helps too. you can
2004 Dec 01
1
typo
In my previous mail the last line was supposed to be: "It turns out I probably won''t use fork unless support FOR STREAMS is added to it." aslak
2005 Feb 21
1
error in using usrmgr.exe
Hello: I have set up samba PDC using samba 3.0.11. When I use the usrmgr.exe tool on NT4 machine to add user to the domain, it prompts and says: "The following error occurred changeing properties of the user mary: fail find the group" (The error msg actually appears as Chinese in my computer, I just translate the error message). Then I check with the samba log file and it said: group
2006 Jul 11
0
"uninitialized constant Enum" in RoR app under Apache
Hi, all. I am trying to manage to run my application under Apache+Mongrel but i am stucked with very difficult (for me) problem. The problem is: RMagick stuff works perfectly under WebRick. My environment is Ubuntu 5.10, ImageMagick 6.2.8, latest version of mongrel, rails, rmagick... Apache 2.2 But if I start the same application under Mongrel I get following error NameError (uninitialized
2004 Aug 06
0
cannot get icecast and ices to talk...authenticationfailed
go to http://www.icecast.org/~brendan and get the latest libshout2 and the latest ices-0.2.3. using the latest icecast2-cvs helps too. you can get that off the icecast cvs. i'm using ices-0.2.3. with icecast2, it's very stable and since it takes almost no mem and no CPU, it's so easy to forget that it's there. url: http://tetter.xs4all.nl:8000/oth.mp3 boink <p>On
2001 Nov 26
3
Encoding or Playback problem?
Hi all, Have trouble encoding / playing back OGG using WinAmp + plugin. I encoded the files from .WAV with Ogg drop RC2. Seems to be ok. When I try and play them back though I get very very weird sound effects (some kind of "wobbling", some bass frequencies that are usually in the background seem to get more emphasised and they seem to have some kind of strange echo / reverb to it
2019 Apr 09
1
dict: Error: Fatal error in defaults handling. Program aborted
Good day to everyone Currently, I'm trying to implement the sieve "vacation" plugin with the sieve "Extdata" plugin to lookup information from a MySQL remote server. I'm following the instructions in the documentation: https://wiki2.dovecot.org/Pigeonhole/Sieve/Plugins/Extdata ===== I have the following error === Apr 09 13:46:51 mail dovecot[5512]: dict: Error:
2020 Jan 06
1
LDA-DUPES insists mon being created in the wrong home directory
Hi Vacation sieve is not respecting the days: arguement .dovecot.lda-dupes wants to be created in /home/user which doesn't exist. Below is a log fragment.. Jan 5 17:56:24 mailserv dovecot: lmtp(hans): Error: file_dotlock_open(/home/hans/.dovecot.lda-dupes) failed: No such file or directory dovecot -n says... # 2.2.33.2 (d6601f4ec): /etc/dovecot/dovecot.conf # Pigeonhole