Direct product of matrices.

From: Arthur E. Snyder <snyder_at_slac.stanford.edu>
Date: Tue, 30 Jan 2007 14:54:52 -0800 (PST)


Hi Rene et al.,

Direct product of matrices which worked with HepMatrix does seem to work for TMatrix.

That is if I do

TMatrixD A(n,1);
then set a to some falues

TMatrixD B(n,n);
B=A*A.T()

it fails. Error message if about rows and columns not matching.

This worked with HepMatrix and is useful, for example, in constructing array of derivatives that enters some fits.

Is this a bug or a feature? Or am I doing something wrong?

It not hard to write my own direct product function but it looks ugly...

-Art S.

A.E. Snyder, Group EC                        \!c*p?/
SLAC Mail Stop #95                          ((.   .))
Box 4349                                        |
Stanford, Ca, USA, 94309                      '\|/`
e-mail:snyder_at_slac.stanford.edu                 o
phone:650-926-2701                              _
http://www.slac.stanford.edu/~snyder          BaBar
FAX:650-926-2657                          Collaboration
Received on Tue Jan 30 2007 - 23:55:04 CET

This archive was generated by hypermail 2.2.0 : Fri Feb 02 2007 - 23:50:01 CET