search for: smallvec

Displaying 10 results from an estimated 10 matches for "smallvec".

2008 Oct 30
3
why does sample(x, n) give the same n items in every separate runs?
Hello R users, I have gene expression data of two groups of genes (large and small). Gene expression intensities of those genes are classified into 1 to 10 levels. What I want is to make a random set of genes that have the same levels as the small group from large group using sample(). I used smallvec to hold the number of genes in each levels (1 to 10) for small group, largevec for large group. I ordered the gene expression data frame of large group (largedf) by the levels and randomly chose the genes with same level as small group. Using the code below I can get the random set of genes from la...
2020 Nov 13
6
RFC: [SmallVector] Adding SVec<T> and Vec<T> convenience wrappers.
We've pretty happy now with a patch that adds two wrappers around SmallVector that make it 1) more convenient to use and 2) will tend to mitigate misuse of SmallVector. We think it's ready for wider discussion: https://reviews.llvm.org/D90884 SVec<T> is a convenience alias for SmallVector<T, N> with N chosen automatically to keep its size under 64 Bytes (...
2020 Nov 16
2
RFC: [SmallVector] Adding SVec<T> and Vec<T> convenience wrappers.
...2:55 PM David Blaikie <dblaikie at gmail.com> wrote: > I will say I'm not a huge fan of adding even more names for things in > this fairly core/common use case (now we'll have even more vector > names to pick from) - can we use default template arguments so we can > write SmallVector<T> instead of SmallVector<T, N> and would that > address some of the use cases proposed here? > I won't claim it is perfect, but the added names are a compromise over rounds of reviews with the folks in the revision. In particular I'm quite concerned that a default val...
2020 Nov 16
0
RFC: [SmallVector] Adding SVec<T> and Vec<T> convenience wrappers.
I will say I'm not a huge fan of adding even more names for things in this fairly core/common use case (now we'll have even more vector names to pick from) - can we use default template arguments so we can write SmallVector<T> instead of SmallVector<T, N> and would that address some of the use cases proposed here? I think someone (JYKnight, perhaps) mentioned in the code review (always difficult fragmenting the discussion between code review and RFC, unfortunately - not sure there's a great solutio...
2020 Nov 16
0
RFC: [SmallVector] Adding SVec<T> and Vec<T> convenience wrappers.
...t;dblaikie at gmail.com> wrote: >> >> I will say I'm not a huge fan of adding even more names for things in >> this fairly core/common use case (now we'll have even more vector >> names to pick from) - can we use default template arguments so we can >> write SmallVector<T> instead of SmallVector<T, N> and would that >> address some of the use cases proposed here? > > > I won't claim it is perfect, but the added names are a compromise over rounds of reviews with the folks in the revision. In particular I'm quite concerned that...
2020 Nov 16
2
RFC: [SmallVector] Adding SVec<T> and Vec<T> convenience wrappers.
...t; wrote: > >> > >> I will say I'm not a huge fan of adding even more names for things in > >> this fairly core/common use case (now we'll have even more vector > >> names to pick from) - can we use default template arguments so we can > >> write SmallVector<T> instead of SmallVector<T, N> and would that > >> address some of the use cases proposed here? > > > > > > I won't claim it is perfect, but the added names are a compromise over > rounds of reviews with the folks in the revision. In particular I...
2020 Nov 17
2
RFC: [SmallVector] Adding SVec<T> and Vec<T> convenience wrappers.
...; >> I will say I'm not a huge fan of adding even more names for things in > >> >> this fairly core/common use case (now we'll have even more vector > >> >> names to pick from) - can we use default template arguments so we can > >> >> write SmallVector<T> instead of SmallVector<T, N> and would that > >> >> address some of the use cases proposed here? > >> > > >> > > >> > I won't claim it is perfect, but the added names are a compromise > over rounds of reviews with the folks...
2020 Nov 17
0
RFC: [SmallVector] Adding SVec<T> and Vec<T> convenience wrappers.
...gt;> >> >> I will say I'm not a huge fan of adding even more names for things in >> >> this fairly core/common use case (now we'll have even more vector >> >> names to pick from) - can we use default template arguments so we can >> >> write SmallVector<T> instead of SmallVector<T, N> and would that >> >> address some of the use cases proposed here? >> > >> > >> > I won't claim it is perfect, but the added names are a compromise over rounds of reviews with the folks in the revision. In part...
2020 Nov 17
1
RFC: [SmallVector] Adding SVec<T> and Vec<T> convenience wrappers.
...ding even more names for things >>> in >>> >> >> this fairly core/common use case (now we'll have even more vector >>> >> >> names to pick from) - can we use default template arguments so we >>> can >>> >> >> write SmallVector<T> instead of SmallVector<T, N> and would that >>> >> >> address some of the use cases proposed here? >>> >> > >>> >> > >>> >> > I won't claim it is perfect, but the added names are a compromise >>&g...
2020 Nov 17
0
RFC: [SmallVector] Adding SVec<T> and Vec<T> convenience wrappers.
...not a huge fan of adding even more names for things >> in >> >> >> this fairly core/common use case (now we'll have even more vector >> >> >> names to pick from) - can we use default template arguments so we >> can >> >> >> write SmallVector<T> instead of SmallVector<T, N> and would that >> >> >> address some of the use cases proposed here? >> >> > >> >> > >> >> > I won't claim it is perfect, but the added names are a compromise >> over rounds of re...