1
;; Copyright 2006 by Barton Willis
3
;; This is free software; you can redistribute it and/or
4
;; modify it under the terms of the GNU General Public License,
5
;; http://www.gnu.org/copyleft/gpl.html.
7
;; This software has NO WARRANTY, not even the implied warranty of
8
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
10
($put '$linalgextra 1 '$version)
12
(defun $circulant (lst)
13
($require_list lst "$first" "$circulant")
14
(let ((q) (n ($length lst)))
19
(setq lst `(,@(rest lst) ,(car lst)))
21
(setq q (mapcar #'(lambda(s) (cons '(mlist) s)) q))
24
(defun $cauchy_matrix (p &optional q)
25
($require_list p "$first" "$cauchy_matrix")
26
(if q ($require_list q "$second" "$cauchy_matrix") (setq q p))
33
(push (div 1 (add pj qj)) row))
34
(setq row (nreverse row))
37
(setq mat (nreverse mat))
38
(push '($matrix) mat)))