]> git.llucax.com Git - z.facultad/75.12/ejercicios.git/blob - gen_mat.sh
Se expanden keywords del svn.
[z.facultad/75.12/ejercicios.git] / gen_mat.sh
1 #!/bin/sh
2
3 n=$1
4
5 # Genera T para n.
6 for (( i=0; i < n; i++ )); do
7     for (( j=0; j < n; j++ )); do
8         if (( i==j )); then
9             ./gen_t.sh $n
10         else
11             if (( i==j-1 )); then
12                 ./gen_i.sh $n
13             else
14                 if (( j==i-1 )); then
15                     ./gen_i.sh $n
16                 else
17                     ./gen_0.sh $n
18                 fi
19             fi
20         fi
21     done
22     echo
23 done