From lemming at henning-thielemann.de Sat May 25 14:42:51 2019 From: lemming at henning-thielemann.de (Henning Thielemann) Date: Sat, 25 May 2019 16:42:51 +0200 (CEST) Subject: [Numeric] Announce: comfort-array, lapack Message-ID: I like two announce two of my packages: 1. comfort-array http://hackage.haskell.org/package/comfort-array It provides Boxed and Storable arrays with very liberal shape definitions. You may use ranges of indices like in 'array' or zero-based indexing like in 'repa', but you can also use arbitrary index Sets, enumerations, concatenation of arrays and more. E.g. an array with (Shape.Enumeration Ordering) has three elements with indices LT, EQ, GT. 2. lapack http://hackage.haskell.org/package/lapack A high-level interface to the numerical Linear Algebra package LAPACK. It is based on comfort-array, which means that a vector can have a rich structure. E.g. matrix vector multiplication has the signature: (#*|) :: Matrix.General height width a -> Vector width a -> Vector height a Thus, a 'Matrix.General (Shape.Enumeration Ordering) (h,w) a' would map a rectangular array with dimensions h and w to a three-element vector with indices LT, EQ, GT. The LAPACK interface provides solvers for simultaneous linear equations, linear least-squares problems, eigenvalue and singular value problems for square, triangular, symmetric, Hermitian, banded and banded Hermitian matrices, as LAPACK supports them. For a motivating example refer to: http://code.henning-thielemann.de/bob2019/main.pdf From ben at smart-cactus.org Mon May 27 21:34:50 2019 From: ben at smart-cactus.org (Ben Gamari) Date: Mon, 27 May 2019 17:34:50 -0400 Subject: [Numeric] Announce: comfort-array, lapack In-Reply-To: References: Message-ID: <875zpvoa2v.fsf@smart-cactus.org> Henning Thielemann writes: > I like two announce two of my packages: > > 1. comfort-array > http://hackage.haskell.org/package/comfort-array > > It provides Boxed and Storable arrays with very liberal shape definitions. > You may use ranges of indices like in 'array' or zero-based indexing like > in 'repa', but you can also use arbitrary index Sets, enumerations, > concatenation of arrays and more. E.g. an array with (Shape.Enumeration > Ordering) has three elements with indices LT, EQ, GT. > Very nice. I have long wanted something like this. Thanks Henning! Cheers, - Ben -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 487 bytes Desc: not available URL: From dominic at steinitz.org Wed May 29 09:54:07 2019 From: dominic at steinitz.org (dominic at steinitz.org) Date: Wed, 29 May 2019 10:54:07 +0100 Subject: [Numeric] Announce: comfort-array, lapack In-Reply-To: <875zpvoa2v.fsf@smart-cactus.org> References: <875zpvoa2v.fsf@smart-cactus.org> Message-ID: <5ECB0375-2D9F-441C-B8E4-E71487B3BCB4@steinitz.org> Hi Ben, I am intrigued. What application do you have in mind? Dominic. Dominic Steinitz dominic at steinitz.org http://idontgetoutmuch.org Twitter: @idontgetoutmuch > On 27 May 2019, at 22:34, Ben Gamari wrote: > > Henning Thielemann writes: > >> I like two announce two of my packages: >> >> 1. comfort-array >> http://hackage.haskell.org/package/comfort-array >> >> It provides Boxed and Storable arrays with very liberal shape definitions. >> You may use ranges of indices like in 'array' or zero-based indexing like >> in 'repa', but you can also use arbitrary index Sets, enumerations, >> concatenation of arrays and more. E.g. an array with (Shape.Enumeration >> Ordering) has three elements with indices LT, EQ, GT. >> > Very nice. I have long wanted something like this. Thanks Henning! > > Cheers, > > - Ben > _______________________________________________ > Numeric mailing list > Numeric at haskell.org > http://mail.haskell.org/cgi-bin/mailman/listinfo/numeric -------------- next part -------------- An HTML attachment was scrubbed... URL: From lemming at henning-thielemann.de Wed May 29 09:58:56 2019 From: lemming at henning-thielemann.de (Henning Thielemann) Date: Wed, 29 May 2019 11:58:56 +0200 (CEST) Subject: [Numeric] Announce: comfort-array, lapack In-Reply-To: <5ECB0375-2D9F-441C-B8E4-E71487B3BCB4@steinitz.org> References: <875zpvoa2v.fsf@smart-cactus.org> <5ECB0375-2D9F-441C-B8E4-E71487B3BCB4@steinitz.org> Message-ID: On Wed, 29 May 2019, dominic at steinitz.org wrote: > Hi Ben, > I am intrigued. What application do you have in mind? I removed haskell at haskell.org from CC. I am also interested in your application.