Identity matrix: Difference between revisions

Content added Content deleted
m (→‎{{header|Factor}}: update for new matrix vocabulary)
Line 1,146: Line 1,146:


=={{header|Factor}}==
=={{header|Factor}}==
{{works with|Factor|0.99 2020-07-03}}
<lang factor>USE: math.matrices
<lang factor>USING: math.matrices prettyprint ;
IN: scratchpad 6 identity-matrix .

6 <identity-matrix> .</lang>
{{out}}
<pre>
{
{
{ 1 0 0 0 0 0 }
{ 1 0 0 0 0 0 }
Line 1,155: Line 1,159:
{ 0 0 0 0 1 0 }
{ 0 0 0 0 1 0 }
{ 0 0 0 0 0 1 }
{ 0 0 0 0 0 1 }
}</lang>
}</pre>


=={{header|FBSL}}==
=={{header|FBSL}}==