fipy.tools.vector¶
Vector utility functions that are inexplicably absent from Numeric
Functions
|
removes elements with indices i = start + shift * n where n = 0, 1, 2, ... |
|
This is a temporary replacement for Numeric.put as it was not doing what we thought it was doing. |
- fipy.tools.vector.prune(array, shift, start=0, axis=0)¶
removes elements with indices i = start + shift * n where n = 0, 1, 2, …
>>> prune(numerix.arange(10), 3, 5) array([0, 1, 2, 3, 4, 5, 6, 7, 8, 9]) >>> prune(numerix.arange(10), 3, 2) array([0, 1, 3, 4, 6, 7, 9]) >>> prune(numerix.arange(10), 3) array([1, 2, 4, 5, 7, 8]) >>> prune(numerix.arange(4, 7), 3) array([5, 6])
- fipy.tools.vector.putAdd(vector, ids, additionVector)¶
This is a temporary replacement for Numeric.put as it was not doing what we thought it was doing.
Last updated on Nov 20, 2024.
Created using Sphinx 7.1.2.