[Gretl-devel] Re: Kronecker product and power
Allin Cottrell
cottrell at wfu.edu
Thu Feb 1 15:02:57 EST 2007
On Thu, 1 Feb 2007, Sven Schreiber wrote:
> One question that comes to my mind when the datatypes matter
> like in this case: Do things like inner vector products actually
> return scalars or 1x1-matrices?
The experimental method (!)
nulldata 2
matrix u = {1,2,3}
matrix v = {1,2,2}
matrix x = u*v'
scalar y = u*v'
z = u*v'
If you run this you'll see that while both "matrix x = u*v'" and
"scalar y = u*v'" are OK, when you don't specify a type the
result appears as a scalar.
Allin.
More information about the Gretl-devel
mailing list