Tensor.ImaginaryPart<T> Method

Returns a tensor with the imaginary part of the elements of a tensor of complex numbers.

Definition

Namespace: Numerics.NET.Tensors
Assembly: Numerics.NET.Tensors (in Numerics.NET.Tensors.dll) Version: 9.0.0
C#
public static Tensor<T> ImaginaryPart<T>(
	this Tensor<Complex<T>> tensor
)

Parameters

tensor  Tensor<Complex<T>>

Type Parameters

T
The type of the elements of the tensor.

Return Value

Tensor<T>
A view of tensor whose elements are the imaginary parts of the corresponding elements in tensor.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Tensor<Complex<T>>. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

See Also