I added the function J() to produce a unit (or constant) vector, matrix, or array. The main use would be in illustrating summation by multiplication by a unit vector on the left or right.
I'm not sure I have this right for the 1D case, and whether or not dimnames= is useful here.
I added the function
J()
to produce a unit (or constant) vector, matrix, or array. The main use would be in illustrating summation by multiplication by a unit vector on the left or right.I'm not sure I have this right for the 1D case, and whether or not
dimnames=
is useful here.