octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #53675] Warning/documentation of mtimes with n


From: Rik
Subject: [Octave-bug-tracker] [bug #53675] Warning/documentation of mtimes with non-matrix arguments
Date: Thu, 19 Apr 2018 10:56:39 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:55.0) Gecko/20100101 Firefox/55.0

Follow-up Comment #9, bug #53675 (project octave):

I tried adding a warning message for double arrays multiplied by double arrays
only.  The patch is attached as m-m.diff.  It seems to work, but as I
understand it, the full solution would require modifying every file in
libinterp/operators that involves array-by-array operators.  That is a lot of
files because there seems to be one file for each two-way combination of
arrays that can be operated on.  For example, there is float array-by-double
array, complex double array-by-permutation matrix,
diagonal-matrix-by-double-matrix, etc., etc.  That is a lot of files, unless
there is a easier way to do this.

Octave is already using a bunch of macros in these files.  Maybe clever use of
templates could help?  Or maybe I have to buckle down and write a Perl script
to do all the modification.

(file #43974)
    _______________________________________________________

Additional Item Attachment:

File name: m-m.diff                       Size:1 KB


    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?53675>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]