Skip to content

Commit 53254c2

Browse files
committedNov 1, 2014
update helpdb.jl
1 parent a6b4540 commit 53254c2

File tree

1 file changed

+104
-71
lines changed

1 file changed

+104
-71
lines changed
 

Diff for: ‎doc/helpdb.jl

+104-71
Original file line numberDiff line numberDiff line change
@@ -564,10 +564,10 @@ Any[
564564
565565
"),
566566

567-
("Base","fieldtype","fieldtype(value, name::Symbol)
567+
("Base","fieldtype","fieldtype(type, name::Symbol | index::Int)
568568
569-
Determine the declared type of a named field in a value of
570-
composite type.
569+
Determine the declared type of a field (specified by name or index)
570+
in a composite type.
571571
572572
"),
573573

@@ -1801,15 +1801,15 @@ Any[
18011801

18021802
("Base","is_valid_ascii","is_valid_ascii(s) -> Bool
18031803
1804-
Returns true if the string or byte vector is valid ASCII, false
1805-
otherwise.
1804+
Returns true if the argument (\"ASCIIString\", \"UTF8String\", or
1805+
byte vector) is valid ASCII, false otherwise.
18061806
18071807
"),
18081808

18091809
("Base","is_valid_utf8","is_valid_utf8(s) -> Bool
18101810
1811-
Returns true if the string or byte vector is valid UTF-8, false
1812-
otherwise.
1811+
Returns true if the argument (\"ASCIIString\", \"UTF8String\", or
1812+
byte vector) is valid UTF-8, false otherwise.
18131813
18141814
"),
18151815

@@ -2173,9 +2173,9 @@ Any[
21732173
("Base","isspace","isspace(c::Union(Char, String)) -> Bool
21742174
21752175
Tests whether a character is any whitespace character. Includes
2176-
ASCII characters 't', 'n', 'v', 'f', 'r', and ' ', Latin-1
2177-
character U+0085, and characters in Unicode category Zs. For
2178-
strings, tests whether this is true for all elements of the
2176+
ASCII characters '\\t', '\\n', '\\v', '\\f', '\\r', and ' ',
2177+
Latin-1 character U+0085, and characters in Unicode category Zs.
2178+
For strings, tests whether this is true for all elements of the
21792179
string.
21802180
21812181
"),
@@ -2246,7 +2246,8 @@ Any[
22462246

22472247
("Base","is_valid_utf16","is_valid_utf16(s) -> Bool
22482248
2249-
Returns true if the string or \"Uint16\" array is valid UTF-16.
2249+
Returns true if the argument (\"UTF16String\" or \"Uint16\" array)
2250+
is valid UTF-16.
22502251
22512252
"),
22522253

@@ -3208,11 +3209,11 @@ Any[
32083209

32093210
("Base","writedlm","writedlm(f, A, delim='t')
32103211
3211-
Write \"A\" (a vector, matrix or an iterable collection of
3212-
iterable rows) as text to \"f\" (either a filename string or an
3213-
\"IO\" stream) using the given delimeter \"delim\" (which defaults
3214-
to tab, but can be any printable Julia object, typically a \"Char\"
3215-
or \"String\").
3212+
Write \"A\" (a vector, matrix or an iterable collection of iterable
3213+
rows) as text to \"f\" (either a filename string or an \"IO\"
3214+
stream) using the given delimeter \"delim\" (which defaults to tab,
3215+
but can be any printable Julia object, typically a \"Char\" or
3216+
\"String\").
32163217
32173218
For example, two vectors \"x\" and \"y\" of the same length can be
32183219
written as two columns of tab-delimited text to \"f\" by either
@@ -3603,28 +3604,30 @@ popdisplay(d::Display)
36033604
36043605
"),
36053606

3606-
("Base","div","div(a, b)
3607-
÷(a, b)
3607+
("Base","div","div(x, y)
3608+
÷(x, y)
36083609
3609-
Compute a/b, truncating to an integer.
3610+
The quotient from Euclidean division. Computes \"x/y\", truncated
3611+
to an integer.
36103612
36113613
"),
36123614

3613-
("Base","fld","fld(a, b)
3615+
("Base","fld","fld(x, y)
36143616
3615-
Largest integer less than or equal to a/b.
3617+
Largest integer less than or equal to \"x/y\".
36163618
36173619
"),
36183620

3619-
("Base","cld","cld(a, b)
3621+
("Base","cld","cld(x, y)
36203622
3621-
Smallest integer larger than or equal to a/b.
3623+
Smallest integer larger than or equal to \"x/y\".
36223624
36233625
"),
36243626

3625-
("Base","mod","mod(x, m)
3627+
("Base","mod","mod(x, y)
36263628
3627-
Modulus after division, returning in the range [0,m).
3629+
Modulus after division, returning in the range [0,``y``), if \"y\"
3630+
is positive, or (\"y\",0] if \"y\" is negative.
36283631
36293632
"),
36303633

@@ -3639,21 +3642,19 @@ popdisplay(d::Display)
36393642
36403643
"),
36413644

3642-
("Base","rem","rem(x, m)
3645+
("Base","rem","rem(x, y)
3646+
%(x, y)
36433647
3644-
Remainder after division.
3648+
Remainder from Euclidean division, returning a value of the same
3649+
sign as``x``, and smaller in magnitude than \"y\". This value is
3650+
always exact.
36453651
36463652
"),
36473653

36483654
("Base","divrem","divrem(x, y)
36493655
3650-
Returns \"(x/y, x%y)\".
3651-
3652-
"),
3653-
3654-
("Base","%","%(x, m)
3655-
3656-
Remainder after division. The operator form of \"rem\".
3656+
The quotient and remainder from Euclidean division. Equivalent to
3657+
\"(x÷y, x%y)\".
36573658
36583659
"),
36593660

@@ -5681,10 +5682,9 @@ popdisplay(d::Display)
56815682
56825683
Reseed the random number generator. If a \"seed\" is provided, the
56835684
RNG will give a reproducible sequence of numbers, otherwise Julia
5684-
will get entropy from the system. The \"seed\" may be an unsigned
5685-
integer, a vector of unsigned integers or a filename, in which case
5686-
the seed is read from a file. If the argument \"rng\" is not
5687-
provided, the default global RNG is seeded.
5685+
will get entropy from the system. The \"seed\" may be a non-
5686+
negative integer, a vector of \"Uint32\" integers or a filename, in
5687+
which case the seed is read from a file.
56885688
56895689
"),
56905690

@@ -5696,38 +5696,16 @@ popdisplay(d::Display)
56965696
56975697
"),
56985698

5699-
("Base","rand","rand() -> Float64
5699+
("Base","rand","rand([rng][, t::Type][, dims...])
57005700
5701-
Generate a \"Float64\" random number uniformly in [0,1)
5701+
Generate a random value or an array of random values of the given
5702+
type, \"t\", which defaults to \"Float64\".
57025703
57035704
"),
57045705

57055706
("Base","rand!","rand!([rng], A)
57065707
5707-
Populate the array A with random number generated from the
5708-
specified RNG.
5709-
5710-
"),
5711-
5712-
("Base","rand","rand(rng::AbstractRNG[, dims...])
5713-
5714-
Generate a random \"Float64\" number or array of the size specified
5715-
by dims, using the specified RNG object. Currently,
5716-
\"MersenneTwister\" is the only available Random Number Generator
5717-
(RNG), which may be seeded using srand.
5718-
5719-
"),
5720-
5721-
("Base","rand","rand(dims or [dims...])
5722-
5723-
Generate a random \"Float64\" array of the size specified by dims
5724-
5725-
"),
5726-
5727-
("Base","rand","rand(t::Type[, dims...])
5728-
5729-
Generate a random number or array of random numbes of the given
5730-
type.
5708+
Populate the array A with random values.
57315709
57325710
"),
57335711

@@ -5738,14 +5716,14 @@ popdisplay(d::Display)
57385716
57395717
"),
57405718

5741-
("Base","randbool","randbool([dims...])
5719+
("Base","randbool","randbool([rng][, dims...])
57425720
5743-
Generate a random boolean value. Optionally, generate an array of
5744-
random boolean values.
5721+
Generate a random boolean value. Optionally, generate a
5722+
\"BitArray\" of random boolean values.
57455723
57465724
"),
57475725

5748-
("Base","randn","randn([rng], dims or [dims...])
5726+
("Base","randn","randn([rng][, dims...])
57495727
57505728
Generate a normally-distributed random number with mean 0 and
57515729
standard deviation 1. Optionally generate an array of normally-
@@ -6070,9 +6048,22 @@ popdisplay(d::Display)
60706048
60716049
"),
60726050

6073-
("Base","cat","cat(dim, A...)
6051+
("Base","cat","cat(dims, A...)
60746052
6075-
Concatenate the input arrays along the specified dimension
6053+
Concatenate the input arrays along the specified dimensions in the
6054+
iterable \"dims\". For dimensions not in \"dims\", all input arrays
6055+
should have the same size, which will also be the size of the
6056+
output array along that dimension. For dimensions in \"dims\", the
6057+
size of the output array is the sum of the sizes of the input
6058+
arrays along that dimension. If \"dims\" is a single number, the
6059+
different arrays are tightly stacked along that dimension. If
6060+
\"dims\" is an iterable containing several dimensions, this allows
6061+
to construct block diagonal matrices and their higher-dimensional
6062+
analogues by simultaneously increasing several dimensions for every
6063+
new input array and putting zero blocks elsewhere. For example,
6064+
*cat([1,2], matrices...)* builds a block diagonal matrix, i.e. a
6065+
block matrix with *matrices[1]*, *matrices[2]*, ... as diagonal
6066+
blocks and matching zero blocks away from the diagonal.
60766067
60776068
"),
60786069

@@ -11489,6 +11480,16 @@ Millisecond(v)
1148911480
1149011481
"),
1149111482

11483+
("Base.Profile","clear_malloc_data","clear_malloc_data()
11484+
11485+
Clears any stored memory allocation data when running julia with \"
11486+
--track-allocation\". Execute the command(s) you want to test (to
11487+
force JIT-compilation), then call \"clear_malloc_data()\". Then
11488+
execute your command(s) again, quit julia, and examine the
11489+
resulting \"*.mem\" files.
11490+
11491+
"),
11492+
1149211493

1149311494
("Base","sort!","sort!(v, [alg=<algorithm>,] [by=<transform>,] [lt=<comparison>,] [rev=false])
1149411495
@@ -11759,7 +11760,39 @@ Millisecond(v)
1175911760
\"A\". This includes zeros that are explicitly stored in the sparse
1176011761
matrix. The returned vector points directly to the internal nonzero
1176111762
storage of \"A\", and any modifications to the returned vector will
11762-
mutate \"A\" as well.
11763+
mutate \"A\" as well. See \"rowvals(A)\" and \"nzrange(A, col)\".
11764+
11765+
"),
11766+
11767+
("Base","rowvals","rowvals(A)
11768+
11769+
Return a vector of the row indices of \"A\", and any modifications
11770+
to the returned vector will mutate \"A\" as well. Given the
11771+
internal storage format of sparse matrices, providing access to how
11772+
the row indices are stored internally can be useful in conjuction
11773+
with iterating over structural nonzero values. See \"nonzeros(A)\"
11774+
and \"nzrange(A, col)\".
11775+
11776+
"),
11777+
11778+
("Base","nzrange","nzrange(A, col)
11779+
11780+
Return the range of indices to the structural nonzero values of a
11781+
sparse matrix column. In conjunction with \"nonzeros(A)\" and
11782+
\"rowvals(A)\", this allows for convenient iterating over a sparse
11783+
matrix
11784+
11785+
A = sparse(I,J,V)
11786+
rows = rowvals(A)
11787+
vals = nonzeros(A)
11788+
m, n = size(A)
11789+
for i = 1:n
11790+
for j in nzrange(A, i)
11791+
row = rows[j]
11792+
val = vals[j]
11793+
# perform sparse wizardry...
11794+
end
11795+
end
1176311796
1176411797
"),
1176511798

0 commit comments

Comments
 (0)
Please sign in to comment.