mirror of
https://github.com/wassname/simpeg.git
synced 2026-06-28 15:40:32 +08:00
8 lines
145 B
Python
8 lines
145 B
Python
import numpy as np
|
|
|
|
def getSubArray(A,ind):
|
|
"""subArray"""
|
|
i = ind[0]; j = ind[1]; k = ind[2]
|
|
|
|
return A[i,:,:][:,j,:][:,:,k]
|
|
|