Move linear algebra to linalg.scad

columns->column because the multiindex case is handled by submatrix
and also it never occurs in the code.
This commit is contained in:
Adrian Mariano
2021-10-26 16:45:14 -04:00
parent b66b964188
commit a75a368dd5
15 changed files with 812 additions and 992 deletions

View File

@@ -543,8 +543,8 @@ function vector_nearest(query, k, target) =
"More results are requested than the number of points.")
tgpts
? let( tree = _bt_tree(target, count(len(target))) )
columns(_bt_nearest( query, k, target, tree),0)
: columns(_bt_nearest( query, k, target[0], target[1]),0);
column(_bt_nearest( query, k, target, tree),0)
: column(_bt_nearest( query, k, target[0], target[1]),0);
//Ball tree nearest