Jump to content

Identity matrix: Difference between revisions

Add a "Try it" link
m (Add a "Works in" for example code)
(Add a "Try it" link)
Line 2:
Given a positive integer argument ''n'', '''identity matrix''' returns a ''n''×''n'' matrix with ones in the main diagonal and zeros elsewhere.
 
[https://ngn.bitbucket.io/k#eJyzNeWyNeSyNQAABlwBYg== Try it!]
<syntaxhighlight lang=text>
=5
3

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.