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

kind and layout extraction from bigarrays #3288

Closed
vicuna opened this issue Apr 7, 2002 · 2 comments
Closed

kind and layout extraction from bigarrays #3288

vicuna opened this issue Apr 7, 2002 · 2 comments

Comments

@vicuna
Copy link

vicuna commented Apr 7, 2002

Original bug ID: 1055
Reporter: administrator
Status: closed
Resolution: fixed
Priority: normal
Severity: feature
Category: ~DO NOT USE (was: OCaml general)

Bug description

Hello,

unless I have overseen anything obvious, there is some missing but
important functionality that really should be in the Bigarray-module:
it is currently impossible to create arrays of the same kind and layout
as given by another array. This is required for e.g. allocating work
arrays of the same structure (but possibly different size).

My proposal is to add functions "kind" and "layout" to each submodule,
thus allowing extraction of this information, e.g.:

val kind : ('a, 'b, 'c) Array1.t -> ('a, 'b) kind
val layout : ('a, 'b, 'c) Array1.t -> 'c layout

Thanks!

Best regards,
Markus

--
Markus Mottl markus@oefai.at
Austrian Research Institute
for Artificial Intelligence http://www.oefai.at/~markus

@vicuna
Copy link
Author

vicuna commented Apr 15, 2002

Comment author: administrator

Dear Markus,

My proposal is to add functions "kind" and "layout" to each submodule,
thus allowing extraction of this information

This is an excellent suggestion, and indeed something that I
completely overlooked initially. The current sources contain these
functions.

Best regards,

  • Xavier Leroy

@vicuna
Copy link
Author

vicuna commented Apr 15, 2002

Comment author: administrator

kind and layout functions added 2002-04-15 by XL.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant