Jump to content

Matrix transposition: Difference between revisions

→‎{{header|PHP}}: non-destructive
(→‎TI-83 BASIC: add TI-89, alphabetize)
(→‎{{header|PHP}}: non-destructive)
Line 583:
=={{header|PHP}}==
<lang php>function transpose($m) {
// array_map(NULL, m[0], m[1], ..)
array_unshift($m, NULL);
return call_user_func_array(array_map, $m); // array_maparray_merge(array(NULL), $m[0], m[1], ..));
}</lang>
 
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.