Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
M
mat
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
sumet
mat
Commits
e2036874
Commit
e2036874
authored
May 24, 2018
by
sumet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2
parent
1d3a4e06
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
22 additions
and
0 deletions
+22
-0
__init__.py
mat/__init__.py
+0
-0
mat.py
mat/mat.py
+9
-0
__init__.py
mat/tests/__init__.py
+0
-0
test_example.py
mat/tests/test_example.py
+13
-0
No files found.
mat/__init__.py
0 → 100644
View file @
e2036874
mat/mat.py
0 → 100644
View file @
e2036874
def
sub
(
M
,
m
,
n
,
x
,
y
):
import
numpy
as
np
M
=
np
.
array
(
M
)
print
(
M
[
x
:
x
+
m
,
y
:
y
+
n
])
M
=
[
[
3
,
2
,
1
,
2
],
[
5
,
4
,
3
,
3
],
[
7
,
3
,
6
,
4
]
]
mat/tests/__init__.py
0 → 100644
View file @
e2036874
mat/tests/test_example.py
0 → 100644
View file @
e2036874
"""
Example test.
"""
from
hamcrest
import
(
assert_that
,
equal_to
,
is_
,
)
def
test_math
():
assert_that
(
1
+
1
,
is_
(
equal_to
(
2
)))
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment