Problem you'd like to fix
It's a bit tedious to generate a constant matrix. We could provide a function that does just that.
Describe the solution you'd like
The original person that asked for this said that kmat(3,4) could produce a 3 by 4 matrix filled with 1's.
Additional context
Originally seen on Reddit