Matrix.ElementwisePowInto<T>(Matrix<T>, Int32, Matrix<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> ElementwisePowInto<T>(
	Matrix<T> matrix,
	int exponent,
	Matrix<T> result
)

Parameters

matrix  Matrix<T>
A matrix.
exponent  Int32
A number.
result  Matrix<T>
The matrix that is to hold the result. May be null.

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