class RQRCodeCore::QRPolynomial
def mod(e)
Experimental RBS support (using type sampling data from the type_fusion
project).
def mod: (RQRCodeCore::QRPolynomial e) -> RQRCodeCore::QRPolynomial
This signature was generated using 1 sample from 1 application.
def mod(e) if get_length - e.get_length < 0 return self end ratio = QRMath.glog(get(0)) - QRMath.glog(e.get(0)) num = Array.new(get_length) (0...get_length).each do |i| num[i] = get(i) end (0...e.get_length).each do |i| tmp = num[i].nil? ? 0 : num[i] num[i] = tmp ^ QRMath.gexp(QRMath.glog(e.get(i)) + ratio) end QRPolynomial.new(num, 0).mod(e) end