tjulia.jl - numeric - C++ library with numerical algorithms
(HTM) git clone git://src.adamsgaard.dk/numeric
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) LICENSE
---
tjulia.jl (237B)
---
1 #!/usr/bin/env julia
2
3 if (length(ARGS) == 1)
4 const N = parse(Int, ARGS[1])
5 else
6 println("Sorry, I need the matrix width as a command line argument\n")
7 end
8
9 const A = ones(N, N)*2.0
10 const B = reshape(0.0:N*N-1, N, N)
11 @profile C = A*B