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 5506 def initialize(r,&f) 5507 super(r) # this is important in jruby 1.5.6! 5508 @coFac = r.coFac; 5509 @func = f 5510 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 5518 def generate(i) 5519 a = @func.call(i); 5520 if a.is_a? RingElem 5521 a = a.elem; 5522 end 5523 #puts "f_5 type(#{a}) = #{a.class}\n"; 5524 return a; 5525 end