similar to: Flip Matrix form file?

Displaying 20 results from an estimated 9000 matches similar to: "Flip Matrix form file?"

2012 Feb 01
6
While loop working with TRUE/FALSE?
Hi R users, is there any possibilty that a while loop is working like that: z <- c(0,1,2,3,4,5,6,7,8,9) r <- 7 while(w == T) { for ( i in 1:10 ){ w <- r == z[i] print(w) } } The loop should stop if w == TRUE best regards -- View this message in context:
2008 Oct 22
3
Substitute problem
hello R users, I didn't find a solution for a special problem. I have two dataframes. dataframe1: X value row col ID 1 8.973498062 5512625 3460000 1 2 11.656658570 5501625 3464000 2 3 11.121777570 5495625 3473000 3 4 9.310465964 5508625 3477000 4 5 8.883483845 5515625 3496000 5 dataframe2: X value
2008 Nov 10
2
Make one vector from matrix comparison
Hello R-users, I have a little problem. I compare each row of a matrix with each row of another matrix. testmat1 <- matrix(c(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16), nrow=4) testmat2 <- matrix(c(1,2,3,5,5,6,7,8,9,10,11,12,13,14,15,16), nrow=4) Both matrix differs in the last row. Now I create a loop: for (i in (1:4)){ for (j in (1:4)){ b <- (c(setequal(testmat1[j,],testmat2[i,])))
2011 Nov 15
2
points() colored by value
Hi R users, I want to colored points by their value for example: x <- c(1,2,3,4) y <- c(1,2,3,4) z <- c(2,3,4,9) y and x are coordinates z is the value of the coordinates points(x,y,col= rainbow(z)) something like that But haven't found any solution at the moment. Thanks. Chris -- View this message in context:
2008 Sep 17
1
Re adout row and column of a matrix value
Hello R users, I want to readout the row and column postion from a certain matrix value into a csv file. I have only found this syntax "which(a == b, arr.ind = T)" so I get a = matrix [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 1 1 2 2 2 1 1 2 [2,] 1 2 3 3 3 4 4 3 [3,] 3 3 3 5 5 6 5 4 [4,] 4 4 4 3
2008 Nov 25
1
add string to a list
hello R users, I didn't find a solution for a simple problem I think. I read 224 lines from a file input <- readLines(con,n=224) and now I create a string x <- "\004" which should be line 225 of input. So I have input and x and want to add x to input, so that it looks like this: [1] "string" [2] "string" . . . [224] "string" [225]
2011 Feb 03
2
substring and paste character with a for loop
Hello R users, I have a little problem with a for loop. Below there is an simple example of my problem. I want to delet the commas in the character string. Fore this reason I create a for loop to unpick the string and rebuild him without the commas. The problem is, that "paste" does not work in the loop as I expected. text <- "aaa,bbb,ccc,ddd" characterseq <-
2013 Apr 16
2
R process slow down after a amount of time
Hi R users, I have mentioned that R is getting slower if a process with a loop runs for a while. Is that normal? Let's say, I have a code which produce an output file after one loop run. Now after 10, 15 or 20 loop runs the time between the created files is stongly increasing. Is there maybe any data which fill some memory? Chris -- View this message in context:
2011 Sep 16
3
How to save row values from a matrix into one vector?
Dear R users, I guess, I have a quit simple problem, but I'm not getting the solution. I create a matrix like this: test <- matrix(seq(1,3,1),ncol=5,nrow=3) then I want to create one vector, consisting of every row of the matrix. My first idea was to do this with a for loop. op <- vector() for (o in 1:3){ op[o] <- as.vector(test.id[o,]) } The results should be like this: [1]
2008 Sep 21
1
Searching a relativ maximum of a matrix
Hello R users, is there a possibility to get the relativ maximum of a matrix? To get the absolut maximum I use max(matrix) For example: The absolut maximum of this matrix is 6[3,6], but the relativ maximum is 6[3,6] and 4[7,6], because both values are the highest value in comparison to their eight neighbours values. [,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [1,] 1 1 2 2 2
2017 Jan 16
1
[PATCH 1/4] drm/atomic: Save flip flags in drm_plane_state
Allows using atomic flip helpers for drivers using ASYNC flip. Remove ASYNC_FLIP restriction in helpers and caches the page flip flags in drm_plane_state to be used in the low level drivers. Signed-off-by: Andrey Grodzovsky <Andrey.Grodzovsky at amd.com> --- drivers/gpu/drm/drm_atomic_helper.c | 10 +++------- include/drm/drm_plane.h | 8 ++++++++ 2 files changed, 11
2009 Apr 19
3
flip certain bits in vector
I have a string of binary values, and I would like to flip certain bits in a set of positions. Let's say the vector p contains position [1, 3, 5, 7] vector b contains bits [1, 0, 1, 0, 1, 0, 1, 0, 1, 0] result r should be [0, 1, 0, 0, 0, 0, 0, 0, 1, 0] in pseudo code this would be something like --- r = c() for (i in 1:10) if (i in p) r = c(r, flip[i]) r ----
2017 Jan 16
2
[PATCH 1/4] drm/atomic: Save flip flags in drm_plane_state
Hi Andrey, Thank you for the patch. On Monday 16 Jan 2017 10:44:55 Andrey Grodzovsky wrote: > Allows using atomic flip helpers for drivers > using ASYNC flip. > Remove ASYNC_FLIP restriction in helpers and > caches the page flip flags in drm_plane_state > to be used in the low level drivers. > > Signed-off-by: Andrey Grodzovsky <Andrey.Grodzovsky at amd.com> > ---
2017 Jan 26
1
[PATCH 1/4] drm/atomic: Save flip flags in drm_plane_state
> -----Original Message----- > From: Cheng, Tony > Sent: Monday, January 23, 2017 2:49 PM > To: Daniel Vetter; Grodzovsky, Andrey > Cc: Deucher, Alexander; nouveau at lists.freedesktop.org; amd- > gfx at lists.freedesktop.org; dri-devel at lists.freedesktop.org; > daniel.vetter at intel.com; dc_upstream > Subject: RE: [PATCH 1/4] drm/atomic: Save flip flags in
2017 Jan 18
1
[PATCH 3/4] drm/amd/display: Switch to using atomic_helper for flip.
> -----Original Message----- > From: Michel Dänzer [mailto:michel at daenzer.net] > Sent: Tuesday, January 17, 2017 8:50 PM > To: Laurent Pinchart > Cc: dri-devel at lists.freedesktop.org; Grodzovsky, Andrey; > daniel.vetter at intel.com; amd-gfx at lists.freedesktop.org; > nouveau at lists.freedesktop.org > Subject: Re: [PATCH 3/4] drm/amd/display: Switch to using
2017 Jan 30
2
[v3 PATCH 1/3] drm/atomic: Save flip flags in drm_crtct_state
Hi Andrey, Thank you for the patch. On Saturday 28 Jan 2017 21:26:49 Andrey Grodzovsky wrote: > Allows using atomic flip helpers for drivers > using ASYNC flip. > Remove ASYNC_FLIP restriction in helpers and > caches the page flip flags in drm_crtc_state > to be used in the low level drivers. > > v2: > Resending the patch since the original was broken. > > v3:
2017 Jan 23
3
[PATCH 1/4] drm/atomic: Save flip flags in drm_plane_state
On Mon, Jan 16, 2017 at 10:44:55AM -0500, Andrey Grodzovsky wrote: > Allows using atomic flip helpers for drivers > using ASYNC flip. > Remove ASYNC_FLIP restriction in helpers and > caches the page flip flags in drm_plane_state > to be used in the low level drivers. > > Signed-off-by: Andrey Grodzovsky <Andrey.Grodzovsky at amd.com> It's mostly guesswork, but I
2008 Sep 09
1
Substitute Values in a Matrix?
Hi, I'm searching for a function to subistute Values in a Matrix to new Values. For example: old value new value 1.1 6 1.2 7 . . . . . . 1.9 14 2.0 15 and 2.1 15.5 2.2 16 . . . . 2.9 19.5 3.0 20 There is a difference
2017 Jan 16
2
[PATCH 0/4] Allow ASYNC flip with atomic helpers.
On 2017-01-16 03:39 PM, Laurent Pinchart wrote: > Hi Andrey, > > Thank you for the patches. > > On Monday 16 Jan 2017 10:44:54 Andrey Grodzovsky wrote: >> This series is a folow-up on >> https://patchwork.kernel.org/patch/9501787/ >> >> The first patch makes changes to atomic helpers >> to allow for drives with ASYNC flip support to use them. >>
2006 Apr 21
2
Rotate/edge-flip and jumping mouse pointer
Hi, I'm using running Xgl/compiz on Gentoo/AMD64/2006.0, with xgl-0.0.1_p20060418 and compiz-quinnstorm-0.0.9.3 on Gnome 2.14. I love the edge-flip feature of rotate, but I sometimes have a problem where, after edge-flipping the mouse pointer seems to jump to the opposite window edge which starts rotating the cube to the next desktop, so I start moving the pointer back, whereupon it jumps