Matrix.ElementwisePowInto Method

Definition

Namespace: Numerics.NET
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3

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

ArgumentNullException

matrix 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

ArgumentNullException

left 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

ArgumentNullException

left 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

ArgumentNullException

matrix 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

ArgumentNullException

left is null.

-or-

right is null.

DimensionMismatchException

left 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

ArgumentNullException

left is null.

-or-

right is null.

DimensionMismatchException

left 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

ArgumentNullException

left is null.

-or-

right is null.

DimensionMismatchException

left 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

ArgumentNullException

left is null.

-or-

right is null.

DimensionMismatchException

left 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

ArgumentNullException

left is null.

-or-

right is null.

DimensionMismatchException

left 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

ArgumentNullException

left is null.

-or-

right is null.

DimensionMismatchException

left and right do not have the same dimension.

See Also