friendly / matlib

Matrix Functions for Teaching and Learning Linear Algebra and Multivariate Statistics
http://friendly.github.io/matlib/
65 stars 16 forks source link

J() function #7

Closed friendly closed 8 years ago

friendly commented 8 years ago

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.