Function: calcFunc-arrange
calcFunc-arrange is an autoloaded and byte-compiled function defined
in calc-vec.el.gz.
Signature
(calcFunc-arrange VEC COLS)
Source Code
;; Defined in /usr/src/emacs/lisp/calc/calc-vec.el.gz
(defun calcFunc-arrange (vec cols) ; [Public]
(setq cols (math-check-fixnum cols t))
(if (math-vectorp vec)
(let* ((flat (math-flatten-vector vec))
(mat (list 'vec))
next)
(if (<= cols 0)
(nconc mat flat)
(while (>= (length flat) cols)
(setq next (nthcdr cols flat))
(setcdr (nthcdr (1- cols) flat) nil)
(setq mat (nconc mat (list (cons 'vec flat)))
flat next))
(if flat
(setq mat (nconc mat (list (cons 'vec flat)))))
mat))))