Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > perl.module-authors > #3382
| Newsgroups | perl.module-authors |
|---|---|
| Subject | Re: Namespace Math::Matrix::Banded |
| Date | 2020-08-25 11:03 +0200 |
| Message-ID | <14665493.bxNRL5xfI6@fresco> (permalink) |
| References | <7011554.XXk20anvnv@fresco> <20F6E328-F3A1-452D-9FAD-FD25D1E4E0A4@bowers.com> |
| From | lrg_ml@gmx.net (Lutz Gehlen) |
Hi Neil,
On Monday, 24.08.2020 10:06:10 Neil Bowers wrote:
[...]
> One thing to be aware of, is that if you’re releasing a
> distribution Math-Matrix-Banded, then your distribution needs to
> include a module Math::Matrix::Banded[*].
Thank you, I wasn't aware of that.
> I like the model where you also have ::Square, ::Rectangular, and
> ::Symmetric — a class for each internal representation.
>
> Not knowing anything about your planned design, could you have
> Math::Matrix::Banded be the public facing interface, with the
> appropriate "back-end" loaded by it? This could either be
> explicit, with the caller telling you what type to use, or more
> DWIMish, by looking at the matrix and deciding which of the three
> back-ends to use, factory method stylee:
>
> use Math::Matrix::Banded;
> my $matrix =
> Math::Matrix::Banded->load_from_file('foobar.matrix'); print
> ref($matrix), "\n";
>
> # Math::Matrix::Banded::Symmetric
[...]
I like this idea a lot. The size of the matrix is immutable and set
at construction time, so whether it's square or not can be detected
automatically. Symmetry will have to be set explicitly since the
elements of the matrix are mutable.
Thanks,
Lutz
Back to perl.module-authors | Previous | Next — Previous in thread | Find similar | Unroll thread
Namespace Math::Matrix::Banded lrg_ml@gmx.net (Lutz Gehlen) - 2020-08-23 11:40 +0200
Re: Namespace Math::Matrix::Banded dpchrist@holgerdanske.com (David Christensen) - 2020-08-23 06:37 -0700
Re: Namespace Math::Matrix::Banded lrg_ml@gmx.net (Lutz Gehlen) - 2020-08-24 15:46 +0200
Re: Namespace Math::Matrix::Banded dpchrist@holgerdanske.com (David Christensen) - 2020-08-24 17:17 -0700
Re: Namespace Math::Matrix::Banded lrg_ml@gmx.net (Lutz Gehlen) - 2020-08-25 11:02 +0200
Re: Namespace Math::Matrix::Banded dpchrist@holgerdanske.com (David Christensen) - 2020-08-25 13:30 -0700
Re: Namespace Math::Matrix::Banded lrg_ml@gmx.net (Lutz Gehlen) - 2020-08-25 11:03 +0200
csiph-web