Skip to main content

Timeline for Print a Block-Diagonal Matrix

Current License: CC BY-SA 3.0

6 events
when toggle format what by license comment
Feb 13, 2015 at 20:25 history edited Jakube CC BY-SA 3.0
Code length is actually 63 instead of 64.
Feb 13, 2015 at 16:24 history edited Miff CC BY-SA 3.0
Improved answer
Feb 12, 2015 at 19:24 comment added Vlo Great solution. Never thought about using -/+ to coerce logical. Save a few bytes function(x)write(+outer(i<-rep(1:length(x),x),i,"=="),1,sum(x)) 63
Feb 11, 2015 at 18:03 comment added MickyT Very nice solution
Feb 11, 2015 at 10:56 review First posts
Feb 11, 2015 at 11:16
Feb 11, 2015 at 10:52 history answered Miff CC BY-SA 3.0