Enum ComplexPart
- Namespace
- VirtualLabAPI.Core.Numerics
- Assembly
- VirtualLabAPI.dll
This enum lists actions a function can perform on the ComplexPart of a Complex number like extracting, shifting and swapping.
public enum ComplexPart
Fields
[EnumDescription("Extract Amplitude", false)] ExtractAmplitude = 1Extract amplitude and move it to real part. Real part is set to zero.
[EnumDescription("Extract Imaginary Part", false)] ExtractImaginary = 2Extract the imaginary part by setting real part to zero.
[EnumDescription("Extract Phase", false)] ExtractPhase = 0Sets the amplitude to one.
[EnumDescription("Extract Real Part", false)] ExtractReal = 3Extract real part by setting imaginary part to zero.
[EnumDescription("Extract Squared Amplitude", false)] ExtractSquaredAmplitude = 4Extract squared amplitude and shift it to real part.
NoChangings = 13Do nothing.
[EnumDescription("Move Imaginary to Real Part", false)] ShiftImaginaryToReal = 7Shift imaginary part to real part. Imaginary part is set to zero.
[EnumDescription("Move Phase to Real Part", false)] ShiftPhaseToReal = 9Shift phase to real part. Imaginary part is set to zero.
[EnumDescription("Move Real to Imaginary Part", false)] ShiftRealToImaginary = 8Shift real part to imaginary part. Real part is set to zero.
[EnumDescription("Move Real Part to Phase", false)] ShiftRealToPhase = 6Shift real part to phase part. Amplitude is set to one.
[EnumDescription("Swap Real and Imaginary Part", false)] SwapRealImaginary = 10Swap real and imaginary part.