Table of Contents

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 = 1

Extract amplitude and move it to real part. Real part is set to zero.

[EnumDescription("Extract Imaginary Part", false)] ExtractImaginary = 2

Extract the imaginary part by setting real part to zero.

[EnumDescription("Extract Phase", false)] ExtractPhase = 0

Sets the amplitude to one.

[EnumDescription("Extract Real Part", false)] ExtractReal = 3

Extract real part by setting imaginary part to zero.

[EnumDescription("Extract Squared Amplitude", false)] ExtractSquaredAmplitude = 4

Extract squared amplitude and shift it to real part.

NoChangings = 13

Do nothing.

[EnumDescription("Move Imaginary to Real Part", false)] ShiftImaginaryToReal = 7

Shift imaginary part to real part. Imaginary part is set to zero.

[EnumDescription("Move Phase to Real Part", false)] ShiftPhaseToReal = 9

Shift phase to real part. Imaginary part is set to zero.

[EnumDescription("Move Real to Imaginary Part", false)] ShiftRealToImaginary = 8

Shift real part to imaginary part. Real part is set to zero.

[EnumDescription("Move Real Part to Phase", false)] ShiftRealToPhase = 6

Shift real part to phase part. Amplitude is set to one.

[EnumDescription("Swap Real and Imaginary Part", false)] SwapRealImaginary = 10

Swap real and imaginary part.