Skip to content
Prev 79841 / 398502 Next

inverse matrix

Sundar Dorai-Raj <sundar.dorai-raj at pdf.com> writes:
I think the issue is this:
[1] -0.7251033 -0.3903765  0.3212044 -1.2969697
[,1]
[1,] -0.7251033
[2,] -0.3903765
[3,]  0.3212044
[4,] -1.2969697

So b gets promoted to a column matrix in one case but not the other. 

This is slightly odd, but it's been that way "forever" and in S(-PLUS)
too, so I think it is unchangeable (it's the sort of thing that
there's a 99% chance that some people have actually been relying on). 

If you want a vector result from a matrix multiply, there's always
[1] -0.7251033 -0.3903765  0.3212044 -1.2969697