ProdAccumulator

Constructors

this
this(F value)
this
this(long exp, F x)

Members

Aliases

F
alias F = Unqual!T
Undocumented in source.
mantissa
alias mantissa = x
opOpAssign
alias opOpAssign(string op : "*") = put
Undocumented in source.

Functions

ldexp
ProdAccumulator!T ldexp(long exp)
opUnary
ProdAccumulator!T opUnary()
opUnary
ProdAccumulator!T opUnary()
prod
T prod()
put
void put(U e)
put
void put(ProdAccumulator!T value)
put
void put(Range r)

Variables

exp
long exp;
x
F x;

Examples

import mir.ndslice.slice: sliced;

ProdAccumulator!float x;
x.put([1, 2, 3].sliced);
assert(x.prod == 6f);
x.put(4);
assert(x.prod == 24f);

Meta