Python Forum
creating tuples - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: Data Science (https://python-forum.io/forum-44.html)
+--- Thread: creating tuples (/thread-34177.html)



creating tuples - erdemath - Jul-04-2021

Hello,

I need to create multidimensional stand-alone tuples, which is in other words arrays of arrays. If I need to give some example, let¨s say I need to create 3x9
tuples, which makes 27 as a single array. Each array must contain 8x8 matrices, which makes 64 as a single array. How can I do that?

Thank you...


RE: creating tuples - Yoriz - Jul-04-2021

What values do these tuples contain ?


RE: creating tuples - erdemath - Jul-04-2021

(Jul-04-2021, 03:29 PM)Yoriz Wrote: What values do these tuples contain ?

Complex values


RE: creating tuples - Yoriz - Jul-04-2021

Sorry but that means nothing to me.
Where does the input data come from, what does it look like?
what should the output data in tuples look like?
What have you tried so far?


RE: creating tuples - erdemath - Jul-04-2021

I responded as a mathematician. Let me elaborate a bit more then, I¨m not sure if it will be
helpful. I am generating a dictionary of 2-D Discrete Fourier Transform. The input will come
from 2-D phase shifting applied on the exponent. The output values will be complex values,
with real and imaginary parts.


RE: creating tuples - ndc85430 - Jul-04-2021

It sounds like you're computing the Fourier transform yourself, rather than using the facilities provided by, e.g. SciPy. Is there a reason for that?


RE: creating tuples - erdemath - Jul-04-2021

(Jul-04-2021, 03:49 PM)ndc85430 Wrote: It sounds like you're computing the Fourier transform yourself, rather than using the facilities provided by, e.g. SciPy. Is there a reason for that?

That is right. I want my dictionary to be fully controlled by me for the scientific purposes. In matlab,
it can be achieved simply by using the parenthesis ´{}´. How can I make it in python?


RE: creating tuples - Yoriz - Jul-04-2021

Ok, it sounds data science related so I moved it to that part of the forum, it's beyond me but hopefully, someone that has knowledge in this can help you.


RE: creating tuples - erdemath - Jul-08-2021

I myself figured it out. This thread can be deleted now.