import Integer from '../../util/Integer' ; import IllegalArgumentException from '../../IllegalArgumentException' ; import ArithmeticException from '../../ArithmeticException' ; author Sean Owen
 *  author David Olivier
  export default abstract class AbstractGenericGF { protected expTable : Int32Array ; protected logTable : Int32Array ; public abstract getZero ( ) ; public abstract buildMonomial ( degree , coefficient ) ; public abstract equals ( o ) ; public abstract multiply ( a , b ) ; public abstract inverse ( a ) ; return public exp ( a ) { return this . expTable [ a ] ; } return public log ( a ) { if ( a === 0 ) { throw new IllegalArgumentException ( ) ; } return this . logTable [ a ] ; } return public static addOrSubtract ( a , b ) { return a ^ b ; } }