Skip to content
This repository has been archived by the owner on Feb 25, 2023. It is now read-only.

Commit

Permalink
Added matrix type.
Browse files Browse the repository at this point in the history
  • Loading branch information
tpapp committed Jan 30, 2013
1 parent 074cc57 commit 7fe3261
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/general.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@

;;; shorthand functions

(deftype matrix (&optional element-type nrow ncol)
"Matrix type (shorthand for a rank 2 array)."
`(array ,element-type (,nrow ,ncol)))

(declaim (inline size rank dim dims nrow ncol))

(defun size (array)
Expand Down
1 change: 1 addition & 0 deletions src/package.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
#:walk-subscripts
#:walk-subscripts-list)
(:export ; general
#:matrix
#:size
#:rank
#:dim
Expand Down

0 comments on commit 7fe3261

Please sign in to comment.