otslm icon indicating copy to clipboard operation
otslm copied to clipboard

Implement a otslmPattern class

Open ilent2 opened this issue 6 years ago • 2 comments

This class would be a wrapper class similar to gpuArray. The class would have an internal data type which could be queried and changed.

Implementation would be time consuming, we would need to overload almost every builtin matlab method which can be applied to logical, double, complex and gpuArray objects. There are a lot! https://au.mathworks.com/help/matlab/referencelist.html

This would make a slightly nicer user interface and would handle the problem of keeping track of the phase range of patterns. However, perhaps it is better to wait and see if we write a python version.

ilent2 avatar Sep 30 '19 07:09 ilent2

This class should replace:

  • otslm.tools.visualise -> otslmPattern.visualise
  • otslm.tools.finalize-> otslmPattern.finalize

and maybe other methods.

ilent2 avatar Oct 06 '19 05:10 ilent2

Perhaps all patterns should be a single data type, perhaps complex. This would not be very efficient for binary patterns, or amplitude/phase only patterns.

ilent2 avatar Oct 06 '19 05:10 ilent2