Created
March 29, 2017 16:04
-
-
Save mwmajew/b4c1b12995ac939c5048df89607283cd to your computer and use it in GitHub Desktop.
examplary output matrix task
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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