Skip to content
#

numba

Here are 153 public repositories matching this topic...

domokane
domokane commented Nov 15, 2020

Some functions take a date as an input. However I would like to be able to pass in a vector/list of dates and/or a vector of enums and get a corresponding vector of values.

This is shown in notebook

https://github.com/domokane/FinancePy/blob/master/notebooks/products/equity/EQUITY_VANILLA_EUROPEAN_STYLE_OPTION_VECTORISATION.ipynb

Consider f(x,y,z). Behaviour that would be good

  1. If x
jpivarski
jpivarski commented Nov 21, 2020

It's useful to have the opposite of ak.flatten:

>>> original = ak.Array([[0, 1, 2], [], [3, 4], [5], [6, 7, 8, 9]])
>>> counts = ak.num(original)
>>> array = ak.flatten(original)
>>> counts
<Array [3, 0, 2, 1, 4] type='5 * int64'>
>>> array
<Array [0, 1, 2, 3, 4, 5, 6, 7, 8, 9] type='10 * int64'>
>>> ak.unflatten(array, counts)
<Array [[0, 1, 2], [], ... [5], [6, 7, 8, 9]] 
transonic

Improve this page

Add a description, image, and links to the numba topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the numba topic, visit your repo's landing page and select "manage topics."

Learn more

You can’t perform that action at this time.