Displaying 20 results from an estimated 40000 matches similar to: "as.name is not idempotent"
2011 Oct 28
2
[LLVMdev] Idempotent intrinsics
Hi all,
Just a quick question about the idempotence of an intrinsic function. Is
there a way to specify that an intrinsic function is idempotent? I am
trying to give as much information about the intrinsic function I added
to LLVM so that LLVM can do optimizations otherwise disabled. Thanks a
lot in advance.
Bin
2006 Jun 09
1
Idempotent apply
Dear all,
I have been working on an idempotent version of apply, such that
applying a function f(x) = x (ie. force) returns the same array (or a
permutation of it depending on the order of the margins):
a <- array(1:27, c(2,3,4))
all.equal(a, iapply(a, 1, force))
all.equal(a, iapply(a, 1:2, force))
all.equal(a, iapply(a, 1:3, force))
all.equal(aperm(a, c(2,1,3)), iapply(a, 2, force))
2012 Aug 01
0
[LLVMdev] Idempotent Code Generation in LLVM
As part of PhD research I integrated support for code generation of
idempotent (re-executable) code regions into LLVM, along with a supporting
IR-level analysis to identify and demarcate large "semantically" idempotent
regions [1]. Some have expressed interest the code, so here is a link that
contains some documentation and pointers to the source hosted on GitHub:
2015 Jan 04
0
[PATCH] virtio: make del_vqs idempotent
Our code calls del_vqs multiple times, assuming
it's idempotent.
commit 3ec7a77bb3089bb01032fdbd958eb5c29da58b49
virtio_pci: free up vq->priv
broke this assumption, by adding kfree there,
so multiple calls cause double free.
Fix it up.
Fixes: 3ec7a77bb3089bb01032fdbd958eb5c29da58b49
Reported-by: Sasha Levin <sasha.levin at oracle.com>
Signed-off-by: Michael S. Tsirkin <mst
2015 Jan 04
0
[PATCH] virtio: make del_vqs idempotent
Our code calls del_vqs multiple times, assuming
it's idempotent.
commit 3ec7a77bb3089bb01032fdbd958eb5c29da58b49
virtio_pci: free up vq->priv
broke this assumption, by adding kfree there,
so multiple calls cause double free.
Fix it up.
Fixes: 3ec7a77bb3089bb01032fdbd958eb5c29da58b49
Reported-by: Sasha Levin <sasha.levin at oracle.com>
Signed-off-by: Michael S. Tsirkin <mst
1999 Nov 23
1
as.name() is not idempotent (PR#337)
as.name(as.name("ss"))
gives an error in R (0.90 and earlier)
but should of course give the same as simply
as.name("ss")
This reminds me of similar bug/problem... which I don't recall.
Yes, I should build tests like these into "make test-Specific" ..
Martin
--please do not edit the information below--
Version:
platform = sparc-sun-solaris2.5.1
arch =
2016 Mar 25
1
attribute of intrinsic function
Thanks for your reply, Philip.
You are right, when I use LLVM-3.8, the 'argmemonly' shows up. Previously,
I use LLVM-3.7.
I think idempotent is what I want. Can you tell me how to add idempotent
attribute to the function? Thanks.
Regards,
Xiangyang
2016-03-24 14:30 GMT-07:00 Philip Reames <listmail at philipreames.com>:
>
>
> On 03/24/2016 12:45 PM, Xiangyang Guo via
2003 Sep 17
1
the name of a variable in a function
Dear collegues,
How can I get the name of a variable (and not the variable) within a
function ?
For instance, in the following function, I'd like to create a variable
in the dataframe df with the same name to the variable passed in var:
prova <- function( var )
{
df <- as.data.frame(matrix(nr=20,nc=0))
df[["here"]] <- seq(min(var), max(var), le= 20) #
df
}
for
2003 Mar 07
1
column name changes based on substrings
Hi peoples,
I'm trying to work out a function which will allow me to relace column names
on the basis of substrings within the existing names. e.g.
I'd like:
blah.Na blah2.Na blah3.Mg blah4.Mg blah5.K blah6.K
R1 x x x x x x
R2 x x x x x x
...
to become:
Na (%) Na (%) Mg (%) Mg
2001 Mar 05
3
xgobi/ggobi
> From: Ko-Kang at xtra.co.nz
> Date: Mon, 5 Mar 2001 23:25:00 +1300
> > This might be better discussed on the ggobi help list, but I failed to
> > subscribe to that as mail to ggobi.org is refused ....
>
> Yes I tried to subscribe to the list a few weeks ago and it refused my
> subsription somehow...
I think if you use ggobi-help-request at franz.stat.wisc.edu it
2010 Apr 01
4
POST-only logic in protect_from_forgery considered harmful?
Hi folks,
I am just getting into rails again after a multi-year stint of
mod_perl jobs, which might grant me some newbie-indemnity for the time
being - but I''ve found an issue I think warrants discussion.
As discussed here - http://api.rubyonrails.org/classes/ActionController/RequestForgeryProtection/ClassMethods.html
- the CSRF protection feature does not kick in for GET requests. This
2009 Nov 04
0
[LLVMdev] idempotence
The LLVM projects page says this:
"We need some way to reason about errno. Consider a loop like this:
for ()
x += sqrt(loopinvariant);"
and:
"The hard part of this project is figuring out how to describe errno in
the optimizer"
The important property here is the idempotence of sqrt(): it is
potentially side-effecting, but that side effect is independent of the
2015 Jun 28
3
Old and new package version numbers during RPM update
On 29 June 2015 at 07:37, John R Pierce <pierce at hogranch.com> wrote:
> so a regex looking for "system:" vs "system {" should nicely delineate
> these. I dunno, I might even put that into the conversion utility and
> have it just quit if the file is already in the new format, and always run
> it.
>
?+1 for the idempotent approach. IMHO much more
2002 Jun 26
3
pam session as root
Beyond any more general questions of whether pam sessions *should* be
run as root, is there an immediate security concern with moving the
pam_open_session (and pam_setcred) stuff to the parent (root) process?
(E.g., via the patch below.)
--
Mike Stone
diff -u -r1.4 auth-pam.c
--- auth-pam.c 25 Jun 2002 00:45:33 -0000 1.4
+++ auth-pam.c 25 Jun 2002 20:33:41 -0000
@@ -286,6 +286,8 @@
2016 Mar 24
0
attribute of intrinsic function
On 03/24/2016 12:45 PM, Xiangyang Guo via llvm-dev wrote:
> Hi,
>
> When I define an intrinsic function with memory write permission, my
> assumption is that we can either attach [IntrReadWriteArgMem] or [] to
> the intrinsic function. Based on the comment of the source code ,
> "IntrReadWriteArgMem - This intrinsic reads and writes only from
> memory that one of its
2000 Mar 23
3
Tukey multiple comparisons
I am embarrassed to have to ask this but can anyone tell me of a Tukey
multiple comparisons procedure available for R? I have looked through
the search page, through the FAQ, and in the index of V&R (1999), and
I still can't find such a thing. I see there is a ptukey function and
a qtukey function but that is as far as I got. Do I need to roll my
own?
--
Douglas Bates
2003 Jun 09
2
looking for Prof Bates' file
Hello
I'm reading up on fitting truncated Weibull distribution to data.
There are posts in 2002 that point to this presentation by Prof Bates:
http://www.stat.wisc.edu/~bates/JSM2001.pdf
but now the file is not there. I can't find it anywhere else, Google
doesn't have a cached copy for it.
Could someone please give me a copy of this file, if they have it?
Thanks and regards,
1999 Apr 12
3
--nsize and --vsize
Martin M has suggested I widen this discussion to R-devel, and
> I agree that we should increase them,
> but I'm not sure at all about the amount.
>
> The default could even depend on the architecture (via "./configure")..
Views, please.
------------- Begin Forwarded Message -------------
Is is not time we increased the defaults a bit? As the base gets bigger
I hit
2013 Sep 26
1
[LLVMdev] Is ConstantFoldConstantExpression meant to be idempotent?
I noticed a change in LLVM's behavior between 3.2 and 3.3/ToT, but I'm not
sure if it qualifies as a bug/regression or not.
The change is that in 3.3 and tip of trunk, calling
ConstantFoldConstantExpression on
i64 and (i64 add (i64 add (i64 ptrtoint (i64* getelementptr (i64* null,
i32 1) to i64), i64 ptrtoint (i64* getelementptr (i64* null, i32 1) to
i64)), i64 15), i64 -16)
2004 Apr 20
2
Creating variable names
My apologies for asking what is doubtless a dumb question, but I have
scant experience in R.
It would be very convenient in doing lots of plots to be able to do them
in a loop that stepped through a vector of variable names. For example
one could say
x<-("mydates")
y<-c("foo1","foo2","foo3") #where "foon" were vectors