Skip to content

feat(datatypes): handle complex numbers#22

Merged
Luthaf merged 3 commits intometatensor:mainfrom
HaoZeke:handleComplex
Feb 9, 2026
Merged

feat(datatypes): handle complex numbers#22
Luthaf merged 3 commits intometatensor:mainfrom
HaoZeke:handleComplex

Conversation

@HaoZeke
Copy link
Member

@HaoZeke HaoZeke commented Feb 6, 2026

Also as discussed today... this also involves an API change, making DLPackPointerCast public.

and some optional half stuff.

Luthaf
Luthaf previously approved these changes Feb 9, 2026
@Luthaf Luthaf dismissed their stale review February 9, 2026 09:05

one more thing

Comment on lines 27 to +29
ndarray = ["dep:ndarray"]
pyo3 = ["dep:pyo3"]
half = ["dep:half"]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm wondering if this is what prevent automatic feature activation from metatensor. Let me try locally (and I'll send a separate PR in this case)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok, apparently this is not required (https://doc.rust-lang.org/cargo/reference/features.html#optional-dependencies) but we have to enable them when using them anyway. Am I remembering how stuff worked previously?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TBH I haven't done enough package management in Rust to recall :D

@Luthaf
Copy link
Member

Luthaf commented Feb 9, 2026

(do not merge, I'll rebase locally to get 3 commits)

@Luthaf Luthaf merged commit 6db24bb into metatensor:main Feb 9, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants