Skip to content

Concatenating two Arrays #572

Answered by mhostetter
alv-around asked this question in Q&A
Discussion options

You must be logged in to vote

Is this your goal? I think np.vstack() and np.hstack() may be what you're looking for.

import galois

F = galois.GF(101)

A = F([[1, 2], [3, 4]])
B = F([[5, 6], [7, 8]])
C = np.vstack((A, B))

print(C)
[[1 2]
 [3 4]
 [5 6]
 [7 8]]

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@alv-around
Comment options

Answer selected by alv-around
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants