Matrix.ElementwisePow<T>(Matrix<T>, T) Method

Raises the element of a matrix to a constant power.

Definition

Namespace: Extreme.Mathematics
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
C#
public static Matrix<T> ElementwisePow<T>(
	Matrix<T> matrix,
	T exponent
)

Parameters

matrix  Matrix<T>
A matrix.
exponent  T
A number.

Type Parameters

T

Return Value

Matrix<T>
A matrix whose elements are the corresponding elements of matrix raised to the power exponent.

Exceptions

ArgumentNullExceptionmatrix is null

See Also