Am 15.04.2020 20:54 schrieb Mike Powell:
Thomas,

I J there is not really anything for a column vector. If an object,
like your rvec, has a single dimension it’s a vector. If it has two
dimensions, as does cvec, it’s a matrix. That’s different from most
conventional mathematical notation.

When you do the summation with +/ you lose a dimension in the result.
So a vector sums to a scalar and a matrix (with any number of columns)
sums to a vector. The dimension lost is the last.

Hello Mike,

thank you very much for your explanation. I think, I really brought my intuition from the domain of conventional mathematical notation into the J context. I'll try to get rid of the notion of a "column vector" when programming in J.

Regards,

Thomas

----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to