Skip to content

Commit

Permalink
Adding more operations
Browse files Browse the repository at this point in the history
  • Loading branch information
fverdugo committed Oct 14, 2019
1 parent 0f74b46 commit 902c6de
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/OperationsTests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,7 @@ R = fill(r,(4,5))

v = VectorValue(1,0)
@test v == v'
@test conj(v) == v'

t = TensorValue(1,2,3,4)
@test trace(t) == 5
Expand All @@ -208,6 +209,7 @@ t = TensorValue(1,2,3,4,5,6,7,8,9)

a = TensorValue(1,2,3,4)
b = a'
@test adjoint(a) == b
@test b == TensorValue(1,3,2,4)
@test a*b == TensorValue(10,14,14,20)

Expand Down

0 comments on commit 902c6de

Please sign in to comment.