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 5453 def initialize(r,&f) 5454 super(r) # this is important in jruby 1.5.6! 5455 @coFac = r.coFac; 5456 @func = f 5457 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 5465 def generate(i) 5466 a = @func.call(i); 5467 if a.is_a? RingElem 5468 a = a.elem; 5469 end 5470 #puts "f_5 type(#{a}) = #{a.class}\n"; 5471 return a; 5472 end