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
5694 def initialize(r,&f)
5695     super(r) # this is important in jruby 1.5.6!
5696     @coFac = r.coFac;
5697     @func = f
5698 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
5706 def generate(i)
5707     a = @func.call(i);
5708     if a.is_a? RingElem
5709        a = a.elem;
5710     end
5711     #puts "f_5  type(#{a}) = #{a.class}\n";
5712     return a;
5713 end