Skip to content

Commit

Permalink
Some fixes to NumMatrix2D and flesh out most of the new test methods.…
Browse files Browse the repository at this point in the history
… Total is 108 tests run for this type, only a small handful are still TODO'd
  • Loading branch information
Whiteknight committed Jun 23, 2010
1 parent f5a1faa commit dac680b
Show file tree
Hide file tree
Showing 3 changed files with 257 additions and 38 deletions.
5 changes: 3 additions & 2 deletions src/pmc/nummatrix2d.pmc
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ elements.

VTABLE STRING * get_string_keyed(PMC * key) {
const FLOATVAL f = VTABLE_get_number_keyed(INTERP, SELF, key);
STRING * const item = Parrot_sprintf_c(INTERP, "\t%f", f);
STRING * const item = Parrot_sprintf_c(INTERP, "%f", f);
return item;
}

Expand Down Expand Up @@ -687,7 +687,8 @@ Add the integer value to every element in the matrix.
*/

MULTI void i_multiply(NumMatrix2D* value) {
call_gemm(INTERP, 1.0, SELF, value, 0.0, SELF);
PMC * const temp = VTABLE_clone(INTERP, SELF);
call_gemm(INTERP, 1.0, temp, value, 0.0, SELF);
}

MULTI void i_multiply(DEFAULT* value) {
Expand Down
Loading

0 comments on commit dac680b

Please sign in to comment.