mirror of
https://github.com/JustinSDK/dotSCAD.git
synced 2025-09-25 22:09:12 +02:00
refactor: cache rx
This commit is contained in:
@@ -108,10 +108,12 @@ function _replaceStatesAt(wf, x, y, states) =
|
|||||||
[for(i = 0; i < leng_eigenstates; i = i + 1) i == y ? newRowY : eigenstates[i]]
|
[for(i = 0; i < leng_eigenstates; i = i + 1) i == y ? newRowY : eigenstates[i]]
|
||||||
];
|
];
|
||||||
|
|
||||||
function wf_not_collapsed_coords(wf) = [
|
function wf_not_collapsed_coords(wf) =
|
||||||
for(y = [0:wf_height(wf) - 1], x = [0:wf_width(wf) - 1])
|
let(rx = [0:wf_width(wf) - 1])
|
||||||
if(len(wf_eigenstates_at(wf, x, y)) != 1) [x, y]
|
[
|
||||||
];
|
for(y = [0:wf_height(wf) - 1], x = rx)
|
||||||
|
if(len(wf_eigenstates_at(wf, x, y)) != 1) [x, y]
|
||||||
|
];
|
||||||
|
|
||||||
function wf_coord_min_entropy(wf) =
|
function wf_coord_min_entropy(wf) =
|
||||||
let(
|
let(
|
||||||
|
Reference in New Issue
Block a user