From 92fe3d7f15820a18aab6ff7d3cc4d87b6b9ae6cb Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Fri, 3 Jun 2011 11:27:10 +0200 Subject: [PATCH] maxima: Add function lu() as short for lu factorization. --- maxima/maxima-init.mac | 3 +++ 1 file changed, 3 insertions(+) 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 */ -- 2.45.2