예제 #1
0
        public object Clone()
        {
            EvalEvac clone = new EvalEvac();

            clone.EigenValue = this.EigenValue;
            if (this.EigenVec != null)
            {
                clone.EigenVec = (double[])this.EigenVec.Clone();
            }
            clone.size = this.size;
            return(clone);
        }
예제 #2
0
        public int CompareTo(Object rhs)  // for sorting
        {
            EvalEvac evv = (EvalEvac)rhs;

            return(evv.EigenValue.CompareTo(this.EigenValue));  // highest to lowest sorting
        }