Displaying 14 results from an estimated 14 matches for "isum".
Did you mean:
csum
2016 Feb 09
2
Modified LLVM IR
...e, like as given below,
Original LLVM IR file,
@.str2 = private unnamed_addr constant [17 x i8] c"\0AI am in
one_11\0A\00", align 1
; Function Attrs: nounwind
define i32 @one_1(i32 %ivar1, i32 %ivar2) #0 {
entry:
%ivar1.addr = alloca i32, align 4
%ivar2.addr = alloca i32, align 4
%isum = alloca i32, align 4
store i32 %ivar1, i32* %ivar1.addr, align 4
store i32 %ivar2, i32* %ivar2.addr, align 4
store i32 0, i32* %isum, align 4
%call = call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([16 x
i8]* @.str, i32 0, i32 0)) #1
%0 = load i32* %ivar1.addr, align 4
%1 = lo...
2016 Feb 10
2
Modified LLVM IR
...d_addr constant [17 x i8] c"\0AI am in
>> one_11\0A\00", align 1
>>
>> ; Function Attrs: nounwind
>> define i32 @one_1(i32 %ivar1, i32 %ivar2) #0 {
>> entry:
>> %ivar1.addr = alloca i32, align 4
>> %ivar2.addr = alloca i32, align 4
>> %isum = alloca i32, align 4
>> store i32 %ivar1, i32* %ivar1.addr, align 4
>> store i32 %ivar2, i32* %ivar2.addr, align 4
>> store i32 0, i32* %isum, align 4
>> %call = call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([16 x
>> i8]* @.str, i32 0, i32 0)) #1
&g...
2016 Feb 10
2
Modified LLVM IR
..._11\0A\00", align 1
>>>>
>>>> ; Function Attrs: nounwind
>>>> define i32 @one_1(i32 %ivar1, i32 %ivar2) #0 {
>>>> entry:
>>>> %ivar1.addr = alloca i32, align 4
>>>> %ivar2.addr = alloca i32, align 4
>>>> %isum = alloca i32, align 4
>>>> store i32 %ivar1, i32* %ivar1.addr, align 4
>>>> store i32 %ivar2, i32* %ivar2.addr, align 4
>>>> store i32 0, i32* %isum, align 4
>>>> %call = call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([16
>>>...
2004 Oct 28
1
Internal function isUME() in findGeneric() is wrong (PR#7320)
Full_Name: Jeff Hallman
Version: 2.0
OS: Linux
Submission from: (NULL) (132.200.32.34)
The function findGeneric() in the utils namespace contains this internal
function:
isUME <- function(e) {
if (is.call(e) && (is.name(e[[1]]) || is.character(e[[1]]))) {
switch(as.character(e[[1]]), UseMethod = as.character(e[[2]]),
"{" = isUMEbrace(e), "if" = isUMEif(e), "")
}
else "&quo...
2016 Feb 10
2
Modified LLVM IR
...t;>>>> ; Function Attrs: nounwind
>>>>>> define i32 @one_1(i32 %ivar1, i32 %ivar2) #0 {
>>>>>> entry:
>>>>>> %ivar1.addr = alloca i32, align 4
>>>>>> %ivar2.addr = alloca i32, align 4
>>>>>> %isum = alloca i32, align 4
>>>>>> store i32 %ivar1, i32* %ivar1.addr, align 4
>>>>>> store i32 %ivar2, i32* %ivar2.addr, align 4
>>>>>> store i32 0, i32* %isum, align 4
>>>>>> %call = call i32 (i8*, ...)* @printf(i8* getelem...
2004 Oct 29
0
(PR#7320) Internal function isUME() in findGeneric() is
...rian Ripley <ripley@stats.ox.ac.uk> wrote:
>
> br> The issue is the use of UseMethod(), which you claim to be valid. As it
> br> is inconsistent with the prime documentation, the help page, I would
> br> question if it is `perfectly legal'. I expect the author of isUME
> br> implemented the behaviour described on the help page.
>
> br> It is documented in S-PLUS as *strongly discouraged*, and although it is
> br> documented in R-lang, I believe the right thing to do is to make the code
> br> agree with the prime documentation.
>...
2013 Mar 20
1
double in summary.c : isum
Hi,
Please consider the following :
> x = as.integer(2^30-1)
[1] 1073741823
> sum(c(rep(x, 10000000), rep(-x,9999999)))
[1] 1073741824
Tested on 2.15.2 and a recent R-devel (r62132).
I'm wondering if s in isum could be LDOUBLE instead of double, like
rsum, to fix this edge case?
https://svn.r-project.org/R/trunk/src/main/summary.c
Thanks,
Matthew
2011 May 09
1
Fortran Symbol Name not in Load Table
...AHE array
IHR_out, & !! Output IHR array
Errors_out)
! Expose subroutine my_function to users of this DLL
!DEC$ ATTRIBUTES
DLLEXPORT,C,REFERENCE,ALIAS:'VALUEAHROPTIMIZE_'::VALUEAHROPTIMIZE
! Body of my_function
Implicit None
Integer *4 IERR, iSum
DOUBLE PRECISION min_IHR_delta, max_AHR_error
logical switch_AHR_tuner
character * 512 AHR_tuner_FilePath
!!DOUBLE PRECISION AHR(500), kW(500) !! Initial Array for reading
Namelist
DOUBLE PRECISION AHR(*), kW(*) !! Initial Array for reading Namelist
DOUBLE PRECISION AHR...
2011 May 09
5
Fortran Symbol Name not in Load Table
...!! Output AHE array
IHR_out, & !! Output IHR array
Errors_out)
! Expose subroutine my_function to users of this DLL
!DEC$ ATTRIBUTES
DLLEXPORT,C,REFERENCE,ALIAS:'VALUEAHROPTIMIZE_'::VALUEAHROPTIMIZE
! Body of my_function
Implicit None
Integer *4 IERR, iSum
DOUBLE PRECISION min_IHR_delta, max_AHR_error
logical switch_AHR_tuner
character * 512 AHR_tuner_FilePath
!!DOUBLE PRECISION AHR(500), kW(500) !! Initial Array for reading
Namelist
DOUBLE PRECISION AHR(*), kW(*) !! Initial Array for reading Namelist
DOUBLE PRECISION AHR_out(*)...
2018 Jan 25
2
sum() returns NA on a long *logical* vector when nb of TRUE values exceeds 2^31
Just following up on this old thread since matrixStats 0.53.0 is now
out, which supports this use case:
> x <- rep(TRUE, times = 2^31)
> y <- sum(x)
> y
[1] NA
Warning message:
In sum(x) : integer overflow - use sum(as.numeric(.))
> y <- matrixStats::sum2(x, mode = "double")
> y
[1] 2147483648
> str(y)
num 2.15e+09
No coercion is taking place, so the
2018 Jan 30
2
sum() returns NA on a long *logical* vector when nb of TRUE values exceeds 2^31
...> total 0
>
> > /Henrik
>
> Thank you, Henrik, for the reminder.
>
> Back in June, I had mentioned to Herv? and R-devel that
> 'logical' should remain to be treated as 'integer' as in all
> arithmetic in (S and) R. Herv? did mention the isum()
> function in the C code which is relevant here .. which does have
> a LONG INT counter already -- *but* if we consider that sum()
> has '...' i.e. a conceptually arbitrary number of long vector
> integer arguments that counter won't suffice even there.
>
> Before t...
2018 Jan 27
0
sum() returns NA on a long *logical* vector when nb of TRUE values exceeds 2^31
...ory allocations:
> bytes calls
> total 0
> /Henrik
Thank you, Henrik, for the reminder.
Back in June, I had mentioned to Herv? and R-devel that
'logical' should remain to be treated as 'integer' as in all
arithmetic in (S and) R. Herv? did mention the isum()
function in the C code which is relevant here .. which does have
a LONG INT counter already -- *but* if we consider that sum()
has '...' i.e. a conceptually arbitrary number of long vector
integer arguments that counter won't suffice even there.
Before talking about implementation /...
2017 Jun 07
1
sum() returns NA on a long *logical* vector when nb of TRUE values exceeds 2^31
>>>>> Martin Maechler <maechler at stat.math.ethz.ch>
>>>>> on Tue, 6 Jun 2017 09:45:44 +0200 writes:
>>>>> Herv? Pag?s <hpages at fredhutch.org>
>>>>> on Fri, 2 Jun 2017 04:05:15 -0700 writes:
>> Hi, I have a long numeric vector 'xx' and I want to use
>> sum() to count the number of
2018 Feb 01
0
sum() returns NA on a long *logical* vector when nb of TRUE values exceeds 2^31
...>>
>> Thank you, Henrik, for the reminder.
>>
>> Back in June, I had mentioned to Herv? and R-devel that
>> 'logical' should remain to be treated as 'integer' as in all
>> arithmetic in (S and) R. Herv? did mention the isum()
>> function in the C code which is relevant here .. which does have
>> a LONG INT counter already -- *but* if we consider that sum()
>> has '...' i.e. a conceptually arbitrary number of long vector
>> integer arguments that counter won't suffice...