Skip to content

Commit

Permalink
test(matrices): add circulant tests
Browse files Browse the repository at this point in the history
  • Loading branch information
AnzhiZhang committed Aug 8, 2024
1 parent 53b5157 commit eddf7e6
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions test/matrices/circulant.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# constructors
@test allequal([
Circulant(5),
Circulant{Int}(5),
Circulant([1:5;]),
])

# linear algebra functions
test_linearalgrbra_functions(Circulant.(1:5))

# eltype
@test test_matrix_elements(Circulant{Int32}(5))

# content
@test Circulant(5) [1 2 3 4 5; 5 1 2 3 4; 4 5 1 2 3; 3 4 5 1 2; 2 3 4 5 1]

0 comments on commit eddf7e6

Please sign in to comment.