public object Clone() // for making a copy of the EvEvec object { EvEvec clone = new EvEvec(); clone.EigenValue = this.EigenValue; if (this.EigenVec != null) { clone.EigenVec = (double[])this.EigenVec.Clone(); } clone.size = this.size; return(clone); }
public int CompareTo(Object obj) // for sorting { EvEvec evv = (EvEvec)obj; return(evv.EigenValue.CompareTo(this.EigenValue)); // highest to lowest sorting by Eigen value }