search for: v10

Displaying 20 results from an estimated 457 matches for "v10".

Did you mean: 10
2009 Aug 27
5
Help on efficiency/vectorization
...tion) way in implementing such problem as it can get quite messy if there are hundreds of columns. Arbitrary data set and codes are shown below for your reference: x <- as.data.frame(matrix(round(runif(50),0),nrow=5)) rownames(x) <- letters[1:dim(x)[1]] > x V1 V2 V3 V4 V5 V6 V7 V8 V9 V10 a 0 1 1 1 0 0 0 0 1 0 b 1 1 1 1 0 1 0 0 1 1 c 0 1 1 0 0 0 0 0 0 1 d 1 0 0 1 1 1 1 1 0 0 e 1 0 0 0 0 1 1 0 1 0 V1.ind <- rownames(x)[x[,"V1"]==1] V2.ind <- rownames(x)[x[,"V...
2009 Jul 28
1
[PATCH 1/7] blkio-cgroup-v10: Introduction
Hi all, This is a new release of blkio-cgroup v10. This release reduces IO tracking overhead and fixes an issue that could cause a deadlock since lock_page_cgroup() is no longer used. Thank you KAMEZAWA-san for your suggestions and pointing out the issue. This patch can be applied to 2.6.31-rc3-mmotm0716 and 2.6.31-rc4. The list of the patches:...
2009 Jul 28
1
[PATCH 1/7] blkio-cgroup-v10: Introduction
Hi all, This is a new release of blkio-cgroup v10. This release reduces IO tracking overhead and fixes an issue that could cause a deadlock since lock_page_cgroup() is no longer used. Thank you KAMEZAWA-san for your suggestions and pointing out the issue. This patch can be applied to 2.6.31-rc3-mmotm0716 and 2.6.31-rc4. The list of the patches:...
2009 Jul 28
1
[PATCH 1/7] blkio-cgroup-v10: Introduction
Hi all, This is a new release of blkio-cgroup v10. This release reduces IO tracking overhead and fixes an issue that could cause a deadlock since lock_page_cgroup() is no longer used. Thank you KAMEZAWA-san for your suggestions and pointing out the issue. This patch can be applied to 2.6.31-rc3-mmotm0716 and 2.6.31-rc4. The list of the patches:...
2018 Apr 24
4
How to visualise what code is processed within a for loop
...to debug the following code: for (i in 1:10){ t <- paste("d0$V",i,sep="") t <- ifelse(regexpr(d1[i,1],d0$X0)>0,1,0) } and I would like to see what code is actually processing R, how can I do that? More to the point, I am trying to update my variables d0$V1 to d0$V10 according to the presence or absence of some text (contained in the file d1) within the d0$X0 variable. The code seem to run ok, if I add print(table(t)) within the loop I can see that the ifelse procedure is working and to some cases within the d0$V1 to d0$V10 variable range a 1 is assigned. But...
2010 May 06
2
Data frame "pivoting"
...to solve this problem, related to the possibility of changing the shape of a data frame using a "pivoting-like" function. I have a dataframe df of observations as follows: ID VALIDITY YEAR PROPERTY PROPERTY VALUE A1 2007 P1 V1 A1 2007 P2 V2 A1 2007 P3 V3 A1 2008 P1 V10 A1 2008 P2 V20 A2 2007 P5 V50 A2 2008 P6 V20 A3 2007 P1 V1 A3 2007 P3 V30 A3 2008 P1 V10 A3 2008 P2 V4 A3 2008 P6 V25 (you can imagine that this data is collected every year from a sample of people with several "measures" - weight, number of childr...
2013 Feb 28
1
help for an R automated procedures
...ct = id, subset = abs(scale(v6)) > z.crit) subset(sp1.loc1, select = id, subset = abs(scale(v7)) > z.crit) subset(sp1.loc1, select = id, subset = abs(scale(v8)) > z.crit) subset(sp1.loc1, select = id, subset = abs(scale(v9)) > z.crit) subset(sp1.loc1, select = id, subset = abs(scale(v10)) > z.crit) subset(sp1.loc1, select = id, subset = abs(scale(v11)) > z.crit) #Standardizing variables v1.std<-with(sp1.loc1,(scale(v1))) v1.pad<-v1.std[,1] v2.std<-with(sp1.loc1,(scale(v2))) v2.pad<-v2.std[,1] v3.std<-with(sp1.loc1,(scale(v3))) v3.pad<-v3.std[,1] v4.std...
2012 Jan 08
1
creating vectors from data-frames
...ys it does I have included an example below, of doing what would seem to be the method required to create a vector, but instead it creates a one row data frame. What is required to actually create a vector. Many thanks Philip > data V1 V2 V3 V4 V5 V6 V7 V8 V9 V10 V11 1 E 2369 2304 2312 2460 2645 3038 3265 3760 3904 4421 2 NZ 705 817 907 917 954 1,026 1,065 1,125 1,276 1,449 > nz <-as.vector(data[2,2:11]) > nz V2 V3 V4 V5 V6 V7 V8 V9 V10 V11 2 705 817 907 917 954 1,026 1,065 1,125 1,276 1,449 > cla...
2014 May 07
0
[PATCH v10 00/19] qspinlock: a 4-byte queue spinlock with PV support
On Wed, May 07, 2014 at 11:01:28AM -0400, Waiman Long wrote: > v9->v10: > - Make some minor changes to qspinlock.c to accommodate review feedback. > - Change author to PeterZ for 2 of the patches. > - Include Raghavendra KT's test results in patch 18. Any chance you can post these on a git tree? Thanks.
2005 Jul 25
1
[LLVMdev] How to partition registers into different RegisterClass?
...def C200 : ConstFpReg<199, "c200">; def I0 : ConstIntReg<0, "i0">; ... def I100 : ConstIntReg<100, "i100">; def R0 : TempReg<0, "r0">; def R32 : TempReg<31, "r32">; def V0 : InputReg<0, "v0">; .. def V10 : InputReg<9, "v10">; def O0 : OutputReg<0, "o0">; .. def O4 : OutputReg<4, "o4">; def FloatingPointRC : RegisterClass<packed, 128, [R0, R1, R2, ..., R32, C0, C1, ..., C200, V0, ..., V10, O1, O2, O3, O4]> { let Methods...
2005 Oct 13
1
expand.grid problem
...ant to make all possible combination from dataset below: V1 <- c(0,1,2) V2 <- c(0,1) V3 <- c(0,1) V4 <- c(0,1) V5 <- c(0,1) V6 <- c(0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20) V7 <- c(0,1,2,3,4,5,6) V8 <- c(0,1) V9 <- c(0,1) V10 <- c(0,1) V11 <- c(0,1) V12 <- c(0,1) V13 <- c(0,1) V14 <- c(0,1) V15 <- c(0,1,2,3,4,5,6,7,8,9) V16 <- c(0,1,2,3,4,5,6) V17 <- c(0,1,2,3,4,5,6,7,8) V18 <- c(0,1,2,3,4,5) V19 <- c(0,1) V20 <- c(0,1,2,3,4,5,6,7) When run expand.grid I f...
2011 Jul 21
2
User input(unknown name and number of files)
...use this code so that user can input as many files as he want.My code is like this- df=read.table("Case2.pileup",fill=T,sep="\t",colClasses="character") df$V9 <- apply(df, 1, function(x) gsub("\\:|\\$|\\^|!|\\-|1|2|3|4|5|6|7|8|10", "",x[9])) df$V10 <- sapply(df$V10, function(a) paste(as.integer(charToRaw(a)), collapse = ' ')) capture.output(print.data.frame(df,row.names=F), file = "end.txt", append = FALSE) I know it should do it with for loop and an array.I want that if user input 12 files,the dataframe name df shoul...
2010 Oct 04
3
How To Extract Row from A Data Frame
I have a data frame that looks like this: > print(df) V2 V3 V4 V5 V6 V7 V8 V9 V10 V11 V12 1 FN 8.637 28.890 31.430 31.052 29.878 33.215 32.728 32.187 29.305 31.462 2 FP 19.936 30.284 33.001 35.100 30.238 34.452 35.849 34.185 31.242 35.635 3 TN 0.000 17.190 16.460 21.100 17.960 15.120 17.200 17.190 15.270 15.310 4 TP 22.831 31.246 33.600 35.439 32.073 33.947 35.050 34.472...
2014 Feb 13
0
Asterisk V10, SIP MESSAGE fails for unknown reason, missing DNS-lookup?
Hi, I'm using SIP MESSAGE to asterisk V10 and it fails to be received. I'm not super sure of the reason but I'm making this guess: Due to I'm using non ipaddress in the to field, which contains sip:mobil1.xyz.com, Asterisk makes the mistake to try matching this name "mobil1.testserver.com" in extensions.conf and no e...
2018 May 07
0
[PATCH net-next v10 1/4] virtio_net: Introduce VIRTIO_NET_F_STANDBY feature bit
This feature bit can be used by hypervisor to indicate virtio_net device to act as a standby for another device with the same MAC address. VIRTIO_NET_F_STANDBY is defined as bit 62 as it is a device feature bit. Signed-off-by: Sridhar Samudrala <sridhar.samudrala at intel.com> --- drivers/net/virtio_net.c | 2 +- include/uapi/linux/virtio_net.h | 3 +++ 2 files changed, 4
2018 May 07
1
[PATCH net-next v10 2/4] net: Introduce generic failover module
On Mon, 7 May 2018 15:10:44 -0700 Sridhar Samudrala <sridhar.samudrala at intel.com> wrote: > + if (netif_running(failover_dev)) { > + err = dev_open(slave_dev); > + if (err && (err != -EBUSY)) { > + netdev_err(failover_dev, "Opening slave %s failed err:%d\n", > + slave_dev->name, err); > + goto err_dev_open; > + } > + } > + >
2018 May 08
0
[PATCH net-next v10 2/4] net: Introduce generic failover module
On 5/7/2018 4:53 PM, Stephen Hemminger wrote: > On Mon, 7 May 2018 15:10:44 -0700 > Sridhar Samudrala <sridhar.samudrala at intel.com> wrote: > >> +static struct net_device *net_failover_get_bymac(u8 *mac, >> + struct net_failover_ops **ops) >> +{ >> + struct net_device *failover_dev; >> + struct net_failover *failover; >> + >> +
2019 May 21
1
[PATCH v10 2/7] virtio-pmem: Add virtio pmem driver
On Tue, May 21, 2019 at 07:07:08PM +0530, Pankaj Gupta wrote: > diff --git a/include/uapi/linux/virtio_pmem.h b/include/uapi/linux/virtio_pmem.h > new file mode 100644 > index 000000000000..7a3e2fe52415 > --- /dev/null > +++ b/include/uapi/linux/virtio_pmem.h > @@ -0,0 +1,35 @@ > +/* SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause */ > +/* > + * Definitions for
2019 May 21
0
[PATCH v10 4/7] dm: enable synchronous dax
This patch sets dax device 'DAXDEV_SYNC' flag if all the target devices of device mapper support synchrononous DAX. If device mapper consists of both synchronous and asynchronous dax devices, we don't set 'DAXDEV_SYNC' flag. Signed-off-by: Pankaj Gupta <pagupta at redhat.com> --- drivers/md/dm-table.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git
2019 Nov 07
0
[PATCH V10 6/6] docs: sample driver to demonstrate how to implement virtio-mdev framework
On 2019/11/7 ??5:08, Michael S. Tsirkin wrote: > On Wed, Nov 06, 2019 at 09:35:31PM +0800, Jason Wang wrote: >> This sample driver creates mdev device that simulate virtio net device >> over virtio mdev transport. The device is implemented through vringh >> and workqueue. A device specific dma ops is to make sure HVA is used >> directly as the IOVA. This should be