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

Raises the elements of a broadcast vector 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>(
	Vector<T> left,
	Dimension leftBroadcastDimension,
	Vector<int> right
)

Parameters

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

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