[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #64778] VM: test anovan crashes octave
From: |
Arun Giridhar |
Subject: |
[Octave-bug-tracker] [bug #64778] VM: test anovan crashes octave |
Date: |
Sun, 15 Oct 2023 11:21:19 -0400 (EDT) |
Follow-up Comment #4, bug #64778 (project octave):
Tracing the path more closely, it seems to be about a nested function called
mDesignMatrix() inside anovan.m:
Inside a switch-case statement, these statements cause a problem.
case 3
## Type III (partial, constrained or marginal) sums-of-squares
ss = zeros (Nt, 1)
mDesignMatrix ()
[b, sse, resid, ucov] = lmfit (cell2mat (X), Y, W)
for j = 1:Nt
XS = cell2mat (X(1:Nt+1 != j+1));
[jnk, R] = lmfit (XS, Y, W)
ss(j) = R - sse
endfor
sstype_char = "III"
There is a call to nested function mDesignMatrix() which inherits the scope
and variables of the calling location, then it's followed by a call to lmfit,
which is where the error is printed, but there's no problematic code in lmfit
itself. There seems to be a scope discontinuity when leaving a nested function
and going to another function.
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?64778>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [Octave-bug-tracker] [bug #64778] VM: test anovan crashes octave, Dmitri A. Sergatskov, 2023/10/14
- [Octave-bug-tracker] [bug #64778] VM: test anovan crashes octave, Philip Nienhuis, 2023/10/15
- [Octave-bug-tracker] [bug #64778] VM: test anovan crashes octave, Arun Giridhar, 2023/10/15
- [Octave-bug-tracker] [bug #64778] VM: test anovan crashes octave, Arun Giridhar, 2023/10/15
- [Octave-bug-tracker] [bug #64778] VM: test anovan crashes octave,
Arun Giridhar <=
- [Octave-bug-tracker] [bug #64778] VM: test anovan crashes octave, Arun Giridhar, 2023/10/15
- [Octave-bug-tracker] [bug #64778] VM: test anovan crashes octave, Arun Giridhar, 2023/10/15
- [Octave-bug-tracker] [bug #64778] VM: test anovan crashes octave, Petter, 2023/10/16
- [Octave-bug-tracker] [bug #64778] VM: test anovan crashes octave, Arun Giridhar, 2023/10/16
- [Octave-bug-tracker] [bug #64778] VM: test anovan crashes octave, Arun Giridhar, 2023/10/25