GSoC/GCI Archive
Google Code-in 2010 Parrot Foundation and The Perl Foundation

set_string_keyed in NumMatrix2D

completed by: Matt Rajca

mentors: whiteknight

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 */

and

/* 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:

  1. Create a fork of Whiteknight/parrot-linear-algebra on Github
  2. Add the necessary VTABLEs to src/pmc/nummatrix2d.pmc
  3. Add tests to t/pmc/nummatrix2d.pmc to exercise the new feature
  4. Open a pull request on Github to have your changes merged in

Links:parrot-linear-algebra, nummatrix2d.pmc,