Summator

Output range for summation.

struct Summator (
T
Summation summation
) if (
isMutable!T
) {}

Constructors

this
this(T n)

Public Imports

mir.ndslice.slice
public import mir.ndslice.slice;

Members

Aliases

F
alias F = T
Undocumented in source.
attr
alias attr = fastmath
Undocumented in source.
attr
alias attr = AliasSeq!()
Undocumented in source.
attr
alias attr = AliasSeq!()
Undocumented in source.

Functions

isFinite
bool isFinite()

Returns true if current sum is finite (not infinite or NaN).

isFinite
bool isFinite()

Returns true if current sum is finite (not infinite or NaN).

isInfinity
bool isInfinity()

Returns true if current sum is ±∞.

isInfinity
bool isInfinity()

Returns true if current sum is ±∞.

isNaN
bool isNaN()

Returns true if current sum is a NaN.

isNaN
bool isNaN()

Returns true if current sum is a NaN.

opAssign
void opAssign(T rhs)

Operator overloading.

opCast
C opCast()

Returns Summator with extended internal partial sums.

opCast
C opCast()

cast(C) operator overloading. Returns cast(C)sum(). See also: cast

opOpAssign
void opOpAssign(T rhs)
void opOpAssign(Summator rhs)

Operator overloading.

partialsSum
F partialsSum()
Undocumented in source. Be warned that the author may not have intended to support it.
put
void put(N n)
void put(Range r)

Adds n to the internal partial sums.

sum
T sum()

Returns the value of the sum.

unsafePut
void unsafePut(F x)
Undocumented in source.

Manifest constants

registersCount
enum registersCount;
Undocumented in source.

Variables

c
F c;
Undocumented in source.
c
F c;
Undocumented in source.
ccs
F ccs;
Undocumented in source.
counter
size_t counter;
Undocumented in source.
cs
F cs;
Undocumented in source.
index
size_t index;
Undocumented in source.
partials
F[size_t.sizeof * 8] partials;
Undocumented in source.
partials
F[size_t.sizeof * 8] partials;
Undocumented in source.
s
F s;
Undocumented in source.
s
F s;
Undocumented in source.
s
F s;
Undocumented in source.
s
F s;
Undocumented in source.
s
F s;
Undocumented in source.
s
Decimal!256 s;
Undocumented in source.
ss
T ss;
Undocumented in source.
t
F t;
Undocumented in source.
y
F y;
Undocumented in source.

Meta