Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 17ecb24

Browse files
algebra added
1 parent 814d407 commit 17ecb24

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

‎Numpy/Inner and Outer/Solution.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import numpy as np
2+
3+
A = np.array(input().split(), int)
4+
B = np.array(input().split(), int)
5+
print(np.inner(A, B), np.outer(A, B), sep='\n')

‎Numpy/Linear Algebra/Solution.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import numpy as np
2+
3+
np.set_printoptions(legacy='1.13')
4+
5+
n = int(input())
6+
array = np.array([input().split() for _ in range(n)], float)
7+
print(np.linalg.det(array))

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /