Skip to content

Instantly share code, notes, and snippets.

@mwmajew
Created March 29, 2017 16:04
Show Gist options
  • Save mwmajew/b4c1b12995ac939c5048df89607283cd to your computer and use it in GitHub Desktop.
Save mwmajew/b4c1b12995ac939c5048df89607283cd to your computer and use it in GitHub Desktop.
examplary output matrix task
m1 = Matrix([[1,1],[2,2]])
#
print m1
#result:
#
#| 1 1 |
#| 2 2 |
m2 = Matrix([[1,1],[1,1]])
m3 = m1 + m2
print m3
#
#| 2 2 |
#| 3 3 |
for v in m1:
print v
#
# [1, 1]
# [2, 2]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment