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 5670 def initialize(r,&f) 5671 super(r) # this is important in jruby 1.5.6! 5672 @coFac = r.coFac; 5673 @func = f 5674 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 5682 def generate(i) 5683 a = @func.call(i); 5684 if a.is_a? RingElem 5685 a = a.elem; 5686 end 5687 #puts "f_5 type(#{a}) = #{a.class}\n"; 5688 return a; 5689 end