Raises the element of a matrix to a constant power.
Namespace:
Extreme.Mathematics
Assembly:
Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.1
public static Matrix<T> ElementwisePow<T>(
Matrix<T> matrix,
int exponent
)
Public Shared Function ElementwisePow(Of T) (
matrix As Matrix(Of T),
exponent As Integer
) As Matrix(Of T)
public:
generic<typename T>
static Matrix<T>^ ElementwisePow(
Matrix<T>^ matrix,
int exponent
)
static member ElementwisePow :
matrix : Matrix<'T> *
exponent : int -> Matrix<'T>
Parameters
- matrix
- Type: Extreme.MathematicsMatrixT
A matrix. - exponent
- Type: SystemInt32
A number.
Type Parameters
- T
Return Value
Type:
MatrixTA matrix whose elements are
the corresponding elements of
matrix
raised to the power
exponent.
Reference