toctave.m - numeric - C++ library with numerical algorithms
(HTM) git clone git://src.adamsgaard.dk/numeric
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) LICENSE
---
toctave.m (232B)
---
1 #/usr/bin/octave -q -f --no-window-system
2
3 if (nargin > 0)
4 N = str2num(argv(){1});
5 else
6 disp("Sorry, I need the matrix size as a command line argument");
7 exit(1);
8 end
9
10 A = ones(N,N) * 2.0;
11 B = reshape(0:N*N-1, N, N);
12 C = A*B;