Remove entries from an array at the given indices.
Numeric.shape.remove(input, indices, level)Removes the indexed entries from the array.
- Parameters:
input: Array losing the selected entriesindices: Positions of the entries to removelevel: Optional axis along which entries are removed
- Returns: Array without the removed entries
- NumPy: Equivalent to
np.delete.
import Numeric from '@neabyte/numerix'
const values = Numeric.shape.remove([1, 2, 3], [1])
console.log(values)
// [1,3]import Numeric from '@neabyte/numerix'
const values = Numeric.shape.remove([1, 2, 3], [0])
console.log(values)
// [2,3]import Numeric from '@neabyte/numerix'
const values = Numeric.shape.remove([1, 2, 3], [2])
console.log(values)
// [1,2]import Numeric from '@neabyte/numerix'
const values = Numeric.shape.remove([1, 2, 3, 4], [0, 2])
console.log(values)
// [2,4]