search for: vectorialize

Displaying 20 results from an estimated 55 matches for "vectorialize".

2006 Mar 18
2
extraction - subsets
Hi everybody, let us assume i have the following matrixX and vectorY matrixX <- runif(100) dim(matrixX) <- c(10,10) vectorY <- as.matrix(as.character(seq(1,10))) if I define: subsample<-c("2") i can extract the rows from matriX based on the elements in vectorY which are listed in subsample matrixX[vectorY==subsample] if I define subsample with more than 1 element, such
2013 Jul 27
2
[LLVMdev] [llvm] r187267 - SLP Vectorier: Don't vectorize really short chains because they are already handled by the SelectionDAG store-vectorizer, which does a better job in deciding when to vectorize.
Hey Nadav, I'd humbly suggest that rather than use 3 directly, you should add a shared constant between these two passes, so when one changes, the other doesn't need to be updated. It would also ensure this bit of info about what needs to be updated isn't only contained in the comments.. On Fri, Jul 26, 2013 at 4:07 PM, Nadav Rotem <nrotem at apple.com> wrote: > Author:
2013 Jul 27
0
[LLVMdev] [llvm] r187267 - SLP Vectorier: Don't vectorize really short chains because they are already handled by the SelectionDAG store-vectorizer, which does a better job in deciding when to vectorize.
Hi Daniel, Maybe my commit message was not clear. The idea is that the SelectionDAG store vectorizer can only handle pairs. So, the number three means "more than a pair". Thanks, Nadav Sent from my iPhone > On Jul 26, 2013, at 17:48, Daniel Berlin <dberlin at dberlin.org> wrote: > > Hey Nadav, > I'd humbly suggest that rather than use 3 directly, you should
2013 Jul 27
1
[LLVMdev] [llvm] r187267 - SLP Vectorier: Don't vectorize really short chains because they are already handled by the SelectionDAG store-vectorizer, which does a better job in deciding when to vectorize.
Hi Nadav, Okay. 1. The comment doesn't make this clear. I would suggest, at a minimum, updating it to mention pairs specifically, to avoid the issue in #2 2. If the day comes when the selectiondag store vectorizer handles more than pairs, and does so better, is anyone really going to remember this random 3 exists in the other vectorizer? I would posit, based on experience, the answer is
2012 Sep 01
1
Vectorial analogue of all.equal()?
Greetings All. Once again, I am probably missing something fairly accessible, but since I can't find it I'd welcome advice! I have a dataframe derived from a text file of data in tabular format. For one of the variables, say X, I want to select the subsets which in which X equals a particular value. Such values are given in the text file like: 2.3978953, and each such value will occurr
2011 May 19
1
vectorial search for elements with certain attributes
I have 2 vectors A and B. For each element of B I'd like to find the index of the next higher or equal element in A. And I'd like to store it effectiv. E.g.: A <- c(1,3,7,8,10) B <- c(5,8) result: 3, 4 I have a possibility but for long vectors it works not very effectiv: ans <- sapply(B, function(x) which.max(A[A < x]) ) as.integer(ans + 1) Is there anyone how has a better
2006 Oct 03
1
do.call with Vectorial Argument
Dear All, I am trying to use the do.call command to avoid tedious loops in R when I need to call repetitively a function. I am experiencing a problem when the arguments of a function are given with a vector (I need to express then this way to be able later on to integrate them numerically with the adapt package). Consider the small script: remove(list=ls()) #library(adapt) # first a list of the
2008 Jul 07
3
[LLVMdev] Trying to compile llvm-gcc to mips
Hi, well, I downloaded the head revision of llvm and llvm-gcc. As you said it hangs at: Formal argument #0 has unhandled type f32 /home/julio/trunk/llvm-gcc/gcc/libgcc2.c:1765: internal compiler error: Abortado Please submit a full bug report, with preprocessed source if appropriate. Actually, I don't need fp, there is any way to disable? By the way, I'm working with a MIPS coprocessor
2008 Jul 07
0
[LLVMdev] Trying to compile llvm-gcc to mips
And one last thing, the problem seems to be related to libcpp. Using only C frontend will work? 2008/7/7 Julio <julio.martin.hidalgo at gmail.com>: > Hi, well, I downloaded the head revision of llvm and llvm-gcc. As you said > it hangs at: > > Formal argument #0 has unhandled type f32 > /home/julio/trunk/llvm-gcc/gcc/libgcc2.c:1765: internal compiler error: > Abortado
2004 Dec 31
2
Supressing empty sections with Sweave
Dear useRs, I'm writing regular survey reports using Sweave. Each report has several sections along the lines of: \section*{Disease X} <<MapX,fig=TRUE,echo=FALSE>>= image(vectorx,vectory,matrixz) @ Notes with or without Sexpr{a}. \vfill \pagebreak \section*{Disease Y} <<MapY,fig=TRUE,echo=FALSE>>= ...etc. Often one or more of the diseases is not observed (all
2019 Jul 02
2
RFC: Complex in LLVM
On Tue, 2 Jul 2019 at 19:11, Finkel, Hal J. <hfinkel at anl.gov> wrote: > One option is to make the complex type a special kind of vector, or a > special kind of aggregate (I have a slight preference for the latter). > That gives us an existing set of accessors. I agree non-vector. If nothing else a vector of complexes seems like a sensible concept which would be harder if a
2015 Dec 09
2
SVM hadoop
Buenos días, alguien sabe si hay alguna manera de implementar una máquina de soporte vectorial (svm) con R-hadoop?? Mi interés es hacer procesamiento big data con svm. Se que en R, existen los paquetes {RtextTools} y {e1071} que permiten hacer svm. Pero no estoy segura de que el algoritmo sea paralelizable, es decir, que pueda correr en paralelo a través de la plataforma R-hadoop. Muchas
2016 Jul 25
2
Duda sobre construccion de vectores
Hola buenas tardes comunidad, seguro que hay algo fácil, pero se me escapa y es que estoy hoy algo torpe seguramente, a ver me gustaría hacer lo siguiente: Dada una matriz M (que puede ser muy grande), me gustaria crear un vector, sin usar bucles (ya que cuando es muy grande, todo puede ser muy lento) del siguiente modo. Para cada una de sus filas, me gustaría seleccionar un único elemento de una
2002 Jun 07
1
Rank of a matrix?
Hello everyone, this is a very simple question but I could not find the answer. :-( Is there any function in R for calculating the rank of a matrix? (In the sense of the dimension of the vectorial space that spans) Thank you in advance! Manuel --- -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read
2007 Mar 12
1
Export successively displayed graphics
Hello, I am running R version 2.4.1 on Debian. I am using some R functions which produce several graphics displayed successively with an interactive prompt between each graph. For example, the plot.varest (vars) function produces such output (one graph per time series on which the VAR model is fitted). Plots on GARCH models also produce such outputs. Moreover, the frontend I am using for R
2011 Mar 08
1
(no subject)
Hi, I am exporting an HDF5 file from Matlab (hdf5write function). It contains several datasets: one scalar, one vectory, one 2-D array, and one 3-D array. The hdf5read() function in the hdf5 library seems to load everything except the 3-D array. There are no errors reported even with verbosity=1, as if the 3-D array did not exist in the .hdf5 file. However, I can read the 3-D array back in using
2011 Aug 15
1
Font size R
Hi everyone. I'm using this following code: pdf(file="Fig5.pdf", width = 4.86, height = 6.29, pointsize = 10, family ='Times') par(mfcol = c(3,2), mai = c(0.4,0.8,0,0), omi = c(0.7, 0, 0.7, 0.1)); hist( rnorm(100) ) dev.off() When I open this in any vectorial software (like Illustrator), it says that my font size is 7 instead of 10 that I specified. I have tried
2008 May 24
1
Spatial Overlay - SQL - Geoprocessing
Can we by any change perform in R something similar geoprocessing or, more advanced, Spatial SQL over vectorial data? Paulo [[alternative HTML version deleted]]
2010 Jul 14
1
FYI: matrix surprise
Some time ago someone asked for things that make R difficult to master. Here I want to record one R behavior that took me off-guard yesterday. Moral of the story: vectorialize, but don't exaggerate. Hope it helps mario ### A very simple data frame tc <- textConnection( "prefix idx val A 1 11 A 2 22 B 1 33 B 2 44") s <- read.table(tc, stringsAsFactors=FALSE, header=TRUE) close(tc) print(s) ### Matrix I want to fill wi...
2016 Jan 27
3
¿Por qué no me funciona?
Soy novato, así que imagino que será muy fácil de resolver... Dataset$total <- with(Dataset, if (col>1) 5 else 6) Quiero guardar en la columna total, un 5 si col es mayor que 1 y sino que guarde un 6. Sólo me compara el primer dato de la primera fila, y lo copia para todas las demás. No me lo calcula fila a fila. ¿? [[alternative HTML version deleted]]