;;; Lisplab, matrix1-interface.lisp ;;; Level1, the interface for the matrix methods ;;; Copyright (C) 2009 Joern Inge Vestgaarden ;;; ;;; This program is free software; you can redistribute it and/or modify ;;; it under the terms of the GNU General Public License as published by ;;; the Free Software Foundation; either version 2 of the License, or ;;; (at your option) any later version. ;;; ;;; This program is distributed in the hope that it will be useful, ;;; but WITHOUT ANY WARRANTY; without even the implied warranty of ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ;;; GNU General Public License for more details. ;;; ;;; You should have received a copy of the GNU General Public License along ;;; with this program; if not, write to the Free Software Foundation, Inc., ;;; 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. (in-package :lisplab) (defgeneric make-matrix-instance (type dim value) (:documentation "Creates a new matrix instance")) (defgeneric ref (matrix &rest subscripts) (:documentation "A general accessor.")) (defgeneric (setf ref) (value matrix &rest subscripts)) (defgeneric mref (matrix row col) (:documentation "Matrix accessor.")) (defgeneric (setf mref) (value matrix row col)) (defgeneric rows (matrix) (:documentation "The number of rows, ie (dim 0).")) (defgeneric (setf rows) (value matrix)) (defgeneric cols (matrix) (:documentation "The number of columns, ie (dim 1).")) (defgeneric (setf cols) (value matrix))