class JAS::MCoeff
(Was inner) class which extends edu.jas.ps.MultiVarCoefficients
Public Class Methods
new(r,&f)
click to toggle source
Constructor.
r polynomial RingFactory. f(ExpVector e) must return a value of type r.coFac.
Calls superclass method
# File examples/jas.rb, line 5400 def initialize(r,&f) super(r) # this is important in jruby 1.5.6! @coFac = r.coFac; @func = f end
Public Instance Methods
generate(i)
click to toggle source
Generator for a coefficient.
ExpVector e parameter. returns a value of type r.coFac
# File examples/jas.rb, line 5412 def generate(i) a = @func.call(i); if a.is_a? RingElem a = a.elem; end #puts "f_5 type(#{a}) = #{a.class}\n"; return a; end