Skip to content

Instantly share code, notes, and snippets.

@OzTamir
OzTamir / matrix.py
Last active August 29, 2015 13:57 — forked from metula/matrix.py
Represent a picture matrix - grayscale and colours!
#############################################################################
######### class Matrix with display() function for image visualization
#############################################################################
class Matrix:
"""
Represents a rectangular matrix with n rows and m columns.
"""
def __init__(self, n, m, val=0):