Tensor Back End.Pow In Place Method
Definition
Namespace: Numerics.NET.Tensors
Assembly: Numerics.NET.Tensors (in Numerics.NET.Tensors.dll) Version: 9.0.3
Assembly: Numerics.NET.Tensors (in Numerics.NET.Tensors.dll) Version: 9.0.3
Overload List
Pow | Raises the elements of a tensor to a power. in-place. |
Pow | Raises the elements of a tensor to a power in place. |
Pow | Raises the elements of a tensor to an integer power in place. |
Pow | Raises the elements of a tensor to an integer power. in-place. |
PowInPlace<T>(Tensor<T>, T, Tensor<Boolean>)
Raises the elements of a tensor to a power. in-place.
public virtual Tensor<T> PowInPlace<T>(
Tensor<T> left,
T right,
Tensor<bool>? mask = null
)
Parameters
- left Tensor<T>
- A tensor that serves as the left operand.
- right T
- A scalar that serves as the right operand.
- mask Tensor<Boolean> (Optional)
- Optional. A boolean tensor that specifies whether the operation should be performed at the location. If omitted, the operation is performed everywhere.
Type Parameters
- T
Return Value
Tensor<T>This tensor with each element replaced with the power of the element and right.
PowInPlace<T>(Tensor<T>, Tensor<T>, Tensor<Boolean>)
Raises the elements of a tensor to a power in place.
public virtual Tensor<T> PowInPlace<T>(
Tensor<T> left,
Tensor<T> right,
Tensor<bool>? mask = null
)
Parameters
- left Tensor<T>
- A tensor that serves as the left operand..
- right Tensor<T>
- A tensor that serves as the right operand..
- mask Tensor<Boolean> (Optional)
- Optional. A boolean tensor that specifies whether the operation should be performed at the location. If omitted, the operation is performed everywhere.
Type Parameters
- T
- The type of the elements of the tensors.
Return Value
Tensor<T>This tensor with the elements replaced with the power of the element and the corresponding element of right.
Exceptions
Argument | left is null. -or- right is null. |
Dimension | The dimensions of left and right are not compatible. |
PowInPlace<T>(Tensor<T>, Tensor<Int32>, Tensor<Boolean>)
Raises the elements of a tensor to an integer power in place.
public virtual Tensor<T> PowInPlace<T>(
Tensor<T> left,
Tensor<int> right,
Tensor<bool>? mask = null
)
Parameters
- left Tensor<T>
- A tensor that serves as the left operand..
- right Tensor<Int32>
- A tensor that serves as the right operand..
- mask Tensor<Boolean> (Optional)
- Optional. A boolean tensor that specifies whether the operation should be performed at the location. If omitted, the operation is performed everywhere.
Type Parameters
- T
- The type of the elements of the tensors.
Return Value
Tensor<T>This tensor with the elements replaced with the power of the element and the corresponding element of right.
Exceptions
Argument | left is null. -or- right is null. |
Dimension | The dimensions of left and right are not compatible. |
PowInPlace<T>(Tensor<T>, Int32, Tensor<Boolean>)
Raises the elements of a tensor to an integer power. in-place.
public virtual Tensor<T> PowInPlace<T>(
Tensor<T> left,
int right,
Tensor<bool>? mask = null
)
Parameters
- left Tensor<T>
- A tensor that serves as the left operand.
- right Int32
- A scalar that serves as the right operand.
- mask Tensor<Boolean> (Optional)
- Optional. A boolean tensor that specifies whether the operation should be performed at the location. If omitted, the operation is performed everywhere.
Type Parameters
- T
Return Value
Tensor<T>This tensor with each element replaced with the power of the element and right.