Beispiel #1
0
        protected bool Equals(TensorDimensionsBase other)
        {
            if (other.Rank != Rank)
            {
                return(false);
            }

            if ((Rank == 1) && (m_dims == null) && (other.m_dims == null))
            {
                return(true);
            }

            return((m_dims != null) && (other.m_dims != null) && m_dims.SequenceEqual(other.m_dims));
        }
        protected bool Equals(TensorDimensionsBase other)
        {
            if (other.Rank != Rank)
                return false;

            if ((Rank == 1) && (m_dims == null) && (other.m_dims == null))
                return true;

            return (m_dims != null) && (other.m_dims != null) && m_dims.SequenceEqual(other.m_dims);
        }