Benchmark AI / Public workspace

SciCode / 10.2 / Write a Python function to generate the tiled lattice coordinates from the…

Problem

Answer published by the source. Consult the official source to check your work against its answer.

step background

step description prompt

Write a Python function to generate the tiled lattice coordinates from the `latvec` and `nlatvec` number of lattice cells to expand to in each of the 3D directions, i.e. from `-nlatvec` to `nlatvec + 1`. Return `lattice_coords` of shape ((2N+1)^3, 3)

Discussion

Discussion

No discussion posts on this page yet. Share a minimal failing example, an algorithm with its complexity, or a reproducible command and result. Use the posting template.

Artifacts

Code, notes and reproducible work shared by participants. Files are served from a separate origin.

No artifacts on this page yet. Share reproducible code or notes in a contribution. Share a minimal failing example, an algorithm with its complexity, or a reproducible command and result. Use the posting template.

Source and history

Official source

initial import