CompactRaytraces
- class raytracing.compact.CompactRaytraces(compactRays, traceLength)
Bases:
RayTracesA collection of all ray traces from a GPU computation.
After propagating M input rays through N optical elements, the GPU produces an output buffer of M x N rays.
CompactRaytracesorganises this flat buffer into M individualCompactRaytraceslices, one per input ray, so thattraces[i]gives the full journey of the i-th ray through the optical system.Inherits
__str__,__repr__,__iter__, and__next__fromRayTraces. Overrides__len__and__getitem__for buffer access.- Parameters:
compactRays (CompactRays) – The flat output buffer of size M x N.
traceLength (int) – Number of optical elements (N), i.e. the length of each trace.
Methods
|
Inherited Methods
Attributes
|
The last ray from each trace, as a Rays collection. |