First time here? Check out the FAQ!
answered 2016-11-29 22:47:13 +0100
This is one way.
sage: matrix(ZZ, 4, 4, lambda i, j: 10) [10 10 10 10] [10 10 10 10] [10 10 10 10] [10 10 10 10]