Sha256: 3c45d245b18f4f6f5794e4c2be09f3ad63ad9c99f5c934f480d2cc186d6f9ec8

Contents?: true

Size: 323 Bytes

Versions: 7

Compression:

Stored size: 323 Bytes

Contents

# The standard way to import NumPy:
import numpy as np

# Create a 2-D array, set every second element in
# some rows and find max per row:
x = np.arange(15, dtype=np.int64).reshape(3, 5)
x[1:, ::2] = -99
print(x)
# array([[  0,   1,   2,   3,   4],
#        [-99,   6, -99,   8, -99],
#        [-99,  11, -99,  13, -99]])

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
openc3-cosmos-demo-6.2.1 targets/INST2/procedures/numpy.py
openc3-cosmos-demo-6.2.0 targets/INST2/procedures/numpy.py
openc3-cosmos-demo-6.1.0 targets/INST2/procedures/numpy.py
openc3-cosmos-demo-6.0.2 targets/INST2/procedures/numpy.py
openc3-cosmos-demo-6.0.1 targets/INST2/procedures/numpy.py
openc3-cosmos-demo-6.0.0 targets/INST2/procedures/numpy.py
openc3-cosmos-demo-5.20.0 targets/INST2/procedures/numpy.py