Learn Before
Concept
Universal Function Object
Essentially, there are NumPy functions that operate on ndarrays. All (ufuncs) wrap a core function that takes scalar inputs and produces scalar outputs.
Why would this be useful?
- Say for example a user wants to sum individual elements in a list with the same corresponding elements in another list. One could iterate through both lists and add them as it goes through the iteration. Or, if the user uses a ufunc called "add(x,y)" then it does the same thing - but saves times.
0
1
Updated 2021-03-20
Tags
Python Programming Language
Data Science