コード例 #1
0
        /// <summary>
        /// Scalar multiplication.
        /// </summary>
        public static Matrix operator *(Matrix lhs, DoubleComponent rhs)
        {
            if (lhs == null)
            {
                throw new ArgumentNullException("lhs");
            }

            return(MatrixProcessor.ScalarMultiply(lhs, rhs));
        }
コード例 #2
0
 /// <summary>
 /// Scalar multiplication.
 /// </summary>
 /// <param name="value">Scalar to multiply.</param>
 /// <returns>For matrix A, (value)A.</returns>
 public Matrix Multiply(DoubleComponent value)
 {
     return(MatrixProcessor.ScalarMultiply(this, value));
 }