Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
put methods together and add some stub POD
  • Loading branch information
Whiteknight committed Oct 29, 2009
1 parent 5d04573 commit 2a60816
Showing 1 changed file with 21 additions and 5 deletions.
26 changes: 21 additions & 5 deletions src/pmc/nummatrix2d.pmc
Expand Up @@ -211,11 +211,6 @@ pmclass NumMatrix2D dynpmc auto_attrs {

return pstr;
}

METHOD resize(INTVAL new_x, INTVAL new_y) {
resize_matrix(INTERP, SELF, new_x - 1, new_y - 1);
}


MULTI PMC *add(NumMatrix2D *value, PMC *dest) {
int i = 0;
Expand Down Expand Up @@ -332,6 +327,20 @@ pmclass NumMatrix2D dynpmc auto_attrs {
return c;
}

/*

=back

=head1 METHODS

=over 4

*/

METHOD resize(INTVAL new_x, INTVAL new_y) {
resize_matrix(INTERP, SELF, new_x - 1, new_y - 1);
}

METHOD fill(FLOATVAL value) {
Parrot_NumMatrix2D_attributes * const attrs
= (Parrot_NumMatrix2D_attributes *) PARROT_NUMMATRIX2D(SELF);
Expand Down Expand Up @@ -416,5 +425,12 @@ pmclass NumMatrix2D dynpmc auto_attrs {
attrs->storage = new_s;
free(old_s);
}
/*

=back

=end

*/
}

0 comments on commit 2a60816

Please sign in to comment.