[Top][All Lists]

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

[Octave-patch-tracker] [patch #10288] Implementation of Matlab function

From: Kasper H. Filtenborg
Subject: [Octave-patch-tracker] [patch #10288] Implementation of Matlab function tensorprod
Date: Sat, 22 Oct 2022 20:30:13 -0400 (EDT)

Follow-up Comment #3, patch #10288 (project octave):

Thank you for your replies. It feels like that I have come to the right

Reading your replies clears up a lot. Previously, I had never seen the new
argument syntax used in Matlab nor Octave and I assumed that the
property-value pair method would not work. Since I could find no other
implementation and I sought to make the function Matlab compatible, I looked
for various options and came up with the idea to use the inputname function
with the "ids_only" option set to false. I now see that the Matlab tensorprod
function in fact is compatible with the property-value pair (e.g.
tensorprod(..., "NumDimensionsA", 4)) even though, it is not explicitly stated
in the Matlab help.

I have changed the function to accept the property "NumDimensionsA" (together
with a value) and discarded the other implementation. While at it, I also made
some minor changes to checks, error messages, comments, etc. - nothing about
the actual computation is changed.

The updated file is attached.

(file #53893)


Additional Item Attachment:

File name: tensorprod.m                   Size:5 KB


Reply to this item at:


Message sent via Savannah

reply via email to

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