Matrix.ElementwisePow<T>(Matrix<T>, Matrix<Int32>) 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> ElementwisePow<T>(
	Matrix<T> left,
	Matrix<int> right
)

Parameters

left  Matrix<T>
A matrix.
right  Matrix<Int32>
A matrix containing exponents.

Type Parameters

T

Return Value

Matrix<T>
A new matrix whose elements are equal to the elements of left raised to the power with exponent the corresponding element in right .

Exceptions

ArgumentNullExceptionleft is null

-or-

right is null

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

See Also