similar to: shifting a huge matrix left or right efficiently ?

Displaying 20 results from an estimated 10000 matches similar to: "shifting a huge matrix left or right efficiently ?"

2005 Nov 24
1
Inversion function of dnorm ?
Hi, In R, qnorm is the inversion function of pnorm. (c.d.f) But there is no inversion function for dnorm. (p.d.f). Is there any easy (and quick) way to compute the inversion function of p.d.f in R ? Thanks ...
2008 Oct 01
3
shifting ticks to left or right
Hey list, Does anybody knows a command to centre the tick mark labels exactly between the tick points (right shift)? And then to exclude the last tick label on the right? I know one can shift them using the 'hadj' option in par. But I am wondering if there is a more convenient command! Thanks a lot!! Stefan [[alternative HTML version deleted]]
2010 Apr 09
2
lattice background grid
Hi, I wonder if anyone knows how to control color and darkness of the background grid generated by ' type = c("g", "p") ' in a lattice plot (e.g., in xyplot). The documentation does not seem to offer a way to change them. Thanks a lot! Wen
2009 Sep 06
3
linear mixed model question
Hello, I wanted to fit a linear mixed model to a data that is similar in terms of design to the 'Machines' data in 'nlme' package except that each worker (with triplicates) only operates one machine. I created a subset of observations from 'Machines' data such that it looks the same as the data I wanted to fit the model with (see code below). I fitted a model in
2008 May 30
1
Question about adding text to xYplot(Hmisc)
Hello, I have been trying to make a graph that have error bars and text at specific position. I used the following code from the help file of xYplot(Hmisc) as an example except I add a myPanel function, which is just supposed to add letters from the alphabet at the position aligned at y = 3. It constantly gives me error: "Error using packet 1 argument "subscripts" is
2008 Nov 11
1
Question about Sort
Hi, I am wondering if there is an option to control how R sort characters on different machines. For example, on my Mac OS X > sort(c("H", "a"), decreasing = TRUE) [1] "a" "H" The same command on a Linux machine gives me > sort(c("H", "a"), decreasing = TRUE) [1] "H" "a" I don't know if there is an
2020 Nov 09
1
[PATCH 2/2] drm/mediatek: Use struct dma_buf_map in GEM vmap ops
Fixes a build failure with mediatek. This change was supposed to be part of commit 49a3f51dfeee ("drm/gem: Use struct dma_buf_map in GEM vmap ops and convert GEM backends"), but mediatek was forgotten. Signed-off-by: Thomas Zimmermann <tzimmermann at suse.de> Fixes: 49a3f51dfeee ("drm/gem: Use struct dma_buf_map in GEM vmap ops and convert GEM backends") Cc: Thomas
2007 Jul 03
1
Lattice: shifting strips to left of axes
Consider this plot: xyplot(mpg ~ disp | cyl, mtcars, strip=F, strip.left=T, layout=c(1, 3), scales=list(relation="free"), par.settings=list(strip.background=list(col="transparent"))) I want to have the "cyl" strip labels on the left side of the axis. Is this possible? Failing that, is it possible to remove the left axis and display it on the right
2015 Apr 07
2
[LLVMdev] How to see what's going on behind llc through clang/clang++
Hi, Is there a way to see what the default argument llc takes from clang/clang++ ? I'm debugging my backend with a very simple c++ program. Running through *clang++ -target myTarget -S simple.cpp -o simple.s * (bug does no show up) gives me different results from *clang++ -target myTarget -S -emit-llvm -o simple.cpp -o simple.ll* *llc simple.ll -o simple.s *(bug shows up) Just trying to
2006 Apr 01
1
Using vectorization instead of for loop for performing a calculation efficiently
I am trying to write an efficient function that will do the following: Given an nxm matrix, 10 rows (observations) by 10 columns (samples) for each row, test of all values in the row are greater than a value k If all values are greater than k, then set all values to NA (or something), Return an nxm matrix with the modified rows. If I do this with a matrix of 20,000 rows, I will be waiting until
2006 May 22
3
Best Rails API source
Folks, Is api.rubyonrails.com the best source for RoR API info? Do any other formats exist, that are easier to navigate/search? Thanks, Marcus Marcus Blankenship Technology Services - Software Group JELD-WEN, inc. Information Systems 541-882-3451 x 2558 marcusb@jeld-wen.com RELIABILITY for real life* This correspondence is for the named person''s use only. It may contain
2009 Jul 10
2
[PATCH 1/1] a fix of logging return value.
in ocfs2_file_aio_write(), log_exit() could don't log the value which is really returned. this patch fixes it. Signed-off-by: Wengang Wang <wen.gang.wang at oracle.com> --- fs/ocfs2/file.c | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/fs/ocfs2/file.c b/fs/ocfs2/file.c index 62442e4..a49fa44 100644 --- a/fs/ocfs2/file.c +++ b/fs/ocfs2/file.c @@ -1918,8
2005 Aug 08
1
tapply huge speed difference if X has names
Hi all, Apologies if this has been raised before ... R's tapply is very fast, but if X has names in this example, there seems to be a huge slow down: under 1 second compared to 151 seconds. The following timings are repeatable and are timed properly on a single user machine : > X = 1:100000 > names(X) = X > system.time(fast<<-tapply(as.vector(X), rep(1:10000,each=10), mean))
2003 Jul 29
10
Asterisk installation
Hi I tried to install the * in my Radhat 7.3 machine. The "gmake" and "gmake install" went fine, but "gmake sample" gave me errors of "configs/*.adsi", "sounds/demo-*" and "sounds/*.mp3" errors. I created a dummy.adsi in the configs folder and commented out the "sounds/demo-*" and "sounds/*.mp3" in the Makefile to
2007 Aug 16
6
an easy way to construct this special matirx
Hi, Sorry if this is a repost. I searched but found no results. I am wondering if it is an easy way to construct the following matrix: r 1 0 0 0 r^2 r 1 0 0 r^3 r^2 r 1 0 r^4 r^3 r^2 r 1 where r could be any number. Thanks. Wen [[alternative HTML version deleted]]
2009 Feb 25
2
run latent class analysis with R
What's the best approach to running latent class analysis with R? I've downloaded both randomLCA and poLCA packages, but I am interesting in running a standard LCA with individual records (not frequency table) as input data. Wen Gu John Jay College of Criminal Justice445 West 59 StreetNew York, NY 10029 wgu@gc.cuny.edu _________________________________________________________________
2012 Aug 29
1
Use virsh command domjobinfo but get nothing
Hi, all I test virsh comand "domjobinfo" on x86-i386 and PPC64 host. But Both get nothing. # virsh version Compiled against library: libvir 0.9.13 Using library: libvir 0.9.13 Using API: QEMU 0.9.13 Running hypervisor: QEMU 1.1.50 # virsh list Id Name State ---------------------------------------------------- 21 f16-ppc-qcow2
2006 May 18
6
NOOB: Second post, please help...
Folks, I am linking from page A to page B, and back again. When I go from A -> B, the B_controller.rb runs fine, and the page renders properly. But, when I go from B -> A, the A_controller.rb doesn''t run again, so the array (@A) is nil (which causes a problem). Should the controller run each time the page is accessed? Any ideas? Marcus Marcus Blankenship Technology Services -
2005 Jun 03
3
performance problem?
Hi, I'm running dovecot on a small server. I put all my mail from the last 10 years on it (approx. 160 mb). I'm seeing terrible performance. Sometimes, my client needs several minutes to display a message. This is with mutt, thunderbird and evolution. Copying an outbound message to the Sent IMAP folder (15k messages) typically takes a few minutes, but can be quite fast on occasion
2006 Nov 18
1
Why SAM has totally diffent results in R2.1.1 and R2.4.0
Hi, I am using SAM (from siggenes_1.2.11 package) method to select genes from a microarray data set. After installing the latest R2.4.0 on my computer, to my surprise the results are totally different from that calculated using R2.1.1. Even the example code doesn't work the same way under these two versions of R. Does anybody know what is going on? Thanks for any suggestions.