Mercurial > hg > jslab
annotate src/samer/maths/Mat.java @ 0:bf79fb79ee13
Initial Mercurial check in.
author | samer |
---|---|
date | Tue, 17 Jan 2012 17:50:20 +0000 |
parents | |
children |
rev | line source |
---|---|
samer@0 | 1 /* |
samer@0 | 2 * Mat.java |
samer@0 | 3 * |
samer@0 | 4 * Copyright (c) 2000, Samer Abdallah, King's College London. |
samer@0 | 5 * All rights reserved. |
samer@0 | 6 * |
samer@0 | 7 * This software is provided AS iS and WITHOUT ANY WARRANTY; |
samer@0 | 8 * without even the implied warranty of MERCHANTABILITY or |
samer@0 | 9 * FITNESS FOR A PARTICULAR PURPOSE. |
samer@0 | 10 */ |
samer@0 | 11 |
samer@0 | 12 package samer.maths; |
samer@0 | 13 |
samer@0 | 14 /** |
samer@0 | 15 This is an interface for an element-wise addressable |
samer@0 | 16 matrix. Not generally used for computation, but for |
samer@0 | 17 user interface purposes. |
samer@0 | 18 */ |
samer@0 | 19 |
samer@0 | 20 public interface Mat { |
samer@0 | 21 |
samer@0 | 22 int width(); |
samer@0 | 23 int height(); |
samer@0 | 24 double get(int i, int j); |
samer@0 | 25 void set(int i, int j, double t); |
samer@0 | 26 } |
samer@0 | 27 |