Skip to content

feat: add meshgrid coordinate grid creation - #24

Merged
CodeWithKyrian merged 1 commit into
mainfrom
feat/add-meshgrid-support
May 30, 2026
Merged

CodeWithKyrian merged 1 commit into
mainfrom
feat/add-meshgrid-support

Conversation

@CodeWithKyrian

Copy link
Copy Markdown
Contributor

This PR adds meshgrid() support for creating coordinate grids from one-dimensional vectors.

Motivation and Context

Coordinate grids are useful for evaluating functions over a grid of points, building surface data, and preparing structured inputs for numerical workflows. This can be implemented safely using the existing shape and tiling operations without adding new FFI exports.

What's changed

  • Added NDArray::meshgrid() and the global meshgrid() helper with xy/ij indexing and sparse grid support.
  • Added test coverage for dense grids, sparse grids, multi-input grids, dtype preservation, and validation errors.
  • Updated the API reference, global function reference, guide docs, and project spec.

Breaking changes

None.

@CodeWithKyrian
CodeWithKyrian force-pushed the feat/add-meshgrid-support branch from 86ad9cf to cc331bc Compare May 30, 2026 22:06
@CodeWithKyrian
CodeWithKyrian merged commit 86b0270 into main May 30, 2026
14 checks passed
@CodeWithKyrian
CodeWithKyrian deleted the feat/add-meshgrid-support branch May 30, 2026 22:13
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.

1 participant