Matrix.Elementwise Pow Into<T>(Matrix<T>, Vector<Int 32>, Dimension, Matrix<T>) 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#
A matrix whose elements are the product of the corresponding elements of left and right.
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
public static Matrix<T> ElementwisePowInto<T>(
Matrix<T> left,
Vector<int> right,
Dimension broadcastDimension,
Matrix<T> result
)
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.
- 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 product of the corresponding elements of left and right.
Exceptions
Argument | left is null -or- right is null |
Dimension | left and right do not have the same dimension. |