mateogianolio / mateogianolio/vectorious
Implement astype(dtype: DType) for simple type casting
Open
feature
- Dominant language
- TypeScript
- Stars
- 918
- Forks
- 41
- PR merge metrics
- No merged PRs in 30d
Description
* See https://numpy.org/doc/stable/reference/generated/numpy.ndarray.astype.html
Example:
```ts
import { array } from 'vectorious';
const x = array([1, 2, 2.5]);
x.astype('int8')
/*
array([ 1, 2, 2 ], dtype=int8)
*/
```
Contributor guide
No contributing guide indexed for this repository
Research direction
No source files or tests are named. Start by locating the array implementation and existing dtype handling, then compare the requested behavior with NumPy's ndarray.astype documentation. Done means array([1, 2, 2.5]).astype('int8') produces values [1, 2, 2] with dtype int8.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- data
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100