Skip to content

Commit

Permalink
RandomTest
Browse files Browse the repository at this point in the history
  • Loading branch information
HansOlsson committed Jun 20, 2022
1 parent 7aa616d commit d478587
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions chapters/arrays.tex
Expand Up @@ -1069,10 +1069,10 @@ \subsection{Equality and Assignment}\label{equality-and-assignment}
\hline
\tablehead{Size of \lstinline!a!} & \tablehead{Size of \lstinline!b!} & \tablehead{Size of \lstinline!a = b!} & \tablehead{Operation}\\
\hline
Scalar & Scalar & Scalar & \lstinline!a = b!\\
$n$-vector & $n$-vector & $n$-vector & \lstinline!a[$j$] = b[$j$]!\\
$n \times m$ matrix & $n \times m$ matrix & $n \times m$ matrix & \lstinline!a[$j$, $k$] = b[$j$, $k$]!\\
$n \times m \times \ldots$ & $n \times m \times \ldots$ & $n \times m \times \ldots$ & \lstinline!a[$j$, $k$, $\ldots$] = b[$j$, $k$, $\ldots$]!\\
Scalar & Scalar & Scalar & a = b\\
$n$-vector & $n$-vector & $n$-vector & a\[$j$\] = b\[$j$\]\\
$n \times m$ matrix & $n \times m$ matrix & $n \times m$ matrix & a\[$j$, $k$\] = b\[$j$, $k$\]\\
$n \times m \times \ldots$ & $n \times m \times \ldots$ & $n \times m \times \ldots$ & a\[$j$, $k$, $\ldots$\] = b\[$j$, $k$, $\ldots$\]\\
\hline
\end{tabular}
\end{center}
Expand All @@ -1097,8 +1097,8 @@ \subsection{Addition, Subtraction, and String Concatenation}\label{array-element
Operation \lstinline!c := a $\pm$ b!\\
\hline
\hline
Scalar & Scalar & Scalar & \lstinline!c := a $\pm$ b!\\
$n$-vector & $n$-vector & $n$-vector & \lstinline!c[$j$] := a[$j$] $\pm$ b[$j$]!\\
Scalar & Scalar & Scalar & \lstinline!c := a $\pm$ b! \\
$n$-vector & $n$-vector & $n$-vector & \lstinline!c[$j$] := a[$j$] $\pm$ b[$j$]! Test\\
$n \times m$ matrix & $n \times m$ matrix & $n \times m$ matrix & \lstinline!c[$j$, $k$] := a[$j$, $k$] $\pm$ b[$j$, $k$]!\\
$n \times m \times \ldots$ & $n \times m \times \ldots$ & $n \times m \times \ldots$ & \lstinline!c[$j$, $k$, $\ldots$] := a[$j$, $k$, $\ldots$] $\pm$ b[$j$, $k$, $\ldots$]!\\
\hline
Expand Down

0 comments on commit d478587

Please sign in to comment.