Name

SPVM::Complex_2f - float Complex Type

Usage

use Complex_2f;

my $z : Complex_2f;

# Set
$z->{re} = 1.5f;
$z->{im} = 2.5f;

# Get
my $re = $z->{re};
my $im = $z->{im};

Description

Complex_2f is a multi-numeric type to represent a float complex number.

Fields

re

has re : float;

A real number.

im

has im : float;

A imaginary number.