Tensor<T>.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 an integer power. in-place. |
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. |
PowInPlace(Int32, Tensor<Boolean>)
Raises the elements of a tensor to an integer power. in-place.
public Tensor<T> PowInPlace(
int other,
Tensor<bool>? mask = null
)
Parameters
- other 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.
Return Value
Tensor<T>This tensor with each element replaced with the power of the element and other.
PowInPlace(T, Tensor<Boolean>)
Raises the elements of a tensor to a power. in-place.
public Tensor<T> PowInPlace(
T other,
Tensor<bool>? mask = null
)
Parameters
- other 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.
Return Value
Tensor<T>This tensor with each element replaced with the power of the element and other.
PowInPlace(Tensor<T>, Tensor<Boolean>)
Raises the elements of a tensor to a power in place.
public Tensor<T> PowInPlace(
Tensor<T> other,
Tensor<bool>? mask = null
)
Parameters
- other Tensor<T>
- A tensor whose elements serve as the second 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.
Return Value
Tensor<T>This tensor with the elements replaced with the power of the element and the corresponding element of other.
Exceptions
Argument | other is null. |
Dimension | The dimensions of other are not compatible with the dimensions of this tensor. |
PowInPlace(Tensor<Int32>, Tensor<Boolean>)
Raises the elements of a tensor to an integer power in place.
public Tensor<T> PowInPlace(
Tensor<int> other,
Tensor<bool>? mask = null
)
Parameters
- other Tensor<Int32>
- A tensor whose elements serve as the second 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.
Return Value
Tensor<T>This tensor with the elements replaced with the power of the element and the corresponding element of other.
Exceptions
Argument | other is null. |
Dimension | The dimensions of other are not compatible with the dimensions of this tensor. |