From ba73c7edc85ac1310d82920c5f432993f8a9af23 Mon Sep 17 00:00:00 2001
From: Norbert Preining <norbert@preining.info>
Date: Fri, 25 Aug 2023 03:00:47 +0000
Subject: CTAN sync 202308250300

---
 macros/luatex/latex/lualinalg/lualinalg.tex | 50 ++++++++++++++++++++++-------
 1 file changed, 38 insertions(+), 12 deletions(-)

(limited to 'macros/luatex/latex/lualinalg/lualinalg.tex')

diff --git a/macros/luatex/latex/lualinalg/lualinalg.tex b/macros/luatex/latex/lualinalg/lualinalg.tex
index a5c792be1d..784bac5199 100644
--- a/macros/luatex/latex/lualinalg/lualinalg.tex
+++ b/macros/luatex/latex/lualinalg/lualinalg.tex
@@ -1,7 +1,7 @@
 \documentclass{article}
 \usepackage{listings,color,parskip,booktabs,longtable,array,
 hyperref,multirow,multicol,url,amsmath,amssymb,framed,lualinalg,tikz,tikz-3dplot}
-\usepackage[top=1.1in, bottom=1.1in, left=1in, right=1in]{geometry}
+\usepackage[top=1in, bottom=1in, left=1in, right=1in]{geometry}
 \usetikzlibrary{calc,3d,arrows}
 \hypersetup{colorlinks,urlcolor=blue}
 \lstset{frame=none,
@@ -49,18 +49,17 @@ The \verb|lualinalg| package is released under the LaTeX Project Public License
 \vectorNew{v1}{{1,2,3,4,5,6}}
 \vectorNew{v2}{{3,6,lcomplex(6,6)}}
 \end{lstlisting}
-The standard vector of dimension \(n \) with \(i^{th}\)  coordinate \(1\) can be produced by using the following command.
-\begin{lstlisting}
-\vectorNew{e}{n,'e',i}
-\end{lstlisting}
-For example, the following commands
+The standard vector of dimension \(n \) with \(i^{th}\)  coordinate \(1\) and zero vectors can also be produced by using the command \verb|\vectorNew|. For example, the following commands
 \begin{lstlisting}
 \vectorNew{e_1}{3,'e',1}
 \(e_1=\left(\vectorPrint{e}\right)\)
+\vectorNew{O}{3,'zero'}
+\(O=\left(\vectorPrint{O}\right)\)
 \end{lstlisting}
 output to \vectorNew{e_1}{3,'e',1}
-\(e_1=\left(\vectorPrint{e_1}\right)\).
-
+\(e_1=\left(\vectorPrint{e_1}\right)\)
+\vectorNew{O}{3,'zero'}
+\(O=\left(\vectorPrint{O}\right)\)
 \subsection{Commands for operations on vectors}
 Table \ref{tbl:luavector} lists commands for operations on vectors. 
 \begin{longtable}{m{7cm}m{8.2cm}}
@@ -89,6 +88,13 @@ Sets  the \(i\)th coordinate of vector as \verb|val|. \\
 \end{lstlisting}&
 Defines a new vector \(v\) obtained by copying coordinates of vector \(w\). \\
 \midrule
+
+\begin{lstlisting}
+\vectorEql{v}{w}
+\end{lstlisting}&
+Returns true if \(v = w\), otherwise returns false. \\
+\midrule
+
 \begin{lstlisting}
 \vectorAdd{vector}{v1}{v2}
 \end{lstlisting}&
@@ -218,6 +224,12 @@ third coordinate of vector
 \\
 \midrule
 \begin{lstlisting}
+\vectorEql{z}{w}
+\end{lstlisting} &
+\vectorEql{z}{w}
+\\
+\midrule
+\begin{lstlisting}
 new third coordinate of vector
 \(z = \vectorSetCoordinate{z}{3}{9.3}\)
 \(z=\left(\vectorPrint{z}\right)\)
@@ -515,15 +527,18 @@ This command has two compulsory arguments: \verb|matrix name| and \verb|row entr
 \matrixNew{n}{{{1,2,3},{4,5,6},{7,8,10}}}
 \end{lstlisting}
 
-The identity matrix can be defined as well  by using  the \verb|\matrixNew| command. For example, the following commands 
+The identity and zero matrices can be defined as well  by using  the \verb|\matrixNew| command. For example, the following commands 
 \begin{lstlisting}
 \matrixNew{mtx}{3,'I'}
 I = \(\matrixPrint{mtx}\)
+\matrixNew{O}{3,4,'zero'}
+O = \(\matrixPrint{O}\)
 \end{lstlisting}
 output to 
 \matrixNew{mtx}{3,'I'}
-I = \(\matrixPrint{mtx}\)
-
+I = \(\matrixPrint{mtx}\) 
+\matrixNew{O}{3,4,'zero'}
+O = \(\matrixPrint{O}\)
 \subsection{Commands for operations on matrices}
 Table \ref{tbl:luamtxcmd} lists all commands for operations on matrices in the \verb|lualinalg| package. 
 \begin{longtable}{m{7cm}m{7.5cm}}
@@ -673,6 +688,13 @@ Defines a new matrix obtained by evaluating an expression. The expression suppor
 \end{lstlisting}&
 Defines a new matrix obtained by copying values from matrix1. \\
 \midrule
+
+\begin{lstlisting}
+\matrixEql{m1}{m2}
+\end{lstlisting}&
+Returns true if m1 = m2, otherwise returns false. \\
+\midrule
+
  \begin{lstlisting}
 \matrixCreateRandom
 {m}{i}{j}{k}{l}
@@ -922,7 +944,11 @@ Determinant of matrix \(m =\matrixDet{m}\)\\
 \end{lstlisting} &
 \matrixCopy{m12}{m}
 \(m12 = \matrixPrint{m12}\)\\
-
+\midrule
+\begin{lstlisting}
+\matrixEql{m12}{m}
+\end{lstlisting} &
+\matrixEql{m12}{m}\\
 \midrule
 \begin{lstlisting}
 trace of matrix  \( m = \matrixTrace{m}\)
-- 
cgit v1.2.3

