Skip to content

Commit

Permalink
test(matrices): add inversehilbert tests
Browse files Browse the repository at this point in the history
  • Loading branch information
AnzhiZhang committed Aug 9, 2024
1 parent 5aeab8e commit 23d229b
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions test/matrices/inversehilbert.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# constructors
@test allequal([
InverseHilbert(5),
InverseHilbert{Int}(5),
InverseHilbert{Rational{Int}}(5),
])

# linear algebra functions
run_test_linearalgrbra_functions(InverseHilbert.(1:5))
@test test_linearalgrbra_functions(InverseHilbert{BigInt}(5))

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

# content
@test InverseHilbert(5) [25 -300 1050 -1400 630; -300 4800 -18900 26880 -12600; 1050 -18900 79380 -117600 56700; -1400 26880 -117600 179200 -88200; 630 -12600 56700 -88200 44100]

0 comments on commit 23d229b

Please sign in to comment.