Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0004333OCamlOCaml otherlibspublic2007-06-30 11:512013-09-05 02:47
ReporterChristophe Troestler 
Assigned To 
PrioritynormalSeverityfeatureReproducibilityN/A
StatusacknowledgedResolutionopen 
PlatformOSOS Version
Product Version3.10.0 
Target VersionFixed in Version 
Summary0004333: Bigarray: complex <-> float
DescriptionIt would be nice to have in place "reshaping" between complex and float bigarrays -- splitting complexes in real and imaginary parts. Something along the lines

to_float : (Complex.t, complex64_elt, 'a) Genarray.t -> (float, float64_elt, 'a) Genarray.t
to_complex : (float, float64_elt, 'a) Genarray.t -> (Complex.t, complex64_elt, 'a) Genarray.t

(and the same for Array1, Array2, and Array3). [to_complex] will raise an exception if the last (for c_layout) or first (for fortran_layout) dimension is not even.
The interest of this is for in-place transforms, specifically in my case in-place FFT transforms between float and hermitian arrays.
Tagspatch
Attached Filespatch file icon bigarray.patch [^] (8,821 bytes) 2012-08-09 02:53 [Show Content]

- Relationships

-  Notes
(0007916)
xleroy (administrator)
2012-08-06 18:30

I've been sleeping for too long on this feature request. If anyone feels strongly about it, a patch is welcome.
(0007936)
Christophe Troestler (reporter)
2012-08-09 02:53

Patch uploaded.

- Issue History
Date Modified Username Field Change
2007-06-30 11:51 Christophe Troestler New Issue
2007-11-10 15:02 xleroy Status new => assigned
2007-11-10 15:02 xleroy Assigned To => xleroy
2012-06-21 20:12 frisch Category OCaml general => OCaml otherlibs
2012-08-06 18:30 xleroy Note Added: 0007916
2012-08-06 18:30 xleroy Assigned To xleroy =>
2012-08-06 18:30 xleroy Status assigned => acknowledged
2012-08-09 02:53 Christophe Troestler File Added: bigarray.patch
2012-08-09 02:53 Christophe Troestler Note Added: 0007936
2013-09-04 17:48 doligez Tag Attached: patch


Copyright © 2000 - 2011 MantisBT Group
Powered by Mantis Bugtracker