Displaying 20 results from an estimated 9878 matches for "simplify".
2020 May 22
3
Compatibility issues caused by new simplify argument in apply function
Dear R Developers,
the new simplify argument in apply causes that my package (hsdar) does not
pass the
checks in R-devel.
The workaround, Kurt Hornik send me, is working for the R-code:
if("simplify" %in% names(formals(base::apply)))
do something
else
do something else
Unfortunately, I cannot conditionalize the man...
2020 May 22
2
Compatibility issues caused by new simplify argument in apply function
Interesting problem. I'm very rusty on S4 but would one solution be
to, already now, add 'simplify = TRUE' to the S4 method and document
it;
setMethod("apply", signature(X = "Speclib"),
function(X,
FUN,
bySI = NULL,
...,
simplify = TRUE) {
?
Henrik
On Fri, May 22, 2020 at 6:26 AM Dun...
2018 Mar 13
4
Possible Improvement to sapply
While working with sapply, the documentation states that the simplify argument will yield a vector, matrix etc "when possible". I was curious how the code actually defined "as possible" and see this within the function
if (!identical(simplify, FALSE) && length(answer))
This seems superfluous to me, in particular this part:
!identical(si...
2018 Mar 13
0
Possible Improvement to sapply
Wouldn't that change how simplify='array' is handled?
> str(sapply(1:3, function(x)diag(x,5,2), simplify="array"))
int [1:5, 1:2, 1:3] 1 0 0 0 0 0 1 0 0 0 ...
> str(sapply(1:3, function(x)diag(x,5,2), simplify=TRUE))
int [1:10, 1:3] 1 0 0 0 0 0 1 0 0 0 ...
> str(sapply(1:3, function(x)diag(x,5,2), s...
2014 Dec 09
3
Request permission for editting Simplified Chinese Frontpage
My wiki username is HoLee .
Now, the simplified chinese frontpage is maintained by TimothyLee.
Because of his efforts ,the Traditional Chinese Frontpages and
Simplified Chinese Frontpages are created and maintained very well.
I know that TimothyLee is from Taiwan,so the Simplified Chinese
Frontpage is translated from Traditional Chinese Frontpage
directly.So,there are some sentences is
2018 Mar 13
1
Possible Improvement to sapply
You?re right, it sure does. My suggestion causes it to fail when simplify = ?array?
From: William Dunlap [mailto:wdunlap at tibco.com]
Sent: Tuesday, March 13, 2018 12:11 PM
To: Doran, Harold <HDoran at air.org>
Cc: r-help at r-project.org
Subject: Re: [R] Possible Improvement to sapply
Wouldn't that change how simplify='array' is handled?
> str...
2008 Oct 17
0
Wine release 1.0.1
The Wine maintenance release 1.0.1 is now available.
This is a maintenance release from the 1.0 stable branch. It contains
only translation updates and small bug fixes.
The source is available from the following locations:
http://ibiblio.org/pub/linux/system/emulators/wine/wine-1.0.1.tar.bz2
http://prdownloads.sourceforge.net/wine/wine-1.0.1.tar.bz2
Binary packages for various
2020 May 22
0
Compatibility issues caused by new simplify argument in apply function
You didn't explained what the error is. This is what it looks like to
me, but I'm probably wrong in some details:
1. R-devel added an argument to the apply() function, so the header has
changed from
function (X, MARGIN, FUN, ...)
to
function(X, MARGIN, FUN, ..., simplify = TRUE)
2. Your package converted the function apply() to an S4 generic.
3. Now the signatures of your methods for this generic need to have the
simplify argument, but if you do that, they won't work in previous
versions of R.
You'd like to have conditional code and documentation to de...
2011 Jan 20
1
[LLVMdev] [llvm-commits] [llvm] r123754 - in /llvm/trunk: lib/Analysis/InstructionSimplify.cpp test/Transforms/InstSimplify/2010-12-20-Distribute.ll
...;m just asking because building a tool to generate the instruction simplifier
> automatically is relatively high on my TODO list and I don't want to duplicate
> work :)
The auto-simplifier is a very simple kind of super-optimizer. It tries to find
optimizations suitable for InstructionSimplify [instsimplify]. The difference
between instsimplify and instcombine is that instcombine is allowed to create
new instructions while instsimplify needs to simplify expressions to already
existing subexpressions present inside the existing expression. For example
instsimplify can turn this
(X +...
2005 May 26
1
Simplify formula for heterogeneity
...a computational simplified formula to calculate a
measure for heterogeneity (let's say H ):
H = sqrt [ (Si (Sj (Xi - Xj)?? ) ) /n ]
where:
sqrt = square root
Si = summation over i (= 0 to n)
Sj = summation over j (= 0 to n)
Xi = element of X with index i
Xj = element of X with index j
I can simplify the formula to:
H = sqrt [ ( 2 * n * Si (Xi) - 2 Si (Sj ( Xi * Xj)) ) / n]
Unfortunately this formula stays difficult in iterative programming,
because I have to keep every element of X to calculate H.
I know a computional simplified formula exists for the standard
deviation (sd) that is much ea...
2018 Mar 13
0
Possible Improvement to sapply
On 03/13/2018 09:23 AM, Doran, Harold wrote:
> While working with sapply, the documentation states that the simplify argument will yield a vector, matrix etc "when possible". I was curious how the code actually defined "as possible" and see this within the function
>
> if (!identical(simplify, FALSE) && length(answer))
>
> This seems superfluous to me, in particular this...
2014 Dec 10
3
Request permission for editting Simplified Chinese Frontpage
Dear Alan
On 12/10/2014 01:27 AM, Alan Bartlett wrote:
> On 9 December 2014 at 13:50, Ho Lee <huanying2000a at gmail.com> wrote:
>> My wiki username is HoLee .
>>
>> Could I gain access to these Simplified Chinese Frontpage?
> I like the idea of having more than one person looking after a
> particular language translation and your offer to assist with
2013 Aug 08
0
[LLVMdev] [global-isel] Simplifying the simplifier
----- Original Message -----
[snip]
>
> DAGCombine is supposed to clean up legalization products, but today
> it seems to be accumulating some transformations that probably
> belong in InstCombine. Since it is running so late in the pass
> pipeline, its canonicalizing approach is causing problems for
> targets that are trying to arrange the IR optimally. Optimal and
>
2018 Mar 13
2
Possible Improvement to sapply
...ay, March 13, 2018 9:43 AM
To: Doran, Harold <HDoran at air.org>; 'r-help at r-project.org' <r-help at r-project.org>
Subject: Re: [R] Possible Improvement to sapply
On 03/13/2018 09:23 AM, Doran, Harold wrote:
> While working with sapply, the documentation states that the simplify
> argument will yield a vector, matrix etc "when possible". I was
> curious how the code actually defined "as possible" and see this
> within the function
>
> if (!identical(simplify, FALSE) && length(answer))
>
> This seems superfluous to me, i...
2014 Jun 12
3
[LLVMdev] Passes calling
...i,
I know when a pass needs other passes, it will use something like this: "AU.addRequired<LoopInfo>();". But this is usually used for the analysis passes.
When a pass needs another transform pass, can it call it automatically?
For example:
Some loop optimizations may need loop-simplify, I need add -loop-simplify before calling these passes manually, or they can call the pass -loop-simplify automatically?
Thank you
Regards,
Hanbing LI
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/2014...
2019 May 17
5
Give update.formula() an option not to simplify or reorder the result -- request for comments
...mber of
transformations on the results, eliminating redundant variables and
reordering interactions to be after the main effects. This is not
always the desired behaviour, because formulas are increasingly used
for purposes other than specifying linear models.
This the proposal is to add an option simplify= (defaulting to TRUE,
for backwards compatibility) that if FALSE will skip the simplification
step.
That is,
> update(a~b:c+b, .~.+b) # default: simplify=TRUE
a ~ b + b:c
> update(a~b:c+b, .~.+b, simplify=FALSE) # results are a mock-up
a ~ b:c + b + b
>From what I can tell, this can...
2010 Jul 07
2
About Simplified Chinese Translation
Hi,
Hello, everyone.
My Name is GaoHu, I'm living in Hangzhou, ZheJiang, China.
Last year, I graduate from college in ShanXi. Now, I'm working in a IT company that
using Delphi and Oracle, with Our Server RHEL.
I'm interest in Open Source and like CentOS as it is simple and stable. I like to use
CentOS as my server, with Fedora as my desktop. I like linux and I just think there
2011 Oct 22
5
[LLVMdev] How to make Polly ignore some non-affine memory accesses
...have synchronized all clang/llvm/polly to the latest version and I
compiled them all together. Loading polly with "opt" works strangely
... :
opt -S -load ${PATH_TO_POLLY_LIB}/LLVMPolly.dylib -mem2reg -no-aa
-targetlibinfo -tbaa -basicaa -preverify -domtree -verify -mem2reg
-instcombine -simplifycfg -tailcallelim -simplifycfg -reassociate
-domtree -loops -loop-simplify -lcssa -loop-rotate -instcombine
-scalar-evolution -loop-simplify -lcssa -indvars -polly-prepare
-postdomtree -domfrontier -regions -polly-region-simplify
-scalar-evolution -loop-simplify -lcssa -indvars -postdomtree
-domfron...
2006 Apr 04
2
documenting s4 methods in package
...w when R build the help pages it reports
"missing link(s): ~~fun~~. What is going on?
Below is the code from the help file and the associated s4 method.
Any help would be greatly appreciated.
Steve
GENERIC FUNCTION AND METHODS
setGeneric("getRemovedDf.OAD",function(x,y,z,simplify=TRUE,descrip=FALSE){st
andardGeneric("getRemovedDf.OAD")})
setMethod("getRemovedDf.OAD","status.or.rm.v1",
function(x,y,z,simplify,descrip){
if(length(0">x@removed) <mailto:x@removed)> >0){
pred <- unlist(lapply(x@removed,f...
2016 Aug 24
3
Request suggestions about how to remove redundencies caused by SCEV expansion fundementally
...rom SCEVExpander to
>>> strength reduce it. SCEVSimplifier can then internally use routines
>>> in SCEV, so that it is "as smart as" SCEV in most cases.
>>>
>>> — Sanjoy
>
> Combine the efforts of making the cleanup passes smarter and
> simplifying the expanded code to make it more IR canonical looks like
> a promising way. But I may not understand SCEVSimplifier you suggested
> here correctly: The input of SCEVSimplifier is IR or SCEV? The code
> generated by SCEVExpander is IR. If the input of SCEVSimplifier is IR,
> how...