Transposes and Diagonals
Javascript, score 20 14, (258 176 non-newline characters)



///mmm()mu[=+r
///=.av=a,pr"=
///&gt; p,&gt;px=[ [
m=&gt;//(yv()xp"]
m. ////.(=+]+)
map((////&gt;y?u&amp;
v,y)=&gt;v//r]r:&amp;
.map((u,x//[ur
)=&gt;r[p=m.//p)
length-1-//],
x+y]=r[p]////
?r[p]+" "+u//
:u),r=[])&amp;&amp;r


and

///mmmv.)lx?:
///=.a,m=e+ru
///&gt; pya&gt;ny[)
m=&gt;//()prg]p,
m. //(=([t=]r
map(//&gt;(phr+=
(v,y//vu=-["[
)=&gt;v.//,m1p ]
map((//x.-]")
u,x)=&gt;r////+&amp;
[p=x+y]////u&amp;
=r[p]?r[p]//r
+" "+u:u),//
r=[])&amp;&amp;r


Example code snippet:



f=

///mmm()mu[=+r
///=.av=a,pr"=
///&gt; p,&gt;px=[ [
m=&gt;//(yv()xp"]
m. ////.(=+]+)
map((////&gt;y?u&amp;
v,y)=&gt;v//r]r:&amp;
.map((u,x//[ur
)=&gt;r[p=m.//p)
length-1-//],
x+y]=r[p]////
?r[p]+" "+u//
:u),r=[])&amp;&amp;r

console.log(f([
[1, 2, 3],
[4, 5, 6],
[7, 8, 9]
]))




and



f=

///mmmv.)lx?:
///=.a,m=e+ru
///&gt; pya&gt;ny[)
m=&gt;//()prg]p,
m. //(=([t=]r
map(//&gt;(phr+=
(v,y//vu=-["[
)=&gt;v.//,m1p ]
map((//x.-]")
u,x)=&gt;r////+&amp;
[p=x+y]////u&amp;
=r[p]?r[p]//r
+" "+u:u),//
r=[])&amp;&amp;r

console.log(f([
[1, 2, 3],
[4, 5, 6],
[7, 8, 9]
]))