From: Simon Ruderich Date: Fri, 3 Jun 2011 09:27:10 +0000 (+0200) Subject: maxima: Add function lu() as short for lu factorization. X-Git-Url: https://ruderich.org/simon/gitweb/?a=commitdiff_plain;h=92fe3d7f15820a18aab6ff7d3cc4d87b6b9ae6cb;p=config%2Fdotfiles.git maxima: Add function lu() as short for lu factorization. --- diff --git a/maxima/maxima-init.mac b/maxima/maxima-init.mac index 438989f..df7c66b 100644 --- a/maxima/maxima-init.mac +++ b/maxima/maxima-init.mac @@ -17,4 +17,7 @@ load (descriptive); * matrices. */ norm_2(x) := sqrt(maxi(eigenvalues(transpose(x) . x)[1])); +/* Shortcut to perform lu factorization. */ +lu(x) := block(x : lu_factor(x), get_lu_factors(x)); + /* vim: ft=maxima */