@@ -106,8 +106,8 @@ The `MallocArray` type is one way to do that.
106106using StaticTools
107107function times_table (argc:: Int , argv:: Ptr{Ptr{UInt8}} )
108108 argc == 3 || return printf (c " Incorrect number of command-line arguments\n " )
109- rows = parse (Int64, argv, 2 ) # First command-line argument
110- cols = parse (Int64, argv, 3 ) # Second command-line argument
109+ rows = argparse (Int64, argv, 2 ) # First command-line argument
110+ cols = argparse (Int64, argv, 3 ) # Second command-line argument
111111
112112 M = MallocArray {Int64} (undef, rows, cols)
113113 @inbounds for i= 1 : rows
@@ -146,8 +146,8 @@ These `MallocArray`s can be `reshape`d and `reinterpret`ed without causing any
146146``` julia
147147julia> function times_table (argc:: Int , argv:: Ptr{Ptr{UInt8}} )
148148 argc == 3 || return printf (c " Incorrect number of command-line arguments\n " )
149- rows = parse (Int64, argv, 2 ) # First command-line argument
150- cols = parse (Int64, argv, 3 ) # Second command-line argument
149+ rows = argparse (Int64, argv, 2 ) # First command-line argument
150+ cols = argparse (Int64, argv, 3 ) # Second command-line argument
151151
152152 M = MallocArray {Int64} (undef, rows, cols)
153153 @inbounds for i= 1 : rows
@@ -211,8 +211,8 @@ shell> ./stack_times_table
211211``` julia
212212julia> function rand_matrix (argc:: Int , argv:: Ptr{Ptr{UInt8}} )
213213 argc == 3 || return printf (stderrp (), c " Incorrect number of command-line arguments\n " )
214- rows = parse (Int64, argv, 2 ) # First command-line argument
215- cols = parse (Int64, argv, 3 ) # Second command-line argument
214+ rows = argparse (Int64, argv, 2 ) # First command-line argument
215+ cols = argparse (Int64, argv, 3 ) # Second command-line argument
216216
217217 rng = static_rng ()
218218
263263
264264function loopvec_matrix (argc:: Int , argv:: Ptr{Ptr{UInt8}} )
265265 argc == 3 || return printf (stderrp (), c " Incorrect number of command-line arguments\n " )
266- rows = parse (Int64, argv, 2 ) # First command-line argument
267- cols = parse (Int64, argv, 3 ) # Second command-line argument
266+ rows = argparse (Int64, argv, 2 ) # First command-line argument
267+ cols = argparse (Int64, argv, 3 ) # Second command-line argument
268268
269269 # LHS
270270 A = MallocArray {Float64} (undef, rows, cols)
0 commit comments