Exemple #1
0
        private bool IsEqual(MatrixXD other)
        {
            if (Rows != other.Rows || Cols != other.Cols)
            {
                return(false);
            }

            return(ArrayHelpers.ArraysEqual(_values, other._values));
        }
Exemple #2
0
        private bool IsEqual(VectorXD other)
        {
            if (Length != other.Length)
            {
                return(false);
            }

            return(ArrayHelpers.ArraysEqual(_values, other._values));
        }
Exemple #3
0
        private bool IsEqual(SparseVectorD other)
        {
            if (Length != other.Length)
            {
                return(false);
            }

            return(ArrayHelpers.ArraysEqual(_values, other._values) &&
                   ArrayHelpers.ArraysEqual(_indices, other._indices));
        }
Exemple #4
0
        private bool IsEqual(SparseMatrixD other)
        {
            if (Rows != other.Rows || Cols != other.Cols)
            {
                return(false);
            }

            return(ArrayHelpers.ArraysEqual(_values, other._values) &&
                   ArrayHelpers.ArraysEqual(_innerIndices, other._innerIndices) &&
                   ArrayHelpers.ArraysEqual(_outerStarts, other._outerStarts));
        }