From: Michael Orlitzky Date: Tue, 8 Mar 2016 21:30:20 +0000 (-0500) Subject: Add \abs and \norm to mjo-linear_algebra. X-Git-Tag: posZ-submitted-laa~55 X-Git-Url: http://gitweb.michael.orlitzky.com/?p=mjotex.git;a=commitdiff_plain;h=ec4f08ce7089e080f8f1afd7d566d400651dfbca Add \abs and \norm to mjo-linear_algebra. --- diff --git a/mjo-linear_algebra.tex b/mjo-linear_algebra.tex index b077288..955dd3a 100644 --- a/mjo-linear_algebra.tex +++ b/mjo-linear_algebra.tex @@ -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 }