similar to: Index mapping on arrays

Displaying 20 results from an estimated 10000 matches similar to: "Index mapping on arrays"

2005 Feb 23
2
[LLVMdev] Python bindings for LLVM API
Hi, I would like to share my experimental LLVM API Python bindings with the LLVM enthusiasts. I have created Boost.Python wrappers largely for the VMCore interface and other selected interfaces (e.g. ExecutionEngine). The bindings provide direct runtime access to the LLVM bytecode and JIT execution features from Python. The bindings are complete enough so that one can e.g. run the Fibonacci
2006 Mar 22
1
calculate difference of consecutive cells in vector
Hi in dataframe I want to subtract the "next" value in the list from the former one to get this: name var1 output a 9 506 b 515 512 c 1027 453 so I subtract: table$var1[2]-table$var1[1] and write it into table$output[1] etc.. I did this with: for (i in 1:(length(table$var1)){ table$output[i] <- table$var1[i+1]-table$var1[i] } it works
2005 Feb 24
0
[LLVMdev] Python bindings for LLVM API
Jarno, This looks like it could be very valuable - thanks for making it available. Just out of curiosity, do you have any specific uses in mind for which you created these bindings? --Vikram http://www.cs.uiuc.edu/~vadve http://llvm.cs.uiuc.edu/ On Feb 23, 2005, at 5:21 PM, Jarno Seppänen wrote: > Hi, > > I would like to share my experimental LLVM API Python bindings with >
2006 Sep 02
3
Dividing objects in classes using function sample()
Hello everyone, I've a problem and dont know how to solve. This is my first posting and it would be fantastic if you could help me. I want to divide n objects in k classes and need an output with all (n+1)(n+2)/2 possibilities. For example n=4, k=3: That would be: 4 0 0 3 1 0 3 0 1 2 2 0 2 1 1 2 0 2 1 3 0 1 2 1 1 1 2 1 0 3 0 3 1 0 2 2 0 1 3
2007 Mar 22
1
Mailing list beserk - next thing
Hi there! As there seems to be a problem with mailman, I unsubscribed yesterday evening. But I still get Mail - this morning about 700!!! Is there anything I can do about this? I don? t want to get flooded anymore. I sure will resubscribe as soon as the problem is fixed, but as for now, this is not acceptable!!! Greets, Dennis -- "Feel free" - 10 GB Mailbox, 100 FreeSMS/Monat ...
2007 Mar 24
1
frequency tables and sorting by rowSum
Dear list, I have some trouble generating a frequency table over a number of vectors. Creating these tables over simple numbers is no problem with table() > table(c(1,1,1,3,4,5)) 1 3 4 5 3 1 1 1 , but how can i for example turn: 0 1 0 0 0 1 0 1 0 1 0 0 0 1 0 1 0 0 into 0 0 1 1 1 0 0 2 0 1 0 3 My second problem is, sorting rows and columns of a matrix by the rowSums/colSums. I did it
2005 Apr 19
2
indexing an array using an index-array, but one entry being ', '
Hi I have the following array: test <- array(c(1:16), dim = c(3,4,3)) test ## I call some enries using an index array test.ind <- array(rbind(c(1,2,1), c(3,3,2)), dim = c(2,3)) test[test.ind] ## suppose I want all values in the 2nd row and 4th col over ## all three 3rd dimensions test[2,4,] how to specify a test.ind array with the last index left with ',' i.e test.ind should be
2007 Apr 11
2
list of features and question to technology
Hey there, I am wondering if there is any list available giving me a list of feature of icecast (maybe also in comparision with shoutcast). Moreover, I was thinking if and how the following scenario is solved: suppose I'd like to stream 1000 different songs at one time, i.e. 1000 user will listen to different mp3s hosted by my streaming server. Are in this scenario all 1000 songs (at
2006 Jul 10
3
10^x instead 10EX on plot axes. How?
Hi, I'm drawing a very simple plot with both axes logarithmic (default base 10). Example: vec=c(1,10,100,1000,10000,100000,1000000,10000000) plot(vec,vec,log="xy") The axes on the plot now show the technical notation like 1E+3 but I would prefer to have it the notation 10 ^3 i.e. with the exponent here 3 superscript (raised). Any help very much appreciated! Best Regards Tom --
2007 Feb 16
1
Fwd: Re: user add script, machine add script
Hello to all, after noone bother my subject. I think I'm all alone making mistakes on this thing. But I should really know if it is possible to mange the administration of samba in an comfortable way. After all the years I worked with it I never did manage it to be in an sufficent manner. Is there a plan in the future to have a central administration within the samba package? --------
2004 Feb 16
1
consensus trees/groups from clustering
Hi, I wish to build consensus groups/tree from a set of bootstraps from a clustering algorithm such as hc or k-means, but can't find an R-function that does this. Does anyone know of an R procedure/function which allows one to build such consensus groups/tree .? Many thanks, Andrew ******************************************************************* Dr Andrew E Teschendorff Hutchison/MRC
2004 Feb 13
1
Samba 3.0.2 ADS Member - Failed to verify incoming ticket!
I use Samba 3.0.2rc2 on Suse 9.0 (heimdal 0.6-68) as a Domainmember for File -and Printservices (about 100 Users). The Linuxbox ist added to the ADS, the User are mapped through winbindd. Everything works.. The I upgraded to Samba 3.0.2 and if I start the daemon, after a while follow Error occured if a Domainclient will connect to the Sambabox: [2004/02/13 13:33:43, 1]
2012 Jan 25
4
x11() graphic device, displaying raster
Hello, I am wondering about the X11() graphic device on Windows. I try to plot a raster image but nothing gets displayed. I found some pages where it is mentioned that x11() not always supports raster rendering. Is there any add on for x11, any update or any R-package which solves that displaying problem in Windows? What I try to test it is an example from the package {raster}: library(raster)
2012 Jan 25
4
x11() graphic device, displaying raster
Hello, I am wondering about the X11() graphic device on Windows. I try to plot a raster image but nothing gets displayed. I found some pages where it is mentioned that x11() not always supports raster rendering. Is there any add on for x11, any update or any R-package which solves that displaying problem in Windows? What I try to test it is an example from the package {raster}: library(raster)
2006 Sep 13
3
functions and strings
Hi If string <- "xyz" f <- function(x){1 + sin(cos(x)) + exp(x^2)} How do I manipulate "string" and f() to give the string "1 + sin(cos(xyz)) + exp(xyz^2)" ? -- Robin Hankin Uncertainty Analyst National Oceanography Centre, Southampton European Way, Southampton SO14 3ZH, UK tel 023-8059-7743
2005 Jun 13
3
extracting components of a list
Hi how do I extract those components of a list that satisfy a certain requirement? If jj <- list(list(a=1,b=4:7),list(a=5,b=3:6),list(a=10,b=4:5)) I want just the components of jj that have b[1] ==4 which in this case would be the first and third of jj, viz list (jj[[1]],jj[[3]]). How to do this efficiently? My only idea was to loop through jj, and set unwanted components to NULL,
2006 Feb 22
3
elements that appear only once
Hi. I have a factor and I want to extract just those elements that appear exactly once. How to do this? Toy example follows. > a <- as.factor(c(rep("oak",5) ,rep("ash",1),rep("elm",1),rep ("beech",4))) > a [1] oak oak oak oak oak ash elm beech beech beech beech Levels: ash beech elm oak > table(a) a ash beech elm oak
2007 Mar 19
3
character to numeric conversion
Hi. Is there a straightforward way to convert a character string containing comma-delimited numbers to a numeric vector? In my application, I use system(executable.string, intern=TRUE) which returns a string like "[0.E-38, 2.096751179214927596171268230, 3.678944959657480671183123052, 4.976528845643001020345216157, 6.072390165503099343887569007, 7.007958550337542210168866070,
2006 Nov 17
2
do.call("+", ...)
Hi How do I make do.call() take "+" as a function for a list of more than two elements? Toy problem follows: f <- function(i){matrix((1:6)^i,2,3)} # Thus f() returns a matrix of size 2x3; I want to add a whole bunch of such matrices, # as in f(1) + f(2) + f(3) + f(4) # But: > do.call("+",sapply(1:4,f,simplify=FALSE)) Error in do.call("+",
2006 Feb 02
3
Make error durring compilation of OpenSSH 4.3p1 on HP-UX 11.00
Hi, compilation of OpenSSH 4.2p1 / OpenSSL 0.9.8a / zlib 1.2.3 worked fine on Linux i386 / x86_64, SunOS, AIX and HP-UX. Compilation of OpenSSH 4.3p1 / OpenSSL 0.9.8a / zlib 1.2.3 works fine now only on Linux i386 / x86_64, SunOS, AIX. But on HP-UX 11.00 (gcc 3.3.2), "make" produces following... (cd openbsd-compat && make) gcc -o ssh ssh.o readconf.o