Re: [vhdl-200x] Please Review Matrix Math Package

From: <tgingold@free.fr>
Date: Thu Jun 26 2014 - 19:09:10 PDT
Hello,

I am slightly confused by the representation.  In the ug:

As a concession to C, all matrices are assumed to be in column, row format, and starting at index “0”. Thus for the matrix:
Z := ((1.0, 2.0, 3.0),
      (4.0, 5.0, 6.0),
      (7.0, 8.0, 9.0));
Z (0,2) = 7.0


I suppose we all agree that Z should be:
[ 1 2 3
  4 5 6
  7 8 9 ]

So the first dimension is the number of lines and the second dimension is the number of columns.
This is natural both from a point of view of the VHDL language and from classical math style.

But in that case and following the above excerpt, Z (0, 2) is 3.0 !

BTW, I am not sure that starting at index "0" is the best choice.  This is
neither the matlab conversion (which is heavily used) nor the math choice.

Regards,
Tristan.

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
Received on Thu Jun 26 19:09:30 2014

This archive was generated by hypermail 2.1.8 : Thu Jun 26 2014 - 19:09:57 PDT