Skip to content

Implement astype(dtype: DType) for simple type casting #245

@mateogianolio

Description

@mateogianolio

Example:

import { array } from 'vectorious';

const x = array([1, 2, 2.5]);

x.astype('int8')
/*
array([ 1, 2, 2 ], dtype=int8)
*/

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions