What am I missing with the FixedFloatArray?
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sub mean2(*@args) { | |
# This works, but is Resizable: | |
#my $vec := pir::new("ResizableFloatArray"); | |
# This works, but... argh. | |
my $vec := Q:PIR { %r = new ["FixedFloatArray"], 2 }; | |
#my $vec := pir::new("FixedFloatArray", 2); | |
# Generates: "init_pmc() not implemented in class 'FixedFloatArray'" | |
$vec[0] := 1.234; | |
$vec[1] := 5.678; | |
return $vec[0] + $vec[1]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment