Matrix.ElementwisePowInto<T>(Matrix<T>, Matrix<Int32>, Matrix<T>) Method

Raises the elements of a matrix to an integer power from the corresponding elements in another matrix.

Definition

Namespace: Extreme.Mathematics
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
C#
public static Matrix<T> ElementwisePowInto<T>(
	Matrix<T> left,
	Matrix<int> right,
	Matrix<T> result
)

Parameters

left  Matrix<T>
A matrix.
right  Matrix<Int32>
A matrix.
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 equal to the elements of left raised to a power with exponent equal to the corresponding element of right .

Exceptions

ArgumentNullExceptionleft is null

-or-

right is null

DimensionMismatchException The length of left does not equal the length of right.

See Also