Skip to content

Commit 4e8db17

Browse files
author
Michael Fox
committedDec 8, 2013
Merge remote-tracking branch 'upstream/master'
* upstream/master: (53 commits) edit embedding chapter formatting fixes Fix JuliaLang#5056 more consitent/useful description of predicate in ie all() NEWS for JuliaLang#4042 Add sparse matvec to perf benchmark (#4707) Use warn_once instead of warn (JuliaLang#5038) Use warn() instead of println in base/sprase/sparsematrix.jl allow scale(b,A) or scale(A,b) when b is a scalar as well as a vector, don't restrict scale unnecessarily to arrays of numbers (e.g. scaling arrays of arrays should work), and improve documentation for scale\! Added section about memory management added negative bitarray rolling More accurate linspace for types with greater precision than Float64 add realmin realmax for BigFloat fix eps(realmax), add typemin and typemax for BigFloat fix JuliaLang#5025, ordering used by nextfloat/prevfloat roll back on errors during type definitions. fixes JuliaLang#5009 improve method signature errors. fixes JuliaLang#5018 update juliadoc add more asserts for casts Fix segfaulting on strstr() failure ...
2 parents 54ddd9d + 05b0d5e commit 4e8db17

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+1398
-437
lines changed
 

‎NEWS.md

+2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ Julia v0.3.0 Release Notes
44
New language features
55
---------------------
66

7+
* Greatly enhanced performance for passing and returning tuples ([#4042]).
8+
79
New library functions
810
---------------------
911

‎base/array.jl

+2-1
Original file line numberDiff line numberDiff line change
@@ -234,8 +234,9 @@ function linspace(start::Real, stop::Real, n::Integer)
234234
return a
235235
end
236236
n -= 1
237+
S = promote_type(T, Float64)
237238
for i=0:n
238-
a[i+1] = start*((n-i)/n) + stop*(i/n)
239+
a[i+1] = start*(convert(S, (n-i))/n) + stop*(convert(S, i)/n)
239240
end
240241
a
241242
end

0 commit comments

Comments
 (0)