private bool IsEqual(MatrixXD other) { if (Rows != other.Rows || Cols != other.Cols) { return(false); } return(ArrayHelpers.ArraysEqual(_values, other._values)); }
private bool IsEqual(VectorXD other) { if (Length != other.Length) { return(false); } return(ArrayHelpers.ArraysEqual(_values, other._values)); }
private bool IsEqual(SparseVectorD other) { if (Length != other.Length) { return(false); } return(ArrayHelpers.ArraysEqual(_values, other._values) && ArrayHelpers.ArraysEqual(_indices, other._indices)); }
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)); }