Thread overview  


April 15, 2010 Low dimensional matrices, vectors, quaternions and a cubic equation solver  

 
As a side effect of my PhD project I've got a collection of mathematical classes. I'd be happy to collect them together, tidy them up and donate them to phobos the authors are interested in including them. Matrices and vectors in particular get reinvented all the time so I'm sure users of D will appreciate them being there. Quaternions are probably somewhat more specialised; they are most often used for representing rotations (they have different advantages and disadvantages to rotation matrices). I've also written a solver for cubic equations. The matrix and vector classes are of the sort where the dimension is known at compile time and will probably be most useful for modelling geometry. High dimensional matrices and vectors are probably better left to a scientific library (I remember there was talk that one might be being proposed). Would this sort of functionality be useful for phobos? At the moment, I can't promise anything, I'm just trying to judge the interest should I find time to look into it. Gareth Charnock 
April 15, 2010 Re: Low dimensional matrices, vectors, quaternions and a cubic equation  

 
Posted in reply to Gareth Charnock  Gareth Charnock:
> Matrices and vectors in particular get reinvented all the time so I'm sure users of D will appreciate them being there.
I've seen so many times people rewrite a 2D3D vector struct that I hope it will be added to Phobos once and for all.
Bye,
bearophile

April 15, 2010 Re: Low dimensional matrices, vectors, quaternions and a cubic equation  

 
Posted in reply to bearophile  bearophile wrote:
> Gareth Charnock:
>
>> Matrices and
>> vectors in particular get reinvented all the time so I'm sure users of D
>> will appreciate them being there.
>
> I've seen so many times people rewrite a 2D3D vector struct that I hope it will be added to Phobos once and for all.
>
> Bye,
> bearophile
I would be imensly gratefull for the same reason. This goes foor the
Quaternions to by the way.

April 16, 2010 Re: Low dimensional matrices, vectors, quaternions and a cubic equation solver  

 
Posted in reply to Gareth Charnock  On 04/15/2010 01:49 PM, Gareth Charnock wrote:
> As a side effect of my PhD project I've got a collection of mathematical
> classes. I'd be happy to collect them together, tidy them up and donate
> them to phobos the authors are interested in including them. Matrices
> and vectors in particular get reinvented all the time so I'm sure users
> of D will appreciate them being there. Quaternions are probably somewhat
> more specialised; they are most often used for representing rotations
> (they have different advantages and disadvantages to rotation matrices).
> I've also written a solver for cubic equations.
>
> The matrix and vector classes are of the sort where the dimension is
> known at compile time and will probably be most useful for modelling
> geometry. High dimensional matrices and vectors are probably better left
> to a scientific library (I remember there was talk that one might be
> being proposed).
>
> Would this sort of functionality be useful for phobos? At the moment, I
> can't promise anything, I'm just trying to judge the interest should I
> find time to look into it.
>
> Gareth Charnock
I think it would. Could you please post a brief list of features so people can take a look?
Andrei

April 16, 2010 Re: Low dimensional matrices, vectors, quaternions and a cubic equation solver  

 
Posted in reply to Gareth Charnock  Like so many hopeful enthusiasts you are trying to bring in something. I regret that I have to tell you that Phobos is a one man show.
ATM we have a situation where the compiler tries to support ideas written in book not yet available for a library which exist in outer space.
See concurrence (news group) ,container (D)
I think we can say that Phobos is a ridiculous tiny library. but in case that you have a look on what is happening outside .. a lot. This is where your library will/can survive.
Bjoern. 10000 A (B)en(H)inckle
On 15/04/2010 20:49, Gareth Charnock wrote:
> As a side effect of my PhD project I've got a collection of mathematical
> classes. I'd be happy to collect them together, tidy them up and donate
> them to phobos the authors are interested in including them. Matrices
> and vectors in particular get reinvented all the time so I'm sure users
> of D will appreciate them being there. Quaternions are probably somewhat
> more specialised; they are most often used for representing rotations
> (they have different advantages and disadvantages to rotation matrices).
> I've also written a solver for cubic equations.
>
> The matrix and vector classes are of the sort where the dimension is
> known at compile time and will probably be most useful for modelling
> geometry. High dimensional matrices and vectors are probably better left
> to a scientific library (I remember there was talk that one might be
> being proposed).
>
> Would this sort of functionality be useful for phobos? At the moment, I
> can't promise anything, I'm just trying to judge the interest should I
> find time to look into it.
>
> Gareth Charnock

April 16, 2010 Re: Low dimensional matrices, vectors, quaternions and a cubic equation solver  

 
Posted in reply to Gareth Charnock  On Thu, 15 Apr 2010 15:49:41 0300, Gareth Charnock <gareth.charnock@gmail.com> wrote:
> As a side effect of my PhD project I've got a collection of mathematical classes. I'd be happy to collect them together, tidy them up and donate them to phobos the authors are interested in including them. Matrices and vectors in particular get reinvented all the time so I'm sure users of D will appreciate them being there. Quaternions are probably somewhat more specialised; they are most often used for representing rotations (they have different advantages and disadvantages to rotation matrices). I've also written a solver for cubic equations.
>
> The matrix and vector classes are of the sort where the dimension is known at compile time and will probably be most useful for modelling geometry. High dimensional matrices and vectors are probably better left to a scientific library (I remember there was talk that one might be being proposed).
>
> Would this sort of functionality be useful for phobos? At the moment, I can't promise anything, I'm just trying to judge the interest should I find time to look into it.
>
> Gareth Charnock
I've also reinvented this wheel for my research (vectors and quaternions). I'll gladly send you a copy if you want to have a looksee.

April 16, 2010 Re: Low dimensional matrices, vectors, quaternions and a cubic equation solver  

 
Posted in reply to BLS  BLS wrote: > Like so many hopeful enthusiasts you are trying to bring in something. I regret that I have to tell you that Phobos is a one man show. Actually, it is more like a six or sevenman show, and the number of developers is growing. > ATM we have a situation where the compiler tries to support ideas written in book not yet available for a library which exist in outer space. > See concurrence (news group) ,container (D) The concurrency stuff seems to be well under way. (An incomplete version of) std.concurrency was included with 2.043. > I think we can say that Phobos is a ridiculous tiny library. but in case that you have a look on what is happening outside .. a lot. This is where your library will/can survive. By posting messages like this, you're not exactly helping Phobos grow and gain more developers. Potential contributor: "Hey, I have some code which I think would be useful for Phobos." You: "Forget it, you'll never get it in. Besides, Phobos sucks anyway, and there's no point in trying to improve it." I mean, what are you trying to achieve with this? Lars > On 15/04/2010 20:49, Gareth Charnock wrote: >> As a side effect of my PhD project I've got a collection of mathematical >> classes. I'd be happy to collect them together, tidy them up and donate >> them to phobos the authors are interested in including them. Matrices >> and vectors in particular get reinvented all the time so I'm sure users >> of D will appreciate them being there. Quaternions are probably somewhat >> more specialised; they are most often used for representing rotations >> (they have different advantages and disadvantages to rotation matrices). >> I've also written a solver for cubic equations. >> >> The matrix and vector classes are of the sort where the dimension is >> known at compile time and will probably be most useful for modelling >> geometry. High dimensional matrices and vectors are probably better left >> to a scientific library (I remember there was talk that one might be >> being proposed). >> >> Would this sort of functionality be useful for phobos? At the moment, I >> can't promise anything, I'm just trying to judge the interest should I >> find time to look into it. >> >> Gareth Charnock > 
April 16, 2010 Re: Low dimensional matrices, vectors, quaternions and a cubic equation solver  

 
Posted in reply to Robert Jacques  On 16apr10, at 04:46, Robert Jacques wrote: > On Thu, 15 Apr 2010 15:49:41 0300, Gareth Charnock <gareth.charnock@gmail.com > > wrote: > >> As a side effect of my PhD project I've got a collection of mathematical classes. I'd be happy to collect them together, tidy them up and donate them to phobos the authors are interested in including them. Matrices and vectors in particular get reinvented all the time so I'm sure users of D will appreciate them being there. Quaternions are probably somewhat more specialised; they are most often used for representing rotations (they have different advantages and disadvantages to rotation matrices). I've also written a solver for cubic equations. >> >> The matrix and vector classes are of the sort where the dimension is known at compile time and will probably be most useful for modelling geometry. High dimensional matrices and vectors are probably better left to a scientific library (I remember there was talk that one might be being proposed). >> >> Would this sort of functionality be useful for phobos? At the moment, I can't promise anything, I'm just trying to judge the interest should I find time to look into it. >> >> Gareth Charnock > > I've also reinvented this wheel for my research (vectors and quaternions). I'll gladly send you a copy if you want to have a looksee. I use (sligltly patched) omg versions of these http://team0xf.com:8080/omg that seem to work reasonably well for my purposes (D1.0) Fawzi 
April 16, 2010 Re: Low dimensional matrices, vectors, quaternions and a cubic equation solver  

 
Posted in reply to Fawzi Mohamed  On Fri, 16 Apr 2010 08:53:28 0300, Fawzi Mohamed <fawzi@gmx.ch> wrote:
>
> On 16apr10, at 04:46, Robert Jacques wrote:
>
>> On Thu, 15 Apr 2010 15:49:41 0300, Gareth Charnock <gareth.charnock@gmail.com> wrote:
>>
>>> As a side effect of my PhD project I've got a collection of mathematical classes. I'd be happy to collect them together, tidy them up and donate them to phobos the authors are interested in including them. Matrices and vectors in particular get reinvented all the time so I'm sure users of D will appreciate them being there. Quaternions are probably somewhat more specialised; they are most often used for representing rotations (they have different advantages and disadvantages to rotation matrices). I've also written a solver for cubic equations.
>>>
>>> The matrix and vector classes are of the sort where the dimension is known at compile time and will probably be most useful for modelling geometry. High dimensional matrices and vectors are probably better left to a scientific library (I remember there was talk that one might be being proposed).
>>>
>>> Would this sort of functionality be useful for phobos? At the moment, I can't promise anything, I'm just trying to judge the interest should I find time to look into it.
>>>
>>> Gareth Charnock
>>
>> I've also reinvented this wheel for my research (vectors and quaternions). I'll gladly send you a copy if you want to have a looksee.
>
> I use (sligltly patched) omg versions of these
> http://team0xf.com:8080/omg
> that seem to work reasonably well for my purposes (D1.0)
>
> Fawzi
However, license on these and their dependencies are not Phobos compatible.

April 16, 2010 Re: Low dimensional matrices, vectors, quaternions and a cubic equation solver  

 
Posted in reply to Lars T. Kyllingstad  "Hopeful enthusiast" probably describes me quite well! :) From my point of view I can see a wheel that keeps getting reinvented (and the process of reinventing that wheel is both fiddly and quite dull), a really great looking language that needs better library support.
Now I am aware that D has a reputation for not being as open as one might like, but the general consensus seems to be that things are getting better, which is why I'm posting first to check if the authors of Phobos are open to the idea of having matrices, vectors and quaternions and such.
Gareth Charnock
Lars T. Kyllingstad wrote:
> BLS wrote:
>> Like so many hopeful enthusiasts you are trying to bring in something. I regret that I have to tell you that Phobos is a one man show.
>
> Actually, it is more like a six or sevenman show, and the number of developers is growing.
>
>
>> ATM we have a situation where the compiler tries to support ideas written in book not yet available for a library which exist in outer space.
>> See concurrence (news group) ,container (D)
>
> The concurrency stuff seems to be well under way. (An incomplete version of) std.concurrency was included with 2.043.
>
>
>> I think we can say that Phobos is a ridiculous tiny library. but in case that you have a look on what is happening outside .. a lot. This is where your library will/can survive.
>
> By posting messages like this, you're not exactly helping Phobos grow and gain more developers.
>
> Potential contributor: "Hey, I have some code which I think
> would be useful for Phobos."
>
> You: "Forget it, you'll never get it in. Besides, Phobos sucks
> anyway, and there's no point in trying to improve it."
>
> I mean, what are you trying to achieve with this?
>
> Lars
>
>
>> On 15/04/2010 20:49, Gareth Charnock wrote:
>>> As a side effect of my PhD project I've got a collection of mathematical
>>> classes. I'd be happy to collect them together, tidy them up and donate
>>> them to phobos the authors are interested in including them. Matrices
>>> and vectors in particular get reinvented all the time so I'm sure users
>>> of D will appreciate them being there. Quaternions are probably somewhat
>>> more specialised; they are most often used for representing rotations
>>> (they have different advantages and disadvantages to rotation matrices).
>>> I've also written a solver for cubic equations.
>>>
>>> The matrix and vector classes are of the sort where the dimension is
>>> known at compile time and will probably be most useful for modelling
>>> geometry. High dimensional matrices and vectors are probably better left
>>> to a scientific library (I remember there was talk that one might be
>>> being proposed).
>>>
>>> Would this sort of functionality be useful for phobos? At the moment, I
>>> can't promise anything, I'm just trying to judge the interest should I
>>> find time to look into it.
>>>
>>> Gareth Charnock
>>

« First ‹ Prev 

Copyright © 19992016 by Digital Mars ®, All Rights Reserved