Matrix.ElementwisePowInto Method

Definition

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

Overload List

ElementwisePowInto<T>(Matrix<T>, T, Matrix<T>) Raises the element of a matrix to a constant power.
ElementwisePowInto<T>(Matrix<T>, Matrix<T>, Matrix<T>) Raises the elements of a matrix to a power from the corresponding elements in another matrix.
ElementwisePowInto<T>(Matrix<T>, Matrix<Int32>, Matrix<T>) Raises the elements of a matrix to an integer power from the corresponding elements in another matrix.
ElementwisePowInto<T>(Matrix<T>, Int32, Matrix<T>) Raises the element of a matrix to a constant power.
ElementwisePowInto<T>(Matrix<T>, Vector<T>, Dimension, Matrix<T>) Raises the elements of a matrix to a power from the corresponding elements in a vector broadcast along the specified dimension.
ElementwisePowInto<T>(Matrix<T>, Vector<Int32>, Dimension, Matrix<T>) Raises the elements of a matrix to a power from the corresponding elements in a vector broadcast along the specified dimension.
ElementwisePowInto<T>(Vector<T>, Dimension, Matrix<T>, Matrix<T>) Raises the elements of a vector broadcast along the specified dimension to a power from the corresponding elements in a matrix
ElementwisePowInto<T>(Vector<T>, Dimension, Matrix<Int32>, Matrix<T>) Raises the elements of a vector broadcast along the specified dimension to a power from the corresponding elements in a matrix
ElementwisePowInto<T>(Vector<T>, Dimension, Vector<T>, Matrix<T>) Raises the elements of a vector broadcast along the specified dimension to a power from the corresponding elements in another broadcast vector.
ElementwisePowInto<T>(Vector<T>, Dimension, Vector<Int32>, Matrix<T>) Raises the elements of a vector broadcast along the specified dimension to a power from the corresponding elements in another broadcast vector.

ElementwisePowInto<T>(Matrix<T>, T, Matrix<T>)

Raises the element of a matrix to a constant power.
C#
public static Matrix<T> ElementwisePowInto<T>(
	Matrix<T> matrix,
	T exponent,
	Matrix<T> result
)

Parameters

matrix  Matrix<T>
A matrix.
exponent  T
A number.
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 corresponding elements of matrix raised to the power exponent.

Exceptions

ArgumentNullExceptionmatrix is null

ElementwisePowInto<T>(Matrix<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> ElementwisePowInto<T>(
	Matrix<T> left,
	Matrix<T> right,
	Matrix<T> result
)

Parameters

left  Matrix<T>
A matrix.
right  Matrix<T>
A matrix.
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 equal to the elements of left raised to a power with exponent equal to the corresponding element of right .

Exceptions

ArgumentNullExceptionleft is null

-or-

right is null

DimensionMismatchException The length of left does not equal the length of right.

ElementwisePowInto<T>(Matrix<T>, Matrix<Int32>, Matrix<T>)

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

Parameters

left  Matrix<T>
A matrix.
right  Matrix<Int32>
A matrix.
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 equal to the elements of left raised to a power with exponent equal to the corresponding element of right .

Exceptions

ArgumentNullExceptionleft is null

-or-

right is null

DimensionMismatchException The length of left does not equal the length of right.

ElementwisePowInto<T>(Matrix<T>, Int32, Matrix<T>)

Raises the element of a matrix to a constant power.
C#
public static Matrix<T> ElementwisePowInto<T>(
	Matrix<T> matrix,
	int exponent,
	Matrix<T> result
)

Parameters

matrix  Matrix<T>
A matrix.
exponent  Int32
A number.
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 corresponding elements of matrix raised to the power exponent.

Exceptions

ArgumentNullExceptionmatrix is null

ElementwisePowInto<T>(Matrix<T>, Vector<T>, Dimension, Matrix<T>)

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> ElementwisePowInto<T>(
	Matrix<T> left,
	Vector<T> right,
	Dimension broadcastDimension,
	Matrix<T> result
)

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

ArgumentNullExceptionleft is null

-or-

right is null

DimensionMismatchExceptionleft and right do not have the same dimension.

ElementwisePowInto<T>(Matrix<T>, Vector<Int32>, Dimension, Matrix<T>)

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

ArgumentNullExceptionleft is null

-or-

right is null

DimensionMismatchExceptionleft and right do not have the same dimension.

ElementwisePowInto<T>(Vector<T>, Dimension, Matrix<T>, 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> ElementwisePowInto<T>(
	Vector<T> left,
	Dimension broadcastDimension,
	Matrix<T> right,
	Matrix<T> result
)

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

ArgumentNullExceptionleft is null

-or-

right is null

DimensionMismatchExceptionleft and right do not have the same dimension.

ElementwisePowInto<T>(Vector<T>, Dimension, Matrix<Int32>, 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> ElementwisePowInto<T>(
	Vector<T> left,
	Dimension broadcastDimension,
	Matrix<int> right,
	Matrix<T> result
)

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

ArgumentNullExceptionleft is null

-or-

right is null

DimensionMismatchExceptionleft and right do not have the same dimension.

ElementwisePowInto<T>(Vector<T>, Dimension, Vector<T>, Matrix<T>)

Raises the elements of a vector broadcast along the specified dimension to a power from the corresponding elements in another broadcast vector.
C#
public static Matrix<T> ElementwisePowInto<T>(
	Vector<T> left,
	Dimension leftBroadcastDimension,
	Vector<T> right,
	Matrix<T> result
)

Parameters

left  Vector<T>
A vector.
leftBroadcastDimension  Dimension
A value that specifies whether the elements in left should be broadcast across rows or columns.
right  Vector<T>
A matrox.
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

ArgumentNullExceptionleft is null

-or-

right is null

DimensionMismatchExceptionleft and right do not have the same dimension.

ElementwisePowInto<T>(Vector<T>, Dimension, Vector<Int32>, Matrix<T>)

Raises the elements of a vector broadcast along the specified dimension to a power from the corresponding elements in another broadcast vector.
C#
public static Matrix<T> ElementwisePowInto<T>(
	Vector<T> left,
	Dimension leftBroadcastDimension,
	Vector<int> right,
	Matrix<T> result
)

Parameters

left  Vector<T>
A vector.
leftBroadcastDimension  Dimension
A value that specifies whether the elements in left should be broadcast across rows or columns.
right  Vector<Int32>
A matrox.
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

ArgumentNullExceptionleft is null

-or-

right is null

DimensionMismatchExceptionleft and right do not have the same dimension.

See Also