From d478587b707e0e537e64be68172129334884d48a Mon Sep 17 00:00:00 2001 From: OLSSON Hans Date: Mon, 20 Jun 2022 09:55:54 +0200 Subject: [PATCH] RandomTest --- chapters/arrays.tex | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/chapters/arrays.tex b/chapters/arrays.tex index 3aefde960..6438924ca 100644 --- a/chapters/arrays.tex +++ b/chapters/arrays.tex @@ -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} @@ -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