From 6d481c64e763db4eb96094edfa6ec0b80cb5557d Mon Sep 17 00:00:00 2001 From: asivache Date: Mon, 16 Mar 2009 21:56:45 +0000 Subject: [PATCH] just a square matrix of arbitrary stuff; the stuff must be full fledged Java type, however, not a primitive type. Hooray Java! git-svn-id: file:///humgen/gsa-scr1/gsa-engineering/svn_contents/trunk@70 348d0f76-0448-11de-a6fe-93d51630548a --- .../broadinstitute/sting/indels/Matrix.java | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100755 playground/java/src/org/broadinstitute/sting/indels/Matrix.java diff --git a/playground/java/src/org/broadinstitute/sting/indels/Matrix.java b/playground/java/src/org/broadinstitute/sting/indels/Matrix.java new file mode 100755 index 000000000..aeca77dec --- /dev/null +++ b/playground/java/src/org/broadinstitute/sting/indels/Matrix.java @@ -0,0 +1,22 @@ +package org.broadinstitute.sting.indels; + +public class Matrix { + private int size; + private Object [][] data; + + public Matrix(int n) { + size = n; + data = new Object[n][n]; + } + + @SuppressWarnings("unchecked") + public T get(int i, int j) { + assert (i