similar to: Regarding the memory allocation problem

Displaying 20 results from an estimated 1000 matches similar to: "Regarding the memory allocation problem"

2012 Oct 25
3
problem in finding sizes of objects using a for loop
Dear All, I wanted to extract the sizes of all created objects. For E.g when I created 2 objects(x and y), I got their sizes using the following code: > x<-rnorm(10000) > y<-runif(100,min=40,max=1000) > ls() [1] "x" "y" > object.size(x) 80024 bytes > object.size(y) 824 bytes However, I was unable to get their sizes when I used a for loop in the following
2013 Jan 22
1
How to remove the vertical space between two graps
Hi, I have created a barplot using the following code. a<-c(11,23,15,34,42,31) m<-matrix(a,nrow=2) m[2,]<-(-1)*m[2,] par(mar=c(4,4,4,0)) barplot(m[2,],horiz=T) par(mar=c(4,0,4,2)) barplot(m[1,],horiz=T,col="black") and the plot obtained is shown in "plot1.tiff". I was not willing to see the gap (vertical space) between two graphs. How can I achieve it? Further
2012 Oct 08
3
turn list into dataframe
Dear R users, I'm starting to use 'apply' functions rather than for loops in R, and sometimes the output is a bit different than what I want. In this case, the command was tapply(myvector,myindex,cumsum) And the output was something like this: $`SNRL1 Core 120` [1] 2.8546 4.0778 5.2983 6.3863 7.5141 8.5498 9.5839 10.6933 $`SNRL1 Core 230` [1] 7.6810 8.7648 9.8382
2007 Mar 13
2
Sweave question: prevent expansion of unevaluated reused code chunk
Hi, Consider the following (much simplified) Sweave example: -------------- First, we set the value of $x$: <<chunk1,eval=FALSE>>= x <- 1 @ Then we set the value of $y$: <<chunk2,eval=FALSE>>= y <- 2 @ Thus, the overall algorithm has this structure: <<combined,eval=FALSE>>= <<chunk1>> <<chunk2>> @
2012 Jul 06
2
Maximum number of patterns and speed in grep
Hi, I am using R's grep function to find patterns in vectors of strings. The number of patterns I would like to match is 7,700 (of different sizes). I noticed that I get an error message when I do the following: data <- array() for (j in 1:length(x)) { array[j] <- length(grep(paste(patterns[1:7700], collapse = "|"), x[j], value = T)) } When I break this up into 4 chunks of
2011 Dec 21
1
Looping over files
Hi, ?I have a list of files in one of my working directories: "chr17.chunk1.dose.fvd" "chr17.chunk1.dose.fvi" "chr17.chunk1.prob.fvd"? "chr17.chunk1.prob.fvi"? ........... ......... ........ "chr17.chunk10.dose.fvd" "chr17.chunk10.dose.fvi" "chr17.chunk10.prob.fvd" "chr17.chunk10.prob.fvi" And I am
2012 Feb 23
5
Pls help: netfront tx ring frozen (any clues appreciated)
Hi, We are running into a situation where rsp_prod index in the shared ring is not getting updated for the netfront tx ring by the netback. We see that rsp_cons is the same value as rsp_prod, with req_prod 236 slots away(tx ring is full). From looking at the netfront driver code, it looks as if xennet_tx_buf_gc processing only happens if rsp_prod is more than rsp_cons. Our
2012 Feb 23
5
Pls help: netfront tx ring frozen (any clues appreciated)
Hi, We are running into a situation where rsp_prod index in the shared ring is not getting updated for the netfront tx ring by the netback. We see that rsp_cons is the same value as rsp_prod, with req_prod 236 slots away(tx ring is full). From looking at the netfront driver code, it looks as if xennet_tx_buf_gc processing only happens if rsp_prod is more than rsp_cons. Our
2010 Dec 11
5
(S|odf)weave : how to intersperse (\LaTeX{}|odf) comments in source code ? Delayed R evaluation ?
Dear list, Inspired by the original Knuth tools, and for paedaogical reasons, I wish to produce a document presenting some source code with interspersed comments in the source (see Knuth's books rendering TeX and metafont sources to see what I mean). I seemed to remember that a code chunk could be defined piecewise, like in Comments... <<Chunk1, eval=FALSE, echo=TRUE>>=
2011 Nov 15
1
gsub help
Hi, ?I am working with the following list of files: [1] "study_chr1.one.phased.impute2.chunk1"?????????????? [2] "study_chr1.one.phased.impute2.chunk1_info"????????? [3] "study_chr1.one.phased.impute2.chunk1_info_by_sample" [4] "study_chr1.one.phased.impute2.chunk1_summary"?????? [5] "study_chr1.one.phased.impute2.chunk1_warnings"?????? The
2012 Jun 04
1
Problems building R on Solaris (gcc 4.6, 64 bit)
Hello, I'm attempting to build R on Solaris 64-bit using gcc4, and am running into the following error: ld.so.1: R: fatal: relocation error: R_AMD64_PC32: file /home/chander.ganesan/src/r/R-2.15.0/lib/libR.so: symbol main: value 0x28001597b8c does not fit I've noticed - from some lists, and a bug here (http://trac.sagemath.org/sage_trac/ticket/9040) that this isn't an
2012 Jan 24
1
Sweave driver extension
Almost all of the coxme package and an increasing amount of the survival package are now written in noweb, i.e., .Rnw files. It would be nice to process these using the Sweave function + a special driver, which I can do using a modified version of Sweave. The primary change is to allow the following type of construction <<coxme>> coxme <- function(formula, data, subset, blah blah
2008 Feb 07
6
Buffer flushing
Short question: is there way to tell EM to actually send data after send_data call? I''m building a file transferring app. I send Mashal.dump''ed metadata first, and then - the file contents (chunked). I found a silly bug: receive_data() gets marshalled metadata and the first chunk of the file in a single variable. Like that: c1.send_data("meta")
2012 Jan 11
2
VLANs in guest VMs
Hi, We would like to use VLAN tagged packets to be sent/received by the guest VMs running on xen hypervisor. Does xen bridging support vlan tagged packets arriving on the physical nic from outside of the xen host to be passed through with the vlan tag to the vif of the guest with the guest VM receiving the tagged packet ? We have a xenbr configured with two interfaces - eth3 (physical
2023 Feb 11
1
scan(..., skip=1e11): infinite loop; cannot interrupt
On Fri, 10 Feb 2023 23:38:55 -0600 Spencer Graves <spencer.graves at prodsyse.com> wrote: > I have a 4.54 GB file that I'm trying to read in chunks using > "scan(..., skip=__)". It works as expected for small values of > "skip" but goes into an infinite loop for "skip=1e11" and similar > large values of skip: I cannot even interrupt it; I
2023 Feb 11
1
scan(..., skip=1e11): infinite loop; cannot interrupt
Hello, All: I have a 4.54 GB file that I'm trying to read in chunks using "scan(..., skip=__)". It works as expected for small values of "skip" but goes into an infinite loop for "skip=1e11" and similar large values of skip: I cannot even interrupt it; I must kill R. Below please find sessionInfo() with a toy example. My real problem is a large
2012 Jan 22
2
Best practices?
Suppose I start building nodes with (say) 24 drives each in them. Would the standard/recommended approach be to make each drive its own filesystem, and export 24 separate bricks, server1:/data1 .. server1:/data24 ? Making a distributed replicated volume between this and another server would then have to list all 48 drives individually. At the other extreme, I could put all 24 drives into some
2001 Aug 14
2
fixup_imports No implementation for NTDLL.DLL
Hi, I am a newbie and I have installed Wine release 20000909 on a machine running Mandrake7.2 and win2000. The DefaultLoadOrder for the DLLs are builtin, so, native & elfdll. LD_LIBRARY_PATH and EXTRA_LD_LIBRARY_PATH points to the directory containing the lib*.so files. I encontered the following errors while running a place & route tool.
2005 Oct 19
3
RE: how do I (now) specify wine "Path"?
Jonathan Ernst wrote: >Le mercredi 19 octobre 2005 à 11:35 -0400, John Lumby a écrit : > > I had previously been using wine 20041019. In > > that wine, the .wine dir had a config file where you could specify > > [wine] > > ... > > "Path" = "C:\\Windows;C:\\Windows\\System" > > > >Settings have been moved in the registry. You
2012 Oct 09
2
Text file: multiple matrix
Hi there! I'm a newbie in R This is my problem: I have a txt file composed by 100 matrix (256x256) separated by a blank line! How can I save automatically the matrix in separated txt file (100)? e.g. 1? matrix from line 1 to line 256 257 blank line 2?matrix from line 258 to line 513 514 blank line 3? matrix from line 515 to line 770 771 blank line 4? matrix from line 772 to line 1027......