Displaying 20 results from an estimated 30000 matches similar to: "[LLVMdev] TableGen List Manipulation"
2009 May 11
0
[LLVMdev] TableGen List Manipulation
On May 8, 2009, at 5:18 PM, David Greene wrote:
> I see that one can take slices of lists, but is there
> any way to conditionally take a slice?
>
> For example, let's say I have this (fictitious) code:
>
> class FOO<list<string> names> {
> string First = names[0];
> string Middle = !if(!eq(!length(names), 3), names[1], "");
> string Last =
2011 Jul 26
2
Plotting problems directional or rose plots
Hi,
I'm trying to get a plot that looks somewhat like the attached image
(sketched in word).
I think I need somthing called a rose diagram? but I can't get it to do what
I want. I'm happy to use any library.
Essentially, I want a circle with degree slices every 10 degrees with 0 at
the top representing north, and
'tick marks' around the outside in 10 degree increments to
2004 Jul 20
2
vectorizing a matrix computation
Dear R users
I have a 4-dimensional matrix (actually several 3d (x,y, slices)
matrices appended over time (volumes))
say, e.g. I want to z-transform the data (subtract the mean and divide
by the std-deviation)
for (slice in 1:slices) {
for (x in 1:x.dim) {
for (y in 1:y.dim) {
t <- as.matrix(my.matrix[x,y,slice,1:volumes])
for (vol in 1:volumes) {
2010 Oct 31
1
Need help with lmer model specification syntax for nested mixed model
I haven't been able to fully make sense of the conflicting online information
about whether and how to specify nesting structure for a nested, mixed
model. I'll describe my experiment and hopefully somebody who knows lme4
well can help.
We're measuring the fluorescence intensity of brain slices from frogs that
have undergone various treatments. We want to use multcomp to look for
2008 May 02
1
GLMM and data manipulation (2nd try)
Hello,
I posted a question yesterday but I got no replies, so I'll try to
reformulate it in a more concise way.
I have the following data, summarizing approval ratings on two
different surveys for a random sample of 1600 individuals:
> ## Example: Ratings of prime minister (Agresti, Table 12.1, p.494)
> rating <- matrix(c(794, 86, 150, 570), 2, 2)
> dimnames(rating) <-
2011 Aug 08
1
aggregate.zoo on bivariate data
Hi,
I'm removing non-unique time indices in a zoo time series by means of
aggregate. The time series is bivariate, and the row to be kept only depends
on the maximum of one of the two columns. Here's an example:
x <- zoo(rbind( c(1,1), c(1.1, 0.9), c(1.1, 1.1), c(1,1) ),
order.by=c(1,1,2,2))
The eventual aggregated result should be
1 1.1 0.9
2 1.1 1.1
that is, in
2013 Feb 06
1
how to extract test for collinearity and constantcy used in lda
Hi everyone,
I'm trying to vectorize an application of lda to each 2D slice of a 3D
array, but am running into trouble: It seems there are quite a few 2D
slices that trigger either the "variables are collinear" warning, or worse,
trigger a "variable appears to be constant within groups" error and fails
(i.e., ceases computation rather than skips bad slice).
There are
2018 Apr 02
2
What is the universal (world wide) understanding behind degaussing harddisks?
Good evening from Singapore!
The foremost question which I want to ask is, what is the universal
(world wide) understanding behind degaussing hard drives?
I work for No Secrets Agency (NSA) Pte Ltd (fictitious company name
used). My sales manager Edward Joseph Snowden (fictitious individual
name used) had *promised* our customer Leave Me in the Lurch (S) Pte
Ltd (fictitious company name used)
2007 Feb 27
3
2-way mirror or RAIDZ?
I have a shiny new Ultra 40 running S10U3 with 2 x 250Gb disks.
I want to make best use of the available disk space and have some level of
redundancy without impacting performance too much.
What I am trying to figure out is: would it be better to have a simple mirror
of an identical 200Gb slice from each disk or split each disk into 2 x 80Gb
slices plus one extra 80Gb slice on one of the
2018 Apr 02
2
What is the universal (world wide) understanding behind degaussing harddisks?
Hello,
On Mon, 2 Apr 2018 10:01:56 -0400 m.roth at 5-cent.us wrote:
> Turritopsis Dohrnii Teo En Ming wrote:
> > Good evening from Singapore!
> >
> > The foremost question which I want to ask is, what is the universal
> > (world wide) understanding behind degaussing hard drives?
> >
> > I work for No Secrets Agency (NSA) Pte Ltd (fictitious company name
2014 Feb 10
2
Re: libvirt/qemu and cgroups
> The precise answer depends on which version of systemd you have. In
> any systemd host though, systemd should ensure all the filesystems
> are mounted correctly. If you have libvirt >= 1.1.1 and systemd >= 205
> then you can use its "slice" and "scope" concepts to setup grouping
> of VMs. If you have older systemd, then you have to setup groups
>
2006 Nov 13
2
Rails Camp Scaling Session notes
Here are some notes from the scalability session of last week''s Rails
camp. They were entered by another session participant and are posted
at:
http://www.rubyonrailscamp.com/10%3A15%2Bsession%2B-%2Bscaling
The key points from my point of view:
- the Ruby VM is sketchy, rather like the Java VM around 1997
- the single threaded nature of Rails dispatch handling means we may
incur a
2018 Apr 02
1
What is the universal (world wide) understanding behind degaussing harddisks?
On Mon, Apr 02, 2018 at 05:29:13PM +0100, Phil Dobbin wrote:
> On 02/04/18 15:09, wwp wrote:
>
> > Hello,
> >
> >
> > On Mon, 2 Apr 2018 10:01:56 -0400 m.roth at 5-cent.us wrote:
> >
> >> Turritopsis Dohrnii Teo En Ming wrote:
> >>> Good evening from Singapore!
> >>>
> >>> The foremost question which I want to ask
2007 Sep 21
1
Weird data from evalJSON
I am trying to have prototype perform a request and return to me a
javascript object representing the json string returned by the
request. I want to iterate over the contents to print each object in
the json string. The value of transport.reponseText in onSuccess is
what I would expect. But once I try to perform evalJSON() on this
text it gives me a bunch of extra function()s when i try to
2020 Sep 03
4
SID mapping: Samba and SSSD
On Thu, Sep 3, 2020 at 2:23 PM Rowland penny via samba <
samba at lists.samba.org> wrote:
> On 03/09/2020 19:19, Jeremy Allison wrote:
> > On Thu, Sep 03, 2020 at 06:43:32PM +0100, Rowland penny via samba wrote:
> >> On 03/09/2020 18:04, Johan Hattne via samba wrote:
> >>> Dear all;
> >>>
> >>> Would anybody be able to tell me what the
2023 Aug 08
2
[libnbd PATCH v4 05/25] golang: Change logic of copy_uint32_array
On Thu, Aug 3, 2023 at 4:57?AM Eric Blake <eblake at redhat.com> wrote:
>
> Commit 6725fa0e12 changed copy_uint32_array() to utilize a Go hack for
> accessing a C array as a Go slice in order to potentially benefit from
> any optimizations in Go's copy() for bulk transfer of memory over
> naive one-at-a-time iteration. But that commit also acknowledged that
> no
2023 Aug 08
1
[libnbd PATCH v4 05/25] golang: Change logic of copy_uint32_array
On Tue, Aug 08, 2023 at 02:36:12PM +0300, Nir Soffer wrote:
> On Thu, Aug 3, 2023 at 4:57?AM Eric Blake <eblake at redhat.com> wrote:
> > func copy_uint32_array(entries *C.uint32_t, count C.size_t) []uint32 {
> > + if (uint64(count) > 64*1024*1024) {
> > + panic(\"violation of state machine guarantee\")
>
> This is unwanted in a library, it
2023 Aug 11
2
[libnbd PATCH] golang: Bump minimum Go version to 1.17
Go 1.17 or newer is required to use unsafe.Slice(), which in turn
allows us to write a simpler conversion from a C array to a Go object
during callbacks.
To check if this makes sense, look at
https://repology.org/project/go/versions compared to our list in
ci/manifest.yml, at the time I made this commit:
Alpine 3.15: 1.17.10
AlmaLinux 8: 1.19.10
CentOS Stream 8: 1.20.4
Debian 10: 1.11.6
Debian
2012 Aug 06
2
[LLVMdev] Tablegen foreach
I'm trying to find examples of the foreach pattern being used in tablegen files.
The problem I am trying to solve is to simplify the amount of tablegen code I have to produce because each operand of an instruction can be a register or a literal.
So for binary, we have 4 instructions, ternary, 8, and quaternary 16 combinations.
Instead of writing all the combinations out, I'd like to use
2004 Jul 13
1
locator() in a multiple plot setting
Hi
based on some code from Thomas Petzoldt, I have a question:
---
opar <- par(mfrow = c(2,4))
slices <- 8
m <- matrix(runif(100),10,10)
my.list <- list()
for (slice in 1:slices) {
my.list[[slice]] <- m
}
for (slice in 1:slices) {
x <- 1*(1:25)
y <- 1*(1:25)
z <- my.list[[slice]]
image(list(x = 0:9, y = 0:9, z = z))
}
par(opar) #restore device