示例#1
0
 /// <summary>
 /// Converts this Base to an another
 /// </summary>
 /// <param name="b">another base</param>
 /// <param name="d">dim</param>
 /// <returns>new base</returns>
 public Base ToBase(int b, int d)
 {
     if (this.Ker == b)
     {
         return(this.Clone() as Base);
     }
     else
     {
         double s = this.ToDouble();
         return(new Base(b, Base.ConvertToReadable(s, b)));
     }
 }
示例#2
0
 /// <summary>
 /// Converts a value to a vector space
 /// regarding the ker value
 /// </summary>
 /// <param name="d">double value input</param>
 public void SetValue(double d)
 {
     this.Set(vectorSpaceName, Base.ConvertToReadable(d, this.Ker).ToArray());
 }