Matrix.ElementwisePow Method

Definition

Namespace: Extreme.Mathematics
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23

Overload List

ElementwisePow<T>(Matrix<T>, T) Raises the element of a matrix to a constant power.
ElementwisePow<T>(Matrix<T>, Matrix<T>) Raises the elements of a matrix to a power from the corresponding elements in another matrix.
ElementwisePow<T>(Matrix<T>, Matrix<Int32>) Raises the elements of a matrix to an integer power from the corresponding elements in another matrix.
ElementwisePow<T>(Matrix<T>, Int32) Raises the element of a matrix to a constant power.
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.
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.
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
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
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.
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.

ElementwisePow<T>(Matrix<T>, T)

Raises the element of a matrix to a constant power.
C#
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

ArgumentNullExceptionmatrix is null

ElementwisePow<T>(Matrix<T>, Matrix<T>)

Raises the elements of a matrix to a power from the corresponding elements in another matrix.
C#
public static Matrix<T> ElementwisePow<T>(
	Matrix<T> left,
	Matrix<T> right
)

Parameters

left  Matrix<T>
A matrix.
right  Matrix<T>
A matrix containing exponents.

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

ArgumentNullExceptionleft is null

-or-

right is null

DimensionMismatchException 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.
C#
public static Matrix<T> ElementwisePow<T>(
	Matrix<T> left,
	Matrix<int> right
)

Parameters

left  Matrix<T>
A matrix.
right  Matrix<Int32>
A matrix containing exponents.

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

ArgumentNullExceptionleft is null

-or-

right is null

DimensionMismatchException 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.
C#
public static Matrix<T> ElementwisePow<T>(
	Matrix<T> matrix,
	int exponent
)

Parameters

matrix  Matrix<T>
A matrix.
exponent  Int32
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

ArgumentNullExceptionmatrix 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.
C#
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

ArgumentNullExceptionleft is null

-or-

right is null

DimensionMismatchExceptionleft 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.
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.

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
C#
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

ArgumentNullExceptionleft is null

-or-

right is null

DimensionMismatchExceptionleft 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
C#
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

ArgumentNullExceptionleft is null

-or-

right is null

DimensionMismatchExceptionleft 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.
C#
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

ArgumentNullExceptionleft is null

-or-

right is null

DimensionMismatchExceptionleft 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.
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