alignScales

fnlong[2] alignScales(long a, ubyte aScale, long b, ubyte bScale) @safe

Aligns two coefficients to a common scale (the max), returning the aligned pair. The one with the smaller scale is scaled up.

Parameters

athe left coefficient
aScalethe left scale
bthe right coefficient
bScalethe right scale

Returns

the aligned coefficients at max(aScale, bScale).

Throws

DataFrameException on overflow during alignment.