We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6650917 commit 3be0f2eCopy full SHA for 3be0f2e
test/runtests.jl
@@ -1,12 +1,13 @@
1
using ArrayInterface, Test
2
-
+import ArrayInterface: has_sparsestruct, findstructralnz
3
@test ArrayInterface.ismutable(rand(3))
4
5
using StaticArrays
6
@test ArrayInterface.ismutable(@SVector [1,2,3]) == false
7
@test ArrayInterface.ismutable(@MVector [1,2,3]) == true
8
9
using LinearAlgebra, SparseArrays
10
+
11
D=Diagonal([1,2,3,4])
12
@test has_sparsestruct(D)
13
rowind,colind=findstructralnz(D)
0 commit comments