The OpenD Programming Language

ProdAccumulator

Constructors

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

Members

Aliases

mantissa
alias mantissa = x

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