Exemplo n.º 1
0
        private void Collect()
        {
            Debug.Assert(this.Coeff.Length == this.Exponents.GetLength(0));
            for (int i = 0; i < this.Coeff.Length; i++)
            {
                int[] Exp_i = this.Exponents.GetRow(i);
                Debug.Assert(Exp_i.Length == this.SpatialDimension);

                for (int j = i + 1; j < this.Coeff.Length; j++)
                {
                    int[] Exp_j = this.Exponents.GetRow(j);
                    Debug.Assert(Exp_j.Length == this.SpatialDimension);

                    if (ArrayTools.Equals(Exp_i, Exp_j))
                    {
                        //Console.WriteLine("gtcha");
                        throw new NotImplementedException("todo");
                    }
                    else
                    {
                        //
                    }
                }
            }
        }
Exemplo n.º 2
0
Arquivo: Misc.cs Projeto: xyuan/BoSSS
        /// <summary>
        /// Checks this object for equality to the given transformation based
        /// on <see cref="Affine"/> and <see cref="Matrix"/>.
        /// </summary>
        /// <param name="other">
        /// The object to be compared with.
        /// </param>
        /// <returns>
        /// True, if <see cref="Affine"/> and <see cref="Matrix"/> of the given
        /// transformation are equal to the entities in this object. False,
        /// otherwise.
        /// </returns>
        public bool Equals(AffineTrafo other)
        {
            if (ArrayTools.Equals(Affine, other.Affine) && Matrix.Equals(other.Matrix))
            {
                return(true);
            }

            return(false);
        }