Fork me on GitHub

src/arraymancer/spatial/tensor_compare_helper

Search:
Group by:
  Source Edit

Procs

proc `<`[T](s1, s2: Tensor[T]): bool
just an internal comparison of two Tensors, which assumes that the order of two seqs matters. This proc is in an extra file, because the proc using it (queryImpl) is generic and we need to call bind for this. If it was defined in the same file, we can't bind it for some reason. Further we do not want to export such a procedure as obviously in the general context this comparison doesn't make sense. But as we use a HeapQueue of tensors, we need a < comparison operator.   Source Edit
Arraymancer Technical reference Tutorial Spellbook (How-To's) Under the hood