class JAS::MCoeff
(Was interior) 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 5832 def initialize(r,&f) 5833 super(r) # this is important in jruby 1.5.6! 5834 @coFac = r.coFac; 5835 @func = f 5836 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 5844 def generate(i) 5845 a = @func.call(i); 5846 if a.is_a? RingElem 5847 a = a.elem; 5848 end 5849 #puts "f_5 type(#{a}) = #{a.class}\n"; 5850 return a; 5851 end