“Agregar dos matrices 1D python” Código de respuesta

Agregar dos matrices 1D python

numpy.r_[a, a],
numpy.stack([a, a]).reshape(-1),
numpy.hstack([a, a]),
numpy.concatenate([a, a])
Awful Anaconda

Agregar dos matrices 1D python

# append two 1d arrays python
a = np.array([0, 1, 2])
b = np.array([3, 4, 5])
c = np.concatenate((a, b), axis=0)
print(c)

# Output
# [0 1 2 3 4 5]
Cute Caracal

Respuestas similares a “Agregar dos matrices 1D python”

Preguntas similares a “Agregar dos matrices 1D python”

Más respuestas relacionadas con “Agregar dos matrices 1D python” en Python

Explore las respuestas de código populares por idioma

Explorar otros lenguajes de código