示例#1
0
        /// <summary>
        /// Negates the values of a matrix.
        /// </summary>
        /// <param name="value">The matrix to negate.</param>
        /// <returns>A negated matrix instance.</returns>
        public static Matrix operator -(Matrix value)
        {
            if (value == null)
            {
                throw new ArgumentNullException("value");
            }

            return(MatrixProcessor.Negate(value));
        }
示例#2
0
 /// <summary>
 /// Returns a copy of the matrix with all the elements negated.
 /// </summary>
 /// <returns>For matrix A, -A.</returns>
 public Matrix Negative()
 {
     return(MatrixProcessor.Negate(this));
 }