]> gitweb.michael.orlitzky.com - mjotex.git/commitdiff
Add \abs and \norm to mjo-linear_algebra.
authorMichael Orlitzky <michael@orlitzky.com>
Tue, 8 Mar 2016 21:30:20 +0000 (16:30 -0500)
committerMichael Orlitzky <michael@orlitzky.com>
Tue, 8 Mar 2016 21:30:20 +0000 (16:30 -0500)
mjo-linear_algebra.tex

index b077288f972598438c103427d082f14217a60d8f..955dd3a3347e4db45c5f251dba877a68acdd34a2 100644 (file)
@@ -2,11 +2,17 @@
 % Standard operations from linear algebra.
 %
 
-% Needed for \operatorname.
-\usepackage{amsopn}
+% Needed for \lvert, \rVert, etc. and \operatorname.
+\usepackage{amsmath}
 
 \input{mjo-common}
 
+% Absolute value (modulis) of a scalar.
+\newcommand*{\abs}[1]{ \left\lvert {#1} \right\rvert }
+
+% Norm of a vector.
+\newcommand*{\norm}[1]{ \left\lVert {#1} \right\rVert }
+
 % The inner product between its two arguments.
 \newcommand*{\ip}[2]{ \langle {#1}, {#2} \rangle }