Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,14 @@ version = "1.0.0"
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"

[compat]
Aqua = "0.8"
LinearAlgebra = "1"
Test = "1"
julia = "1.10"

[extras]
Aqua = "4c88cf16-eb10-579e-8560-4a9242c79595"
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"

[targets]
test = ["Test"]
test = ["Aqua", "Test"]
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# FactoredMatrices

[![Aqua QA](https://juliatesting.github.io/Aqua.jl/dev/assets/badge.svg)](https://github.com/JuliaTesting/Aqua.jl)

Originally, this package was a sub package of CellSegmentation.

FactoredMatrices provides efficient multiplication methods for plain, adjoint
Expand Down
9 changes: 9 additions & 0 deletions test/runtests.jl
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using Test, LinearAlgebra
using FactoredMatrices
using Aqua

myrand(::Type{T}, m, n) where {T <: Real} = rand(T, m, n)
myrand(::Type{Complex{T}}, m, n) where {T <: Real} = rand(T, m, n) + im * rand(T, m, n)
Expand All @@ -26,6 +27,14 @@ function check_allocs(Mf, ws, C, D, E, r15x5, r10x5, r5x10, r5x15)
return @test @allocated(mul!(r5x15, E, Transpose(Mf); cache = ws)) == 0
end

@testset "Aqua" begin
if Base.VERSION < v"1.11"
Aqua.test_all(FactoredMatrices; ambiguities = (broken = true,))
else
Aqua.test_all(FactoredMatrices)
end
end

@testset "FactoredMatrices" begin
for T in (Float32, Float64, ComplexF32, ComplexF64)
# Mf: 15×10 (U: 15×3, V: 3×10)
Expand Down
Loading