The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

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.

Copyright & License

Copyright (c) 2023 Yuki Kimoto

MIT License