Slots on the dtype (in some form or another), seems straight forward,
they need to return some wrapped C function (which could call back to python).
Need to think about what to do with kind
and type
(they cannot be
just chars I think, not for extension types).
kind
, byteorder
, and itemsize
"Python" casting:
getitem
and setitem
casts to/from python objects.np.result_type
→ finding common type
PyArray_PromoteTypes
to promote pairs:
__promote__(type1, type2)
or __promote__(*types)
?__array_ufunc__
)np.array
generic
scalar subclasses and array-like protocols.Resolve __array_ufunc__
for the container types.
Interact with ufunc object to get and check signature information such as:
Prepare the actual iteration:
Run any dtypes/ufunc-loop specific setup code
Run the loop (allow early finishing)
Run dtypes/ufunc-loop specific teardown code.
floating
should work much like a flexible type?np.dtype(np.floating) == "float64"
, but it would be nice if itor
or
By clicking below, you agree to our terms of service.
New to HackMD? Sign up
Syntax | Example | Reference | |
---|---|---|---|
# Header | Header | 基本排版 | |
- Unordered List |
|
||
1. Ordered List |
|
||
- [ ] Todo List |
|
||
> Blockquote | Blockquote |
||
**Bold font** | Bold font | ||
*Italics font* | Italics font | ||
~~Strikethrough~~ | |||
19^th^ | 19th | ||
H~2~O | H2O | ||
++Inserted text++ | Inserted text | ||
==Marked text== | Marked text | ||
[link text](https:// "title") | Link | ||
 | Image | ||
`Code` | Code |
在筆記中貼入程式碼 | |
```javascript var i = 0; ``` |
|
||
:smile: | ![]() |
Emoji list | |
{%youtube youtube_id %} | Externals | ||
$L^aT_eX$ | LaTeX | ||
:::info This is a alert area. ::: |
This is a alert area. |
On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?
Please give us some advice and help us improve HackMD.
Syncing