Skip to content

How to make ndarray default backend container instead of array in rhai? #927

Answered by schungx
rawhuul asked this question in Q&A
Discussion options

You must be logged in to vote

It would be quite difficult to override the standard arrays in Rhai, as arrays have lots of built-in handling.

You can consider using a prefix, such as:

let x = ND#[1, 2, 3];

In that case, the custom syntax starts with ND# and the value returned is an NdArray.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@rawhuul
Comment options

@schungx
Comment options

@rawhuul
Comment options

Answer selected by rawhuul
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants