I don't anticipate any big problems in making the default value configurable.
Yes, Trove has the complete cross-product, so matching that sure makes a code generator attractive. On Wed, Dec 16, 2009 at 6:18 PM, Ted Dunning <[email protected]> wrote: > This seems most congenial. As Jake says, 0 is definitely handier for the > sparse matrix/vector case and NaN is very nice for the collection case. > > On Wed, Dec 16, 2009 at 3:10 PM, Jake Mannix <[email protected]> wrote: > >> Of course, you could also just have the {X}{Y}Map take a default value in >> the constructor, and return this value whenever contains(k) == false. The >> default default >> value could be zero for integral types, and NaN for floating points. >> > > > > -- > Ted Dunning, CTO > DeepDyve >
