Re: [Graph] On graph weight type(s)

2011-12-23 Thread Matthew Pocock
t.org/ > > > > On Fri, Dec 23, 2011 at 10:44 AM, Matthew Pocock > wrote: > > Hi Simo, > > > > I guess the 5 minutes to run example would be: > > > > ShortestPathFunction.dijkstra > > .makeResult(graph, EdgeWeight.forWeightedEdge, Monotonic.sumDouble) &

Re: [Graph] On graph weight type(s)

2011-12-23 Thread Matthew Pocock
o > > http://people.apache.org/~simonetripodi/ > http://simonetripodi.livejournal.com/ > http://twitter.com/simonetripodi > http://www.99soft.org/ > > > > On Thu, Dec 22, 2011 at 6:25 PM, Matthew Pocock > wrote: > > Hi, > > > > Just thought I'd thr

Re: [Graph] On graph weight type(s)

2011-12-22 Thread Matthew Pocock
graph] with a > Christmas gift :) > Claudio > > > -- > Claudio Squarcella > PhD student at Roma Tre University > E-mail address: squar...@dia.uniroma3.it > Phone: +39-06-57333215 > Fax: +39-06-57333612 > http://www.dia.uniroma3.it/~**squarcel<http://www.dia.uniroma3.it/~squarcel> > > > --

Re: [Graph] On graph weight type(s)

2011-12-15 Thread Matthew Pocock
e Weight extends Monoid, Ordered Of course, a sensible default implementation of Weight would delegate to Monoid and Ordered instances and you can then pray to the gods of hotspot to inline this all away. public Weight weight(Monoid m, Ordered o) { new Weight() { public W zero() { r

Re: [Graph] On graph weight type(s)

2011-12-12 Thread Matthew Pocock
s on the > >> input graph in their signature (e.g. Dijkstra can use {{Double}}). > >> > >> > >> Looking forward for comments, > >> Claudio > >> > >> -- > >> Claudio Squarcella > >> PhD student at Roma Tre Unive

Re: [VOTE][Codec] Release Commons Codec 1.6-RC2

2011-11-23 Thread Matthew Pocock
; o Fix various character encoding issues in comments and test cases. > Issue: > > CODEC-127. > > o ColognePhonetic Javadoc should use HTML entities for special > characters. > > Issue: CODEC-123. > > > > Changes: > > o Implement a Beider-Morse phonetic mat

Re: [functor] Method 'XXX' is not designed for extension

2011-08-26 Thread Matthew Pocock
ns provided by [functor] > > could probably be sensibly made final. On the other hand, applying > > this check to #equals(), #hashCode(), etc., seems pretty stupid. > > Maybe we should just turn it off. > > > > Matt > > > >> > >> Thanks for

Re: [math] Consistent use of ExceptionContext [was "using the ExceptionContext facility"]

2011-08-26 Thread Matthew Pocock
bug unit tests when ever there are exceptions. Matthew > Best regards, > Sébastien > > - > To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org > For additional commands, e-mail: dev-h...@commons.apache.org > > -- Dr Matthew Pocock Visitor, School of Computi

Re: [functor] Method 'XXX' is not designed for extension

2011-08-23 Thread Matthew Pocock
ail: dev-unsubscr...@commons.apache.org > For additional commands, e-mail: dev-h...@commons.apache.org > > -- Dr Matthew Pocock Visitor, School of Computing Science, Newcastle University mailto: turingatemyhams...@gmail.com gchat: turingatemyhams...@gmail.com msn: matthew_poc...@yahoo.co.uk irc.freenode.net: drdozer tel: (0191) 2566550 mob: +447535664143

Re: [codec] next releases

2011-08-23 Thread Matthew Pocock
; [1] http://commons.apache.org/releases/versioning.html > > > >> Thank you, > >> Gary > >> -- > >> http://garygregory.wordpress.com/ > >> http://garygregory.com/ > >> http://people.apache.org/~ggregory/ > >> http://twitter.c

Re: [collections] Iterate over sublists of an original list

2011-08-18 Thread Matthew Pocock
> apache collections. > > > > > > > > The kinda simple implementation i use at work is the following: > > > > http://pastebin.com/CRitkWTG > > > > > > > > > > > > And you use it like that: > > > > &

Re: [Math] "iterator" and "sparseIterator" in "RealVector" hierarchy

2011-08-17 Thread Matthew Pocock
>>> Forgive me for pushing my nose under the tent... I couldn't > > > resist. > > > > > > > >>> > > > > > > > >>> I think Gilles is saying that each specialization of the > > > > > matrix/vector > > > > > > > >>> objects would need to support pre (and post) multiplication > > > with a > > > > > > > dense. > > > > > > > >>> So > > > > > > > >>> the type issue would not be problematic. > > > > > > > >>> > > > > > > > >>> On Mon, Aug 15, 2011 at 6:34 PM, Ted Dunning < > > > > > ted.dunn...@gmail.com> > > > > > > > >>> wrote: > > > > > > > >>> > > > > > > > >>>> No. > > > > > > > >>>> > > > > > > > >>>> You can't. This is because the type is lost as you enter > the > > > > > generic > > > > > > > >>>> library. > > > > > > > >>>> > > > > > > > >>>> On Mon, Aug 15, 2011 at 4:28 PM, Gilles Sadowski < > > > > > > > >>>> gil...@harfang.homelinux.org> wrote: > > > > > > > >>>> > > > > > > > >>>>>> They know that their own object is dense, but they don't > > > know > > > > > what > > > > > > > >>> kind > > > > > > > >>>>> of > > > > > > > >>>>>> input they were given. They should still run fast if > the > > > input > > > > > is > > > > > > > >>>>> sparse. > > > > > > > >>>>> > > > > > > > >>>>> Couldn't we still rely on polymorphism by implementing > > > > > "preTimes": > > > > > > > >>>>> unknown.preTimes(dense) > > > > > > > > > > > - > > > > > > > > To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org > > > > > > > > For additional commands, e-mail: dev-h...@commons.apache.org > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > - > > > > > > > To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org > > > > > > > For additional commands, e-mail: dev-h...@commons.apache.org > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > - > > > > > To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org > > > > > For additional commands, e-mail: dev-h...@commons.apache.org > > > > > > > > > > > > > > > > > > > > > > - > > > To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org > > > For additional commands, e-mail: dev-h...@commons.apache.org > > > > > > > > > > - > To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org > For additional commands, e-mail: dev-h...@commons.apache.org > > -- Dr Matthew Pocock Visitor, School of Computing Science, Newcastle University mailto: turingatemyhams...@gmail.com gchat: turingatemyhams...@gmail.com msn: matthew_poc...@yahoo.co.uk irc.freenode.net: drdozer tel: (0191) 2566550 mob: +447535664143

Re: [codec] Encoder / Decoder interface

2011-08-17 Thread Matthew Pocock
ete versions. > In the case of ENC encode(DEC), the framework sees Object encode(Object), as this is the erased type. The framework is happy and Java code referring to the Encoder interface (directly or indirectly) is type-safe (baring casts which we can't do much about). Matthew > >

Re: [codec] Encoder / Decoder interface

2011-08-17 Thread Matthew Pocock
-unsubscr...@commons.apache.org > >>>>>>>>> For additional commands, e-mail: dev-h...@commons.apache.org > >>>>>>>>> > >>>>>>>>> > >>>>>>>> > >>>>>>>> > >>>>>>&g

Re: [codec] getting the bmpm code out there

2011-08-11 Thread Matthew Pocock
clearly we need a big version bump, with all the associated changes, and all encoders and their clients would be equally affected. Does that help, or have I further muddied the waters? Matthew -- Dr Matthew Pocock Visitor, School of Computing Science, Newcastle University mailto: turingatemyhams.

[codec] getting the bmpm code out there

2011-08-11 Thread Matthew Pocock
like there to be a release of commons-codec some time soon so that users can start to try out bmpm right away, and so that we can start the process of adding it to the list of supported indexing methods in solr. What do people think? Matthew -- Dr Matthew Pocock Visitor, School of Computing Scienc

CODEC-125

2011-07-22 Thread Matthew Pocock
K with you, could we hook up for an IM session to try to get this sorted? https://issues.apache.org/jira/browse/CODEC-125 Thanks, Matthew -- Dr Matthew Pocock Visitor, School of Computing Science, Newcastle University mailto: turingatemyhams...@gmail.com gchat: turingatemyhams...@gma

Re: (MATH-608) Remove methods from RealMatrix Interface

2011-07-02 Thread Matthew Pocock
You may get more mileage by having a matrix operation interface that has is parameterised over the two matrix types. It would have things like multiply once and you would have different concrete implementations for different pairs of matrix types. The implementations can even be provided via one of

Re: [codec] submitting a StringEncoder

2011-06-24 Thread Matthew Pocock
th commons-codec. Could somebody contact me directly so that I can hook them up with you so that we can sort out the licensing issues? 2. How do I go about uploading the code? I can make one big svn patch file, if you would like. Thanks, Matthew -- Dr Matthew Pocock Visitor, School of Computi

Re: [LANG] Is a Range a kind of Pair?

2011-05-18 Thread Matthew Pocock
http://garygregory.wordpress.com/ > > http://garygregory.com/ > > http://people.apache.org/~ggregory/ > > http://twitter.com/GaryGregory > > > > --------- > To unsubscribe, e-mail: dev-unsubscr...@commons.a

Re: [codec] submitting a StringEncoder

2011-05-16 Thread Matthew Pocock
tch–Mokotoff Soundex for comparison? > > > Gary > > On May 16, 2011, at 7:17, Matthew Pocock > wrote: > > Beider-Morse > -- Matthew Pocock mailto: turingatemyhams...@gmail.com gchat: turingatemyhams...@gmail.com msn: matthew_poc...@yahoo.co.uk irc.freenode.net: drdozer (0191) 2566550

Re: [codec] submitting a StringEncoder

2011-05-16 Thread Matthew Pocock
> > Hen > > --------- > To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org > For additional commands, e-mail: dev-h...@commons.apache.org > > -- Matthew Pocock mailto: turingatemyhams...@gmail.com gchat: turingatemyhams...@gmail.com msn: matthew_poc...@yahoo.co.uk irc.freenode.net: drdozer (0191) 2566550

[codec] submitting a StringEncoder

2011-05-12 Thread Matthew Pocock
code is under an open-source license (GPL) and in addition my client has obtained permission for the port from the copyright holder. Thanks, Matthew -- Matthew Pocock mailto: turingatemyhams...@gmail.com gchat: turingatemyhams...@gmail.com msn: matthew_poc...@yahoo.co.uk irc.freenode.net: drdozer