Matrix.ElementwisePow<T>(Matrix<T>, Vector<Int32>, Dimension) Method

Raises the elements of a matrix to a power from the corresponding elements in a vector broadcast along the specified dimension.

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,
	Vector<int> right,
	Dimension broadcastDimension
)

Parameters

left  Matrix<T>
A matrix.
right  Vector<Int32>
A vector.
broadcastDimension  Dimension
A value that specifies whether the elements in right should be broadcast across rows or columns.

Type Parameters

T

Return Value

Matrix<T>
A matrix whose elements are the product of the corresponding elements of left and right.

Exceptions

ArgumentNullExceptionleft is null

-or-

right is null

DimensionMismatchExceptionleft and right do not have the same dimension.

See Also