Skip to content

Commit

Permalink
fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
jcosborn committed Nov 14, 2024
1 parent f2ca3c5 commit 3accf89
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/physics/tensorwrap.nim
Original file line number Diff line number Diff line change
Expand Up @@ -59,14 +59,16 @@ template `[]`*[K,T,I](x: TensorObj[K,T], i: I): auto =
elif I.isWrapper:
#indexed(x, i)
var tTensorObjBracket = tensorObj(K, x[][i])
tTensorObjBracket
tTensorObjBracket # need to return var type
else:
x[][i]

template `[]=`*[K,T,I](x: SomeTensor[K,T], i: I, y: auto) =
mixin `:=`
when I is SomeTensor[K,auto]:
x[][i[]] = y
elif y is SomeTensor[K,auto]:
x[][i] = y[]
else:
x[][i] = y

Expand Down

0 comments on commit 3accf89

Please sign in to comment.