[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #51647] Indices in toeplitz help should start
From: |
Dan Sebald |
Subject: |
[Octave-bug-tracker] [bug #51647] Indices in toeplitz help should start at 0 |
Date: |
Thu, 3 Aug 2017 12:14:30 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0 |
Follow-up Comment #1, bug #51647 (project octave):
Nice catch, but there are a couple things about this.
First, the documentation gives an example of a square matrix, but the
toeplitz() routine appears to be more general, e.g.,
octave:11> toeplitz([1:10], [1:-1:-2])
ans =
1 0 -1 -2
2 1 0 -1
3 2 1 0
4 3 2 1
5 4 3 2
6 5 4 3
7 6 5 4
8 7 6 5
9 8 7 6
10 9 8 7
So, perhaps it should be row c(m) c(m-1) c(m-2) ... c(1) and column r(n)
r(n-1) r(n-2) ... c(1). And remove the word "square".
The second issue is the conundrum of the fact that the example and help from
an Octave script context is C(1), C(2), etc. However, the TeX script uses
subscript notation c_?, c_?, etc. Should that TeX (i.e., math formula)
notation start at 0 or 1? (If it starts at 0, the limits should be m-1 and
n-1.)
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?51647>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/