001 package com.croftsoft.core.math.matrix; 002 003 /*********************************************************************** 004 * Accessor interface for a matrix of doubles. 005 * 006 * @version 007 * $Id: Matrix.java,v 1.3 2008/05/09 18:35:55 croft Exp $ 008 * @since 009 * 2008-04-25 010 * @author 011 * <a href="https://www.croftsoft.com/">David Wallace Croft</a> 012 ***********************************************************************/ 013 014 public interface Matrix 015 //////////////////////////////////////////////////////////////////////// 016 //////////////////////////////////////////////////////////////////////// 017 { 018 019 MatrixMut copy ( ); 020 021 double get ( int row, int column ); 022 023 int getColumnCount ( ); 024 025 int getRowCount ( ); 026 027 boolean isIdentity ( ); 028 029 boolean isSquare ( ); 030 031 boolean matches ( Matrix matrix ); 032 033 boolean matches ( 034 Matrix matrix, 035 double tolerance ); 036 037 MatrixMut multiply ( Matrix matrix ); 038 039 MatrixMut multiply ( double scalar ); 040 041 MatrixMut transpose ( ); 042 043 //////////////////////////////////////////////////////////////////////// 044 //////////////////////////////////////////////////////////////////////// 045 }