Skip to content

Commit 25cf231

Browse files
committed
test(matrices): add cauchy tests
1 parent 0514498 commit 25cf231

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

test/matrices/cauchy.jl

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# content
2+
@test Cauchy(5) [0.5 0.3333333333333333 0.25 0.2 0.16666666666666666; 0.3333333333333333 0.25 0.2 0.16666666666666666 0.14285714285714285; 0.25 0.2 0.16666666666666666 0.14285714285714285 0.125; 0.2 0.16666666666666666 0.14285714285714285 0.125 0.1111111111111111; 0.16666666666666666 0.14285714285714285 0.125 0.1111111111111111 0.1]
3+
4+
# eltype
5+
@test test_matrix_elements(Cauchy{Float32}(5))
6+
7+
# constructors
8+
@test allequal([
9+
Cauchy(5),
10+
Cauchy(5, 5),
11+
Cauchy([1:5;]),
12+
Cauchy([1:5;], [1:5;]),
13+
Cauchy{Int}(5),
14+
Cauchy{Int}(5,5),
15+
Cauchy{Int}([1:5;]),
16+
Cauchy{Int}([1:5;], [1:5;]),
17+
Cauchy{Int}([1:5;], [1:5;]),
18+
])
19+
20+
# linear algebra functions
21+
@test test_linearalgrbra_functions(Cauchy{Float64}(5))

0 commit comments

Comments
 (0)