Matrix.Elementwise Pow Method
Definition
Namespace: Extreme.Mathematics
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
Overload List
Elementwise | Raises the element of a matrix to a constant power. |
Elementwise | Raises the elements of a matrix to a power from the corresponding elements in another matrix. |
Elementwise | Raises the elements of a matrix to an integer power from the corresponding elements in another matrix. |
Elementwise | Raises the element of a matrix to a constant power. |
Elementwise | Raises the elements of a matrix to a power from the corresponding elements in a vector broadcast along the specified dimension. |
Elementwise | Raises the elements of a matrix to a power from the corresponding elements in a vector broadcast along the specified dimension. |
Elementwise | Raises the elements of a vector broadcast along the specified dimension to a power from the corresponding elements in a matrix |
Elementwise | Raises the elements of a vector broadcast along the specified dimension to a power from the corresponding elements in a matrix |
Elementwise | Raises the elements of a broadcast vector to a power from the corresponding elements in a vector broadcast along the specified dimension. |
Elementwise | Raises the elements of a broadcast vector to a power from the corresponding elements in a vector broadcast along the specified dimension. |
ElementwisePow<T>(Matrix<T>, T)
Raises the element of a matrix to a constant power.
public static Matrix<T> ElementwisePow<T>(
Matrix<T> matrix,
T exponent
)
Parameters
- matrix Matrix<T>
- A matrix.
- exponent T
- A number.
Type Parameters
- T
Return Value
Matrix<T>A matrix whose elements are the corresponding elements of matrix raised to the power exponent.
Exceptions
Argument | matrix is null |
ElementwisePow<T>(Matrix<T>, Matrix<T>)
Raises the elements of a matrix to a power
from the corresponding elements in another matrix.
public static Matrix<T> ElementwisePow<T>(
Matrix<T> left,
Matrix<T> right
)
Parameters
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
Argument | left is null -or- right is null |
Dimension | The length of left does not equal the length of right. |
ElementwisePow<T>(Matrix<T>, Matrix<Int32>)
Raises the elements of a matrix to an integer power
from the corresponding elements in another matrix.
public static Matrix<T> ElementwisePow<T>(
Matrix<T> left,
Matrix<int> right
)
Parameters
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
Argument | left is null -or- right is null |
Dimension | The length of left does not equal the length of right. |
ElementwisePow<T>(Matrix<T>, Int32)
Raises the element of a matrix to a constant power.
public static Matrix<T> ElementwisePow<T>(
Matrix<T> matrix,
int exponent
)
Parameters
Type Parameters
- T
Return Value
Matrix<T>A matrix whose elements are the corresponding elements of matrix raised to the power exponent.
Exceptions
Argument | matrix is null |
ElementwisePow<T>(Matrix<T>, Vector<T>, Dimension)
Raises the elements of a matrix to a power
from the corresponding elements in a vector broadcast along the specified dimension.
public static Matrix<T> ElementwisePow<T>(
Matrix<T> left,
Vector<T> right,
Dimension broadcastDimension
)
Parameters
- left Matrix<T>
- A matrix.
- right Vector<T>
- 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
Argument | left is null -or- right is null |
Dimension | left and right do not have the same dimension. |
ElementwisePow<T>(Matrix<T>, Vector<Int32>, Dimension)
Raises the elements of a matrix to a power
from the corresponding elements in a vector broadcast along the specified dimension.
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
Argument | left is null -or- right is null |
Dimension | left and right do not have the same dimension. |
ElementwisePow<T>(Vector<T>, Dimension, Matrix<T>)
Raises the elements of a vector broadcast along the specified dimension
to a power from the corresponding elements in a matrix
public static Matrix<T> ElementwisePow<T>(
Vector<T> left,
Dimension broadcastDimension,
Matrix<T> right
)
Parameters
- left Vector<T>
- A vector.
- broadcastDimension Dimension
- A value that specifies whether the elements in left should be broadcast across rows or columns.
- right Matrix<T>
- A matrox.
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. |
ElementwisePow<T>(Vector<T>, Dimension, Matrix<Int32>)
Raises the elements of a vector broadcast along the specified dimension
to a power from the corresponding elements in a matrix
public static Matrix<T> ElementwisePow<T>(
Vector<T> left,
Dimension broadcastDimension,
Matrix<int> right
)
Parameters
- left Vector<T>
- A vector.
- broadcastDimension Dimension
- A value that specifies whether the elements in left should be broadcast across rows or columns.
- right Matrix<Int32>
- A matrox.
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. |
ElementwisePow<T>(Vector<T>, Dimension, Vector<T>)
Raises the elements of a broadcast vector to a power
from the corresponding elements in a vector broadcast along the specified dimension.
public static Matrix<T> ElementwisePow<T>(
Vector<T> left,
Dimension leftBroadcastDimension,
Vector<T> 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<T>
- 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
Argument | left is null -or- right is null |
Dimension | left and right do not have the same dimension. |
ElementwisePow<T>(Vector<T>, Dimension, Vector<Int32>)
Raises the elements of a broadcast vector to a power
from the corresponding elements in a vector broadcast along the specified dimension.
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
Argument | left is null -or- right is null |
Dimension | left and right do not have the same dimension. |