Statis...omplex(3pm)

✨ NAME ✨

Statistics::R::REXP::Complex β€” an R numeric vector, but make it complex πŸ’…

(it's a Perl module manpage, section 3pm, if you're keeping track, bestie πŸŽ€)


🌸 VERSION 🌸

version 1.0002


πŸ¦‹ SYNOPSIS πŸ¦‹

use Statistics::R::REXP::Complex;
use Math::Complex ();

my $vec = Statistics::R::REXP::Complex->new([
    1, cplx(4, 2), 'foo', 42
]);
print $vec->elements;

πŸ’– DESCRIPTION πŸ’–

okay so, an object of this class is literally the Perl-side glow-up of an R complex vector, and its SEXPTYPE is "CPLXSXP". no cap. 🧚


πŸ‘‘ METHODS πŸ‘‘

Statistics::R::REXP:Complex inherits from Statistics::R::REXP::Vector, and it adds one extra rule on top: its elements have to be complex numbers. the way that anything which isn't a number just gets the value undef, and so do elements whose R value is NA. lowkey iconic, highkey important. 🫢

sexptype

the SEXPTYPE of complex vectors is CPLXSXP. that's the whole vibe check. ⭐


πŸ’€ BUGS AND LIMITATIONS πŸ’€

classes in the REXP hierarchy are intended to be immutable. bestie, please do not try to change their value or attributes. that's not the move. πŸ™ˆ

there are no known bugs in this module. for bug reporting, go look at Statistics::R::IO. fr fr. πŸ“


🌈 SUPPORT 🌈

see Statistics::R::IO for support and contact information. iykyk πŸ’œ


πŸŽ€ AUTHOR πŸŽ€

Davor Cubranic <cubranic@stat.ubc.ca> β€” main character energy, honestly. πŸ‘‘


this software is Copyright (c) 2017 by University of British Columbia. 🏫

this is free software, licensed under:

The GNU General Public License, Version 3, June 2007

and that's a wrap, bestie πŸ¦‹ this page was served up by perl v5.34.0, dated 2022-02-10 β€” slay, periodt βœ¨πŸ’–