Function to get the powerset
by Henrique Andrade
Dear Gretl Community,
I really stuck trying to define a function that gives a power set of a
set. Suppose I have a set S:
S = {"A", "B", "C"}
The associated power set, P(S), is:
P(S) = {{ }, {"A"}, {"B"}, {"C"}, {"A", "B"}, {"A", "C"}, {"B", "C"},
{"A", "B", "C"}}
All that I can think by now (shame on me!) is this:
strings S = defarray("A", "B", "C")
scalar P_S_len = 2^nelem(S) # the size of the power set
strings P_S = array(P_S_len) # an array with 8 spaces.
Does anyone have any ideas?
Best,
Henrique Andrade
5 years, 11 months
buggy Windows snapshots: situation now better
by Allin Cottrell
To those who have been using Windows snapshots of gretl over the
last week or so: my apologies, the bug-rate has been higher than
usual.
I've been working lately on trying to streamline and rationalize our
handling of variant filename encodings (which is only an issue on
Windows since everyone else uses UTF-8 these days). I wasn't
expecting this to be easy but it has been even harder than I
thought, and I'm afraid I have sprinkled quite a few bugs into the
snapshots in the process.
Anyway, I think that things have now stabilized. For anyone running
a recent Windows snapshot, I would recommend updating to the latest
iteration; see http://gretl.sourceforge.net/win32/
And of course, please speak up if you find anything wrong.
Allin
6 years
Anybody else with menu problems on Ubuntu 18.04?
by Sven Schreiber
Hi fellow users,
since Ubuntu 18.04 was released I have started using gretl more often on
Linux again. However, I'm facing the annoying problem that quite often
the menus in the main gretl window become unresponsive in the middle of
a session. (What I mean is they don't open anymore if you click on them.)
This is likely _not_ a gretl bug but probably induced by the specifics
of the ubuntu deskop. However, Ubuntu is one of the most popular Linux
distros, and 18.04 is a long-term support (LTS) release. So I'm
wondering if this is a widespread problem.
(So far I know Artur is using Ubuntu, but not the default desktop
configuration, and he doesn't have those problems. I, on the other hand,
have installed Ubuntu with the standard and default options I believe.)
Please, quickly share your experience if you have used gretl on Ubuntu
18.04!
thanks,
sven
6 years
gretl 2018c released
by Allin Cottrell
Hello all,
We pushed out what's primarily a bug-fix release today.
2018-09-03 version 2018c
- Fix bug: the panel-statistic functions pmean() and psd()
give wrong results when only the first observation of a
cross-sectional unit differs from the others
- "foreign" support for R: try to handle non-ASCII filenames
in the gretl.loadmat function
- Prevent crash on failure to access a single dbnomics series
- Correct index shown in an "out-of-bounds" error message
- Correct alignment in printing "note" for bundle member
- Support indexing into a list-member series (e.g. "L[i][t]")
- Read Ctrl-G as "Find again" in find dialog box, and make
search wrap silently
- Matrix "division": handle the reduced-rank case properly
Allin
6 years