Beispiel #1
0
        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);
        }
Beispiel #2
0
        public int CompareTo(Object obj) // for sorting
        {
            EvEvec evv = (EvEvec)obj;

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