Commit graph

43 commits

Author SHA1 Message Date
David Nadlinger
e312f9898b Strict @property syntax compliance.
This enables the test suite to build with the -property switch enabled.

std.cpuid: vendor()/processor() have not been converted to properties in accordance to core.cpuid.
std.xml: Element.text() cannot be a property due to the optional parameter.
2011-12-04 09:56:14 +01:00
dawg
2ab1f6d304 flag findRoot delegates as scope 2011-10-30 21:42:32 +01:00
dsimcha
9f9ac7d958 Issue 6514: CTFE dot product. This is a trivial change to the syntax to work around issue 6517, which was the only thing keeping the old dotProduct function from working at compile time. 2011-08-17 07:56:55 -04:00
KennyTM~
df4e92d712 (Minor cleanup) Change some idiomic GC.malloc usage to uninitializedArray
Simplify the common pattern `(cast(T*)GC.malloc(T.sizeof * n, NO_SCAN))[0 .. n]` to the new function `uninitializedArray!(T[])(n)`.

Note that there was some `NO_SCAN` attributes originally determined at runtime using `typeid()`, but now is determined statically using `hasIndirection!()` from the implementation of `uninitializedArray`.
There were also some `GC.malloc` usage looks like `uninitializedArray` in `std.parallelism` but I'm leaving it alone for someone who is more familiar with this module ;).
2011-07-14 04:29:34 +08:00
Andrei Alexandrescu
d061f13d34 https://github.com/D-Programming-Language/phobos/pull/23 2011-05-01 12:11:46 -05:00
Walter Bright
046e1b36db add source links 2011-02-06 15:46:50 -08:00
Don Clugston
84477a5d3e Move Boost copyright declaration from ddoc to normal comment. Fixes ugly ddoc output. 2010-11-24 19:34:47 +00:00
David Simcha
8331c70969 More 64 fixes for semantic errors that only show up when templates are instantiated via unittests. Now I'm actually serious about Phobos passing semantic analysis, except for a few modules due to weird druntime issues. 2010-11-10 05:25:50 +00:00
Shin Fujishiro
3c048ac456 Migration of tup.field[k] to tup[k].
Replaced ad-hoc 'is tuple?' checks with isTuple template.

The "this._cache" change in std.range is just a workaround for bug 5046.
2010-10-13 05:39:53 +00:00
David Simcha
b597d23f83 Bug 4888: Heavy reliance on Bug 3534 in Phobos range usage. I used a different approach here than the first one I tried. I only did what was necessary to make Phobos work instead of trying to fix the deeper issue of making std.algorithm to work w/ const/immutable arrays. 2010-09-18 21:00:52 +00:00
David Simcha
0e48b8e238 Bug 4810: dotProduct problem with ints 2010-09-04 14:34:11 +00:00
David Simcha
063db6c17e Add FFT to std.numeric. 2010-08-13 02:32:59 +00:00
Andrei Alexandrescu
7979116eb4 Replaced std.contracts with std.exception throughout 2010-07-04 22:12:18 +00:00
Don Clugston
80edeca151 Two more B stings. 2010-06-21 20:22:18 +00:00
David Simcha
4459b1dca6 Bug 4306: std.numeric.CustomFloat doesn't work on Mac OS X. 2010-06-13 23:34:05 +00:00
Masahiro Nakagawa
e219831f74 Move 'import std.conv' to outside of 'version(unittest)'. CustomFloat requires std.conv.text. 2010-06-13 18:57:00 +00:00
David Simcha
68a3e3758d Fix CustomFloat opOpAssign. 2010-06-11 20:35:00 +00:00
Don Clugston
d1b7947d33 Disabled unittests for CustomFloat, as an emergency action to allow Phobos unittests to compile. Something is horribly wrong with the new CustomFloat. 2010-06-11 07:19:39 +00:00
David Simcha
57582d52f7 Remove void main(). 2010-06-10 17:58:59 +00:00
David Simcha
6b6f5beebc Massively improve CustomFloat, thanks to Robert Jacques. 2010-06-10 12:53:25 +00:00
Walter Bright
53a3eec534 invariant => immutable 2010-05-05 22:19:49 +00:00
Don Clugston
1eea3f3895 Removed all references to float.min, replaced with float.min_normal. 2009-11-06 16:02:45 +00:00
Andrei Alexandrescu
aa2face235 Added gcd 2009-10-26 22:50:22 +00:00
Sean Kelly
747f3cf1e4 Changed Phobos to use the Boost license. Currently, all public domain modules and all licensed modules by Walter, Andrei, Bartosz, and Don have been changed to use this license (excepting std.c, for the moment). Ideally, all Phobos modules will eventually be distributed under this license, which means obtaining permission from a few more authors, deleting, or rewriting some modules.
Removed std.openrj.
2009-09-16 18:19:51 +00:00
Andrei Alexandrescu
0c142994d9 See changelog - bunch of bug fixes and a couple additions for release 2.032 2009-08-31 19:46:33 +00:00
Don Clugston
b2643ae30f Fix for bugzilla 3240. 2009-08-11 07:18:55 +00:00
Andrei Alexandrescu
e336106541 minor 2009-07-04 06:59:56 +00:00
Andrei Alexandrescu
ccfe097389 added raw specifier for reading 2009-04-23 09:03:16 +00:00
Andrei Alexandrescu
52380d0fed added entropy, kullbackLeiblerDivergence, jensenShannonDivergence 2009-04-19 17:19:43 +00:00
Walter Bright
5232cd844a typo 2009-04-18 18:23:18 +00:00
Andrei Alexandrescu
dfef2a7214 Replaced next, retreat, head, and toe with (respectively) popFront, popBack, front, and back 2009-04-13 19:10:58 +00:00
Andrei Alexandrescu
cd8dd20137 minor 2009-04-06 20:43:47 +00:00
Andrei Alexandrescu
739923a491 * Added type CustomFloat that allows defining specialized floating-point
numbers (e.g. 16-bit floats, positive floats etc.)
* Added FPTemporary as the best type to store temporary values.
* Templatized oppositeSigns
* Added Euclidean distance
* Added dotProduct
* Added cosineSimilarity
* Added normalize
* Added string kernel functions gapWeightedSimilarity,
gapWeightedSimilarityNormalized, gapWeightedSimilarityIncremental.
2009-04-06 17:17:52 +00:00
Don Clugston
5ae67f23ac * Disabled pure nothrow for double & float functions, because of bug 2756
* More extensive unittests for nextUp.
Trivial tidying up:
* Changed all references to std.math.isXXX to the new names instead of the aliased old names.
* Moved license to end of std.math.
2009-03-24 08:49:38 +00:00
Walter Bright
295a1633b7 fails unit tests 2009-02-14 17:47:38 +00:00
Andrei Alexandrescu
15357568a0 $(LI In $(B std.numeric), added Don Clugston as author and operated minor documentation fixes) 2008-07-08 03:26:44 +00:00
Don Clugston
5efccccf03 numeric.findRoot: Major simplification of the termination delegate; better docs;fixed treatment of NaNs. 2008-04-02 19:48:07 +00:00
Don Clugston
46d0bdb198 Better docs for findRoot() termination condition. 2008-04-02 06:57:35 +00:00
Don Clugston
58749fe3fd * added numeric.findRoot. AFAIK this is faster than any previously published 1D general-purpose root finder,
* added math.ieeeMean. Not yet public (may need a different name). Used  by findRoot.
* reformatting for std.math -- 80 char width, etc.
2008-04-01 19:10:40 +00:00
Andrei Alexandrescu
bacf9b6a2a moved docsrc where it belongs 2008-03-09 07:49:49 +00:00
Andrei Alexandrescu
29f3cc23f7 std.math: minor change in approxEqual.
std.contracts: added functions pointsTo()

std.numeric: minor unittest fixes.

std.bitmanip: fixed code bloat issue, reintroduced FloatRep and DoubleRep.

std.conv: minor simplification of implementation.

std.regexp: added reference to ECMA standard in the documentation.

std.getopt: changed return type from bool to void, error is signaled by use of exceptions.

std.functional: added unaryFun, binaryFun, adjoin.

std.string: updated documentation, changed code to compile with warnings enabled.

std.traits: changed FieldTypeTuple; added RepresentationTypeTuple, hasAliasing; fixed bug 1826; added call to flush() from within write; fixed unlisted bug in lines().

std.algorithm: added map, reduce, filter, inPlace, move, swap, overwriteAdjacent, find, findRange, findBoyerMoore, findAdjacent, findAmong, findAmongSorted, canFind, canFindAmong, canFindAmongSorted, count, equal, overlap, min, max, mismatch, EditOp, none, substitute, insert, remove, levenshteinDistance, levenshteinDistanceAndPath, copy, copyIf, iterSwap, swapRanges, reverse, rotate, SwapStrategy, Unstable, Semistable, Stable, eliminate, partition, nthElement, sort, schwartzSort, partialSort, isSorted, makeIndex, schwartzMakeIndex, lowerBound, upperBound, equalRange, canFindSorted.

std.thread: fixed so it compiles with warnings enabled.

std.file: made getSize() faster under Linux.

std.random: fixed so it compiles with warnings enabled; improved function uniform so it deduces type generated from its arguments.

std.format: added fixes to make formatting work with const data.

std.path: minor documentation changes.
2008-02-19 07:00:56 +00:00
Brad Roberts
af2e404d90 fix two more final -> auto cases 2008-02-10 10:15:02 +00:00
Brad Roberts
09916d399a Initial merge of candidate to trunk for r459:513 2007-11-27 20:28:40 +00:00