similar to: Question on memory allocation & loop

Displaying 20 results from an estimated 20000 matches similar to: "Question on memory allocation & loop"

2009 Oct 28
3
variable labels to accompany data.frame
Often it is useful to keep a "codebook" to document the contents of a dataset. (By "dataset" I mean a rectangular structure such as a dataframe.) The codebook has as many rows as the dataset has columns (variables, fields). The columns (fields) of the codebook may include: ? variable name ? type (character, factor, integer, etc) ? variable label
2005 Sep 21
2
Help on optim
Dear R-help, I am new to optim function and need some help with optimization. Problem description: I am trying to optimize a weights vector such that it produce maximum value for a function maxVal. The optimization is subjected to constraint. The constraints are a) Min weight should be greater than or equal to Zero. b) Max weight should be less than or equal to 1 c) Sum of the
2011 Apr 13
2
Dump the "source code" of data frame
Dear R experts, I remember a similar function existed and have been mentioned in R-help before. I tried my best to search but I really can't find it out. suppose I have an data frame like this: > somedata <- data.frame(age.min = 1, age.max = 1.5, male = TRUE, l = -1.013, m=16.133, s=0.07656) In order to back up the data and I don't want to use write.table(), I would like to back
2006 Jul 19
2
conditional plot
Hi, Can anyone pls help me in plotting the following data? The data-set contains company name, specification-1, specification-2. The graph would basically plot company name with specification-1 on x-axis, & specification-2 on y-axis. Simply put - company name should get classified into one of the four quardrants created by specification 1 & specification2. Thanks.
2005 May 30
3
Vector Manipulation
Dear All, For any given vector, I want to extract a sub-vector such that the new vector skips all zeros, if any , at the start of vector. Is it possible to achieve this w/o looping? E.G : > x = c(0,0,1,2,3,4,5,0,0,8,9) > y = somefunc(x); > y [1] 1 2 3 4 5 0 0 8 9 In the example above, I want to skip the two
2005 Mar 16
1
Note: "The default device has been opened to honour attempt to modify trellis settings"
R-help, I'm using a function whose end result is a trellis plot. When I call the function I get sometimes the following message: "Note: The default device has been opened to honour attempt to modify trellis settings " leading up to any plot whatsoever. I call the package 'lattice' within the function and 'detach' after plotting. I have to close the graphics
2013 Sep 23
2
[LLVMdev] LLVM ERROR: expected relocatable expression
Hi Eli, Slightly changed the example :- .section somedata .Ltmpa: .word 100 .Ltmpb: .word 60 .Ltmpc: .word 40 .Ltmpd: .word (.Ltmpa-.Ltmpb)-.Ltmpc The GNU assembler properly handles the above. $as -c x.s -o x.o $readelf -x 4 x.o Hex dump of section 'somedata': NOTE: This section has relocations against it, but these have NOT been applied to this dump. 0x00000000 64003c00
2008 Apr 21
1
Compile libtheora 1.0beta3 with VS2005
Hi all, I tried to compile the theora source with VS2005. But it asked for the ogg library. error message is as follow. **************************************************************************** Error 1 fatal error C1083: Cannot open include file: 'ogg/ogg.h': No such file or directory c:\Documents and Settings\Manoj\Desktop\libtheora-1.0beta3\include\theora\codec.h 64 Error
2013 Feb 11
1
[LLVMdev] llvm-installation
hello sir, ./configure worked properly but while giving make -j 2 command in ubuntu everything got build properly but at last it showed error as llvm[4]: Linking Debug+Asserts executable clang collect2: ld terminated with signal 9 [Killed] make[4]: *** [/home/manoj/Desktop/LLVM/ build/Debug+Asserts/bin/clang] Error 1 make[4]: Leaving directory
2013 Feb 11
1
[LLVMdev] llvm
hello sir, ./configure worked properly but while giving make -j 2 command in ubuntu everything got build properly but at last it showed error as llvm[4]: Linking Debug+Asserts executable clang collect2: ld terminated with signal 9 [Killed] make[4]: *** [/home/manoj/Desktop/LLVM/build/Debug+Asserts/bin/clang] Error 1 make[4]: Leaving directory `/home/manoj/Desktop/LLVM/
2013 Feb 10
2
[LLVMdev] llvm-installation
hello sir, in llvm installation ./configure command worked properly but while giving make -j 4 command in ubuntu everything got build properly but at last it showed error as llvm[4]: Linking Debug+Asserts executable clang collect2: ld terminated with signal 9 [Killed] make[4]: *** [/home/manoj/Desktop/LLVM/ build/Debug+Asserts/bin/clang] Error 1 make[4]: Leaving directory
2013 Feb 10
0
[LLVMdev] llvm-installation
You should use make -j with a number lower than 4, it looks like you ran out of memory when linking. On 10 February 2013 15:41, Manoj C <manoj.chinthala at gmail.com> wrote: > hello sir, > in llvm installation ./configure command worked properly but while > giving > make -j 4 command in ubuntu > > everything got build properly but at last it showed error as > >
2013 Sep 23
0
[LLVMdev] LLVM ERROR: expected relocatable expression
On Sun, Sep 22, 2013 at 9:43 PM, Shankar Easwaran <shankare at codeaurora.org>wrote: > Hi Eli, > > Slightly changed the example :- > > .section somedata > .Ltmpa: > .word 100 > .Ltmpb: > .word 60 > .Ltmpc: > .word 40 > .Ltmpd: > .word (.Ltmpa-.Ltmpb)-.Ltmpc > > The GNU assembler properly handles the above. > > $as -c x.s -o x.o >
2009 May 04
8
CentOS DomU on Opensolaris Dom0 - virt-install fails with error in virDomainCreateLinux()
Hi, I am trying to install CentOS on an Opensolaris Dom0. virt-install fails with an error in virDomainCreateLinux(). Is this a known issue? Am I missing some step? manoj@mowgli:~$ uname -a SunOS mowgli 5.11 snv_101b i86pc i386 i86xpv Solaris manoj@mowgli:~$ pfexec virt-install What is the name of your virtual machine? centos How much RAM should be allocated (in megabytes)? 512 What would
2009 Jun 25
1
error: ‘FT_MulFix’ undeclared here
Hi, I am using ubuntu 9.04. I have installed ubuntu 9.04. And then downloaded wine-1.0.1.tar.bz2 from winhq/download site. Then follow following steps: 1) Untar files: tar jxvf wine-1.0.1.tar.bz2 2) cd wine-1.0.1/ 3) ./tools/wineinstall During step three, following error comes: ******************************************** make[2]: Leaving directory `/home/manoj/wine-1.0.1/dlls/fusion'
2013 Mar 19
1
How can I eliminate a loop over a data.table?
I've two data.tables as shown below: *** N = 10 A.DT <- data.table(a1 = c(rnorm(N,0,1)), a2 = NA)) B.DT <- data.table(b1 = c(rnorm(N,0,1)), b2 = 1:N) setkey(A.DT,a1) setkey(B.DT,b1) *** I tried to change my previous data.frame implementation to a data.table implementation by changing the for-loop as shown below: *** for (i in 1:nrow(B.DT)) { for (j in nrow(A.DT):1) { if
2008 Jul 28
2
Help with a loop
HI: I need ideas on how to make this code shorter (maybe with a second loop?). The code as it is works, but in this case I only have 14 samples, but it will become insane with more, so I need a way to make it more automatic. The problem is that the output from ts1, ts2, and so on is a vector with more than one value, so I do not know how to solve this. Thanks Prenewbie The code is the
2010 Sep 24
1
color of lines while printing through for loop
I am trying to find a convenient way to control line colors when printing from a for loop using the lines command. Right now I have solved this by creating a colors vector that is refered to in the loop with index. However, the colors choosen here are just 1,2,3,4,5... I would like to get colors from the col = rainbow(x) that you can use in plot() and set the to be my number of lines (I think
2005 May 10
2
Manoj Shetty is out of the office. [Email checked- EMEA]
Whew... What a relief. I know the list was worried about why we could not get a hold of Manoj Shetty.... W -----Original Message----- From: asterisk-users-bounces@lists.digium.com [mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of Manoj Shetty Sent: Monday, May 09, 2005 12:24 PM To: asterisk-users Subject: [Asterisk-Users] Manoj Shetty is out of the office. [Email checked- EMEA] I
2006 Feb 28
1
Problem with incoming call, Please help
Hi All, I was able to install Asterisk and make outgoing calls. Recently I purchased two DID's and I am facing a problem configuring them to my Asterisk, I hope with the help I get from this list I will be able to configure successfully. Mu errors are Feb 28 08:31:58 NOTICE[19133]: pbx.c:1331 pbx_extension_helper: Cannot find extension context 'context_mantra2' Feb 28 08:31:58