set_string_keyed in NumMatrix2D
completed by: Matt Rajca
Task Description: Parrot-Linear-Algebra is a linear algebra package for the Parrot virtual machine. It provides a number of matrix types for use by Parrot programs. The NumMatrix2D type is a basic numerical matrix type that holds floating-point numbers.
NumMatrix2D needs a set_string_keyed VTABLE. In src/pmc/nummatrix2d.pmc there are the TODO notes:
/* TODO: set_string_keyed */
/* TODO: set_string_keyed_int */
Each of these operations should take an input Parrot STRING type, parse it into a floating-point number, and store that number in the appropriate place in the matrix.
Steps to Complete:
- Create a fork of Whiteknight/parrot-linear-algebra on Github
- Add the necessary VTABLEs to src/pmc/nummatrix2d.pmc
- Add tests to t/pmc/nummatrix2d.pmc to exercise the new feature
- Open a pull request on Github to have your changes merged in