Skip to content

Instantly share code, notes, and snippets.

@cipharius
Created August 18, 2018 08:50
Show Gist options
  • Save cipharius/03dca2e1c53a747c6244c1243fe5a0c6 to your computer and use it in GitHub Desktop.
Save cipharius/03dca2e1c53a747c6244c1243fe5a0c6 to your computer and use it in GitHub Desktop.

Revisions

  1. cipharius created this gist Aug 18, 2018.
    5 changes: 5 additions & 0 deletions arraymancer-problem.nim
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,5 @@
    for slice in inputTensor.axis(0):
    if slice[0, dotProductColumn] >= 0:
    a.add(slice)
    else:
    b.add(slice)