@@ -564,10 +564,10 @@ Any[
564
564
565
565
" ),
566
566
567
- (" Base" ," fieldtype" ," fieldtype(value , name::Symbol)
567
+ (" Base" ," fieldtype" ," fieldtype(type , name::Symbol | index::Int )
568
568
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.
571
571
572
572
" ),
573
573
@@ -1801,15 +1801,15 @@ Any[
1801
1801
1802
1802
(" Base" ," is_valid_ascii" ," is_valid_ascii(s) -> Bool
1803
1803
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.
1806
1806
1807
1807
" ),
1808
1808
1809
1809
(" Base" ," is_valid_utf8" ," is_valid_utf8(s) -> Bool
1810
1810
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.
1813
1813
1814
1814
" ),
1815
1815
@@ -2173,9 +2173,9 @@ Any[
2173
2173
(" Base" ," isspace" ," isspace(c::Union(Char, String)) -> Bool
2174
2174
2175
2175
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
2179
2179
string.
2180
2180
2181
2181
" ),
@@ -2246,7 +2246,8 @@ Any[
2246
2246
2247
2247
(" Base" ," is_valid_utf16" ," is_valid_utf16(s) -> Bool
2248
2248
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.
2250
2251
2251
2252
" ),
2252
2253
@@ -3208,11 +3209,11 @@ Any[
3208
3209
3209
3210
(" Base" ," writedlm" ," writedlm(f, A, delim='t')
3210
3211
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\" ).
3216
3217
3217
3218
For example, two vectors \" x\" and \" y\" of the same length can be
3218
3219
written as two columns of tab-delimited text to \" f\" by either
@@ -3603,28 +3604,30 @@ popdisplay(d::Display)
3603
3604
3604
3605
" ),
3605
3606
3606
- (" Base" ," div" ," div(a, b )
3607
- ÷(a, b )
3607
+ (" Base" ," div" ," div(x, y )
3608
+ ÷(x, y )
3608
3609
3609
- Compute a/b, truncating to an integer.
3610
+ The quotient from Euclidean division. Computes \" x/y\" , truncated
3611
+ to an integer.
3610
3612
3611
3613
" ),
3612
3614
3613
- (" Base" ," fld" ," fld(a, b )
3615
+ (" Base" ," fld" ," fld(x, y )
3614
3616
3615
- Largest integer less than or equal to a/b .
3617
+ Largest integer less than or equal to \" x/y \" .
3616
3618
3617
3619
" ),
3618
3620
3619
- (" Base" ," cld" ," cld(a, b )
3621
+ (" Base" ," cld" ," cld(x, y )
3620
3622
3621
- Smallest integer larger than or equal to a/b .
3623
+ Smallest integer larger than or equal to \" x/y \" .
3622
3624
3623
3625
" ),
3624
3626
3625
- (" Base" ," mod" ," mod(x, m )
3627
+ (" Base" ," mod" ," mod(x, y )
3626
3628
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.
3628
3631
3629
3632
" ),
3630
3633
@@ -3639,21 +3642,19 @@ popdisplay(d::Display)
3639
3642
3640
3643
" ),
3641
3644
3642
- (" Base" ," rem" ," rem(x, m)
3645
+ (" Base" ," rem" ," rem(x, y)
3646
+ %(x, y)
3643
3647
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.
3645
3651
3646
3652
" ),
3647
3653
3648
3654
(" Base" ," divrem" ," divrem(x, y)
3649
3655
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)\" .
3657
3658
3658
3659
" ),
3659
3660
@@ -5681,10 +5682,9 @@ popdisplay(d::Display)
5681
5682
5682
5683
Reseed the random number generator. If a \" seed\" is provided, the
5683
5684
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.
5688
5688
5689
5689
" ),
5690
5690
@@ -5696,38 +5696,16 @@ popdisplay(d::Display)
5696
5696
5697
5697
" ),
5698
5698
5699
- (" Base" ," rand" ," rand() -> Float64
5699
+ (" Base" ," rand" ," rand([rng][, t::Type][, dims...])
5700
5700
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\" .
5702
5703
5703
5704
" ),
5704
5705
5705
5706
(" Base" ," rand!" ," rand!([rng], A)
5706
5707
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.
5731
5709
5732
5710
" ),
5733
5711
@@ -5738,14 +5716,14 @@ popdisplay(d::Display)
5738
5716
5739
5717
" ),
5740
5718
5741
- (" Base" ," randbool" ," randbool([dims...])
5719
+ (" Base" ," randbool" ," randbool([rng][, dims...])
5742
5720
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.
5745
5723
5746
5724
" ),
5747
5725
5748
- (" Base" ," randn" ," randn([rng], dims or [ dims...])
5726
+ (" Base" ," randn" ," randn([rng][, dims...])
5749
5727
5750
5728
Generate a normally-distributed random number with mean 0 and
5751
5729
standard deviation 1. Optionally generate an array of normally-
@@ -6070,9 +6048,22 @@ popdisplay(d::Display)
6070
6048
6071
6049
" ),
6072
6050
6073
- (" Base" ," cat" ," cat(dim , A...)
6051
+ (" Base" ," cat" ," cat(dims , A...)
6074
6052
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.
6076
6067
6077
6068
" ),
6078
6069
@@ -11489,6 +11480,16 @@ Millisecond(v)
11489
11480
11490
11481
" ),
11491
11482
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
+
11492
11493
11493
11494
(" Base" ," sort!" ," sort!(v, [alg=<algorithm>,] [by=<transform>,] [lt=<comparison>,] [rev=false])
11494
11495
@@ -11759,7 +11760,39 @@ Millisecond(v)
11759
11760
\" A\" . This includes zeros that are explicitly stored in the sparse
11760
11761
matrix. The returned vector points directly to the internal nonzero
11761
11762
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
11763
11796
11764
11797
" ),
11765
11798
0 commit comments