[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
place.
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
<https://file.savannah.gnu.org/file/tensorprod.m?file_id=53893>
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/patch/?10288>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [Octave-patch-tracker] [patch #10288] Implementation of Matlab function tensorprod, Kasper H. Filtenborg, 2022/10/20
- [Octave-patch-tracker] [patch #10288] Implementation of Matlab function tensorprod, Kai Torben Ohlhus, 2022/10/21
- [Octave-patch-tracker] [patch #10288] Implementation of Matlab function tensorprod, Nicholas Jankowski, 2022/10/21
- [Octave-patch-tracker] [patch #10288] Implementation of Matlab function tensorprod, John W. Eaton, 2022/10/21
- [Octave-patch-tracker] [patch #10288] Implementation of Matlab function tensorprod,
Kasper H. Filtenborg <=
- [Octave-patch-tracker] [patch #10288] Implementation of Matlab function tensorprod, Nicholas Jankowski, 2022/10/23
- [Octave-patch-tracker] [patch #10288] Implementation of Matlab function tensorprod, Kasper H. Filtenborg, 2022/10/23
- [Octave-patch-tracker] [patch #10288] Implementation of Matlab function tensorprod, Kasper H. Filtenborg, 2022/10/23
- [Octave-patch-tracker] [patch #10288] Implementation of Matlab function tensorprod, Nicholas Jankowski, 2022/10/24
- [Octave-patch-tracker] [patch #10288] Implementation of Matlab function tensorprod, Nicholas Jankowski, 2022/10/24
- [Octave-patch-tracker] [patch #10288] Implementation of Matlab function tensorprod, John W. Eaton, 2022/10/24
- [Octave-patch-tracker] [patch #10288] Implementation of Matlab function tensorprod, Markus Mützel, 2022/10/24
- [Octave-patch-tracker] [patch #10288] Implementation of Matlab function tensorprod, Nicholas Jankowski, 2022/10/24
- [Octave-patch-tracker] [patch #10288] Implementation of Matlab function tensorprod, Kasper H. Filtenborg, 2022/10/27