Matrix transposition: Difference between revisions
Content added Content deleted
Line 1,360: | Line 1,360: | ||
return call_user_func_array('array_map', $m); |
return call_user_func_array('array_map', $m); |
||
}</lang> |
}</lang> |
||
Caveat: this will not work correctly for a row matrix (matrix with only 1 row); it should return a column matrix (matrix where each row has length 1), but simply returns a 1-dimensional array |
Caveat: this will not work correctly for a row matrix (matrix with only 1 row); it should return a column matrix (matrix where each row has length 1), but simply returns the row itself, which is a 1-dimensional array, not a matrix. |
||
=={{header|PicoLisp}}== |
=={{header|PicoLisp}}== |