similar to: String to array

Displaying 20 results from an estimated 700 matches similar to: "String to array"

2012 Apr 23
2
automating a script to read a file
Hi, The following script (which I did not develop) is used to calculate and plot a skewed normal curve. The script currently requires the user to input six parameters, rather than reading these directly from a file. I've been spinning wheels here, trying to figure out how to modify the script to automate it. I have four data sets, each in excess of 300 records that I need to process. My
2004 Mar 02
1
*s behaviour (PR#6633)
Dear all, While showing some commands of R to my students, I came across the following behaviour of * which surprised me. > set.seed(20) # to make it reproducible # create some objects > z <- matrix(rnorm(6), ncol=2) # 3x2 matrix > x1 <- rnorm(3) # vector of length 3 > y1 <- rnorm(4) #
2004 Oct 01
1
cumsum over a list or an array
Hello list, my question is related to svd of a matrix: b=matrix(rnorm(50),10,5) mysvd=svd(b) I would like to compute each xi where xi = di* ui %*% t(vi). I do it by : xlist=sapply(1:ncol(b), function(x1,y) y$d[x1]*y$u[,x1]%*%t(y$v[,x1]),y=mysvd,simplify=F) # result is a list xarray=array(sapply(1:ncol(b), function(x1,y) y$d[x1]*y$u[,x1]%*%t(y$v[,x1]),y=mysvd),c(nrow(b),ncol(b),ncol(b))) #
2009 Oct 22
1
Intersection an Sum between list and matrix
Hello, I need to do an intersection between the list elements (partitionslist) and the columns and rows of a matrix (mm), so that the result will be the sums of the rows and columns. Thanks a lot, Romildo Martins Example 1.The Intersection and sum betweeen partitionslist[[1]][[2]] and mm is indicated in bold. 2.The Intersection and sum betweeen partitionslist[[1]][[2]] and mm is indicated in
2010 Mar 30
2
Finding positions in array
Hello, I need a function to check what positions of the array are greater than "y" and return to positions in another array "z". > x<-array(E(gaux)$weight) > x [1] 3 8 10 6 If y = 7 >z [1] 2 3 Thanks a lot! Romild [[alternative HTML version deleted]]
2009 Jun 23
2
values in graph points
Hello, How to add x values in graph points? Thanks a lot, Romildo x <- c(22.44, 20.14, 15.85, 15.97) plot(x, type="n", axes=FALSE, ann=FALSE, labels=c(22.44, 20.14, 15.85, 15.97)) par(lwd=1) lines(x) points(x, pch=5, bg="grey", cex=1.5) axis(2, las=1) axis(1, at=1:4, lab=c("none", "50-50", "80-20", "90-10")) box()
2023 Aug 31
3
[PATCH drm-misc-next 2/3] drm/gpuva_mgr: generalize dma_resv/extobj handling and GEM validation
Hi, On 8/31/23 13:18, Danilo Krummrich wrote: > On Thu, Aug 31, 2023 at 11:04:06AM +0200, Thomas Hellstr?m (Intel) wrote: >> Hi! >> >> On 8/30/23 17:00, Danilo Krummrich wrote: >>> On Wed, Aug 30, 2023 at 03:42:08PM +0200, Thomas Hellstr?m (Intel) wrote: >>>> On 8/30/23 14:49, Danilo Krummrich wrote: >>>>> Hi Thomas, >>>>>
2004 Jun 01
3
2 passwords when loging from Windows 98 to samba PDC
Hello. I have setup a local network where Windows 98 workstations authenticates against a samba server PDC running on linux, and it is working. But there is a little annoyance: Windows 98 is handling 2 passwords: 1) the network password (used with the samba PDC) 2) the windows password (used with the Windows desktop) Windows users can change their passwords from the workstation, but the
2017 Dec 17
2
[PATCH v19 3/7] xbitmap: add more operations
On Sun, Dec 17, 2017 at 01:47:21PM +0000, Wang, Wei W wrote: > On Saturday, December 16, 2017 3:22 AM, Matthew Wilcox wrote: > > On Fri, Dec 15, 2017 at 10:49:15AM -0800, Matthew Wilcox wrote: > > > Here's the API I'm looking at right now. The user need take no lock; > > > the locking (spinlock) is handled internally to the implementation. > > Another
2017 Dec 17
2
[PATCH v19 3/7] xbitmap: add more operations
On Sun, Dec 17, 2017 at 01:47:21PM +0000, Wang, Wei W wrote: > On Saturday, December 16, 2017 3:22 AM, Matthew Wilcox wrote: > > On Fri, Dec 15, 2017 at 10:49:15AM -0800, Matthew Wilcox wrote: > > > Here's the API I'm looking at right now. The user need take no lock; > > > the locking (spinlock) is handled internally to the implementation. > > Another
2020 Feb 18
2
[PATCH] vhost: introduce vDPA based backend
On Fri, Jan 31, 2020 at 11:36:51AM +0800, Tiwei Bie wrote: > +static int vhost_vdpa_alloc_minor(struct vhost_vdpa *v) > +{ > + return idr_alloc(&vhost_vdpa.idr, v, 0, MINORMASK + 1, > + GFP_KERNEL); > +} Please don't use idr in new code, use xarray directly > +static int vhost_vdpa_probe(struct device *dev) > +{ > + struct vdpa_device *vdpa = dev_to_vdpa(dev);
2020 Feb 18
2
[PATCH] vhost: introduce vDPA based backend
On Fri, Jan 31, 2020 at 11:36:51AM +0800, Tiwei Bie wrote: > +static int vhost_vdpa_alloc_minor(struct vhost_vdpa *v) > +{ > + return idr_alloc(&vhost_vdpa.idr, v, 0, MINORMASK + 1, > + GFP_KERNEL); > +} Please don't use idr in new code, use xarray directly > +static int vhost_vdpa_probe(struct device *dev) > +{ > + struct vdpa_device *vdpa = dev_to_vdpa(dev);
2001 Nov 04
3
2.4.13 kernel on Redhat 7.2
I have tried everything to compile a new kernel on my 7.2 base system. I have used 2.4.13-ac6 and 2.4.13 w/ ext3 patch. I have compiled with ext3 built-in and with ext3 as module (with the initrd). I have a SCSI system so I have done the previous variations with both SCSI support built-in and modular (with the initrd). The error I get is: Remounting root filesystem in read-write mode: mount: no
2012 Nov 24
2
[LLVMdev] LLVMConfig not found
Hello. I am trying to install jllvm (http://code.google.com/p/jllvm/) on my gentoo linux system. I already have llvm-3.1 installed by the packager manager. The jllvm build mechanism uses the file LLVMConfig.cmake. There is no such file installed on my system. Therefore I cannot install jllvm. Checking the sources of llvm-3.1 and llvm-3.0 one find the files
2008 Jun 17
1
interp() function output not continue
Dear List, I'm using interp() to prepare 3d data for plotting with the contour() function. If have x,y and z data. All are arrays. X and Y are sampled in an orderly fashion on a grid (a circular sub-area of a grid - see plot). I'm trying to use interp() to get x and y arrays and a z matrix that can be fed to contour(). This is the command:
2006 Sep 18
0
Question on apply() with more information...
>From: =?ISO646-US?Q?Gunther_H=3Fning?= <gunther.hoening at ukmainz.de> >Date: 2006/09/18 Mon AM 06:26:25 CDT >To: 'Petr Pikal' <petr.pikal at precheza.cz> >Cc: r-help at stat.math.ethz.ch >Subject: Re: [R] Question on apply() with more information... I think you want something like below but it probably needs some fixing up because i don't recall the syntax
2013 Feb 21
1
[LLVMdev] Installing ocaml bindings with cmake
Hello. How can the ocaml bindings distributed with llvm can be installed when using cmake to build llvm? The page at http://llvm.org/docs/CMake.html does not mention that. Romildo
2018 Feb 16
2
[PATCH v21 1/5] xbitmap: Introduce xbitmap
On Tue, Jan 9, 2018 at 1:10 PM, Wei Wang <wei.w.wang at intel.com> wrote: > From: Matthew Wilcox <mawilcox at microsoft.com> > > The eXtensible Bitmap is a sparse bitmap representation which is > efficient for set bits which tend to cluster. It supports up to > 'unsigned long' worth of bits. > lib/xbitmap.c | 444
2018 Feb 16
2
[PATCH v21 1/5] xbitmap: Introduce xbitmap
On Tue, Jan 9, 2018 at 1:10 PM, Wei Wang <wei.w.wang at intel.com> wrote: > From: Matthew Wilcox <mawilcox at microsoft.com> > > The eXtensible Bitmap is a sparse bitmap representation which is > efficient for set bits which tend to cluster. It supports up to > 'unsigned long' worth of bits. > lib/xbitmap.c | 444
2005 Feb 12
4
Is is possible to do "shorewall reject 1.1.1.1 tcp 25"
Hello, Is is possible to do "shorewall reject 1.1.1.1 tcp 25" ? So I can dynamically blacklist offensive smtp senders, but only have shorewall reject certain types (smtp) traffic from them? Thanks, Alex Martin http://www.rettc.com