Displaying 20 results from an estimated 55 matches for "vectori".
Did you mean:
vector
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.
...isn't only contained in the comments..
On Fri, Jul 26, 2013 at 4:07 PM, Nadav Rotem <nrotem at apple.com> wrote:
> Author: nadav
> Date: Fri Jul 26 18:07:55 2013
> New Revision: 187267
>
> URL: http://llvm.org/viewvc/llvm-project?rev=187267&view=rev
> Log:
> 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.
>
> Modified: llvm/trunk/lib/Transforms/Vectorize/SLPVectorizer.cpp
> URL:
> http://llvm.org/viewvc/llvm...
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 "no" :)
On Fri, Jul 26, 2013 at 7:56 PM, Nadav Rotem <nrotem at apple.com> wrote:
> Hi Daniel,
&...
2012 Sep 01
1
Vectorial analogue of all.equal()?
...sing 'all.equal with 'identical is almost always preferable.
See the examples.
But the only relevant example is:
x1 <- 0.5 - 0.3
x2 <- 0.3 - 0.1
x1 == x2 # FALSE on most machines
identical(all.equal(x1, x2), TRUE) # TRUE everywhere
which is not a vectorial example.
I do have a work-round of the form:
ix <- which(round(X,4)==round(2.3978953,4))
(where rounding to 4 decimal places is enough to distinguish X-values).
As said above,
ix <- which(X==2.3978953)
will not do, since 'which(X==x)' returns an empty result. And using
all...
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
...#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 with vectorial
reconfigurable units (similar to RSVP). My future work will be autovectorize
loops (I've already studied some code in LLVM and doesn seems very
difficult, thanks to ScalarEvolution, LoopInfo, etc.). I was wondering about
compiling newlib with gcc, compiling my code with llvm, and linking with...
2008 Jul 07
0
[LLVMdev] Trying to compile llvm-gcc to mips
...ulio/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 with vectorial
> reconfigurable units (similar to RSVP). My future work will be autovectorize
> loops (I've already studied some code in LLVM and doesn seems very
> difficult, thanks to ScalarEvolution, LoopInfo, etc.). I was wondering about
> compiling newlib with gcc, compiling my code with ll...
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
...lex 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 complex was itself
vectorial.
Myself, I think I do favour insertvalue/extractvalue over intrinsics
(which is probably a +1 for isAggregate too by extension).
If the notation for the literal is especially re/im rather than 0/1 we
might think about adding "extractvalue %v, real" as sugar (that last
arg is already w...
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
...segunda componente del primer registro, la tercera componente del segundo registro y la tercera componente del tercer registro
-No recuerdo si se digo hace tiempo algo de con la librería data.table, me da igual tener que usar cualquier librería, pero el tema es tratar de hacer que sea una operación vectorial que por ejemplo evite un bucle tal como:
Resultado <- vector("numeric", 3)
for (i in (1:3)){
Resultado[i] = M[i, Indicador[i]]}
-El cuál, como he comentado sería lento si el número de filas de matriz fuese muy elevado
Un saludo y muchas gracias
[[alternative HTML version...
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 http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the &qu...
2007 Mar 12
1
Export successively displayed graphics
...active 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 (RkWard) does not enable me to
export graphs as vectorial image files.
How can I export such graphs as separate (e.g.) Postscript files ?
par(ask=FALSE) didn't help.
Thank you for your answer.
--
Renaud Lacour <renaud.lacour at free.fr>
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 (whitout the PAR line):
pdf(file="Fig5.pdf", width = 4.86, height = 6.29, pointsize = 10, family
='Times')
hist( rnorm(100) )
dev.off()
And this is working.
Anyone k...
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 fi...
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]]