[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #63538] nchoosek random errors for some inputs
From: |
Steve |
Subject: |
[Octave-bug-tracker] [bug #63538] nchoosek random errors for some inputs |
Date: |
Sat, 17 Dec 2022 13:25:47 -0500 (EST) |
Follow-up Comment #3, bug #63538 (project octave):
normally x(:) gives a column vector.
A more independent solution would be
x = repelem (v(1:n-1), [n-1:-1:1]);
if size(x,1) < size(x,2)
x = x.';
end
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?63538>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/