Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Zero-dimensional inline arrays #164

Open
eschnett opened this issue May 16, 2018 · 1 comment
Open

Zero-dimensional inline arrays #164

eschnett opened this issue May 16, 2018 · 1 comment

Comments

@eschnett
Copy link

The standard specifies core/ndarray-1.0.0 that inline data for ndarray is given as YAML array (or array of array, etc.) This does not work for zero-dimensional arrays, i.e. scalars, which are most naturally represented as a scalar.

What does the standard intend here? Are zero-dimensional arrays not supported at all? Are they unsupported for inline data? If not, how should they be represented?

@drdavella
Copy link
Contributor

If the intent is truly to store a scalar value, then an array should not be used at all, so the use of ndarray is not relevant. YAML natively supports float and integer scalar values, so there is no need for ndarray to handle these cases.

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

No branches or pull requests

2 participants