MCPcopy Create free account
hub / github.com/creatale/node-dv / buildMonomial

Method buildMonomial

deps/zxing/core/src/zxing/pdf417/decoder/ec/ModulusGF.cpp:68–81  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

66}
67
68Ref<ModulusPoly> ModulusGF::buildMonomial(int degree, int coefficient)
69{
70 if (degree < 0) {
71 throw IllegalArgumentException("monomial: degree < 0!");
72 }
73 if (coefficient == 0) {
74 return zero_;
75 }
76 int nCoefficients = degree + 1;
77 ArrayRef<int> coefficients (new Array<int>(nCoefficients));
78 coefficients[0] = coefficient;
79 Ref<ModulusPoly> result(new ModulusPoly(*this,coefficients));
80 return result;
81}
82
83
84

Callers 3

decodeMethod · 0.45
runEuclideanAlgorithmMethod · 0.45
divideMethod · 0.45

Calls 1

Tested by

no test coverage detected