// public RationalGenerator(IHarmonicity harmonicity, Limits limits, Rational[] customBasis = null) { _harmonicity = harmonicity; _limits = limits; if (customBasis != null) { _customBasis = new Pow[customBasis.Length][]; for (int i = 0; i < customBasis.Length; ++i) { _customBasis[i] = Powers.Clone(customBasis[i].GetPrimePowers()); } } }
public Rational Clone() { return(new Rational(Powers.Clone(pows))); }
public Rational(Rational r) { this.pows = Powers.Clone(r.pows); }