def main(*argv): "SparseMatrixAsLinkedList test program." print SparseMatrixAsLinkedList.main.__doc__ mat = SparseMatrixAsLinkedList(6, 6) #Matrix.TestMatrix(mat) Matrix.testTranspose(mat) #Matrix.TestTimes(mat, mat) return 0
def main(*argv): "SparseMatrixAsVector test program." print SparseMatrixAsVector.main.__doc__ mat = SparseMatrixAsVector(6, 6, 12) #Matrix.TestMatrix(mat) Matrix.testTranspose(mat) Matrix.testTimes(mat, mat) return 0
def main(*argv): "SparseMatrixAsVector test program." print SparseMatrixAsVector.main.__doc__ mat = SparseMatrixAsVector(6, 6, 12) # Matrix.TestMatrix(mat) Matrix.testTranspose(mat) Matrix.testTimes(mat, mat) return 0
def main(*argv): "DenseMatrix test program" print DenseMatrix.main.__doc__ mat = DenseMatrix(6, 6) Matrix.test(mat) Matrix.testTranspose(mat) Matrix.testTimes(mat, mat) return 0