← 输入框|github.com|刷新
Skip to content

Show how to take the exponential of complex array elements - #1632

Open
AmanBoronbaev wants to merge 1 commit into
rust-ndarray:masterfrom
AmanBoronbaev:document-complex-elementwise-exponential
Open

AmanBoronbaev wants to merge 1 commit into
rust-ndarray:masterfrom
AmanBoronbaev:document-complex-elementwise-exponential

Conversation

@AmanBoronbaev

Copy link
Copy Markdown

Refs #1631.

The array-level exp method is available for real floating-point elements. Show how to compute the complex exponential element by element with mapv(Complex64::exp). The example checks the results at zero and at an imaginary quarter turn.

Enable num-complex/std for dev builds so the doctest can call the scalar method with the same features as a default num-complex dependency. I ran the ndarray doctests and checked the library with --no-default-features.

AI assistance: OpenAI Codex helped check the feature combination and run the documentation example.

This branch has not been deployed

No deployments
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