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: 4 additions & 2 deletions Project.toml
Original file line number Diff line number Diff line change
@@ -1,20 +1,22 @@
name = "FactoredMatrices"
uuid = "13d07ad6-c0d4-11e8-35b1-91a532e61cc8"
authors = ["Tim Holy <tim.holy@gmail.com>"]
version = "1.0.0"
authors = ["Tim Holy <tim.holy@gmail.com>"]

[deps]
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"

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

[extras]
Aqua = "4c88cf16-eb10-579e-8560-4a9242c79595"
ExplicitImports = "7d51a73a-1435-4ff3-83d9-f097790105c7"
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"

[targets]
test = ["Aqua", "Test"]
test = ["Aqua", "ExplicitImports", "Test"]
11 changes: 1 addition & 10 deletions src/FactoredMatrices.jl
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module FactoredMatrices

using LinearAlgebra
using LinearAlgebra: LinearAlgebra, Adjoint, Factorization, Transpose
import Base: *, Array, Matrix, size, length, similar, ==, hash, adjoint, transpose
import LinearAlgebra: mul!, dot

Expand Down Expand Up @@ -30,15 +30,6 @@ end
FactoredMatrix{T}(U::AbstractMatrix{T}, V::AbstractMatrix{T}) where {T} = FactoredMatrix{T, typeof(U), typeof(V)}(U, V)
FactoredMatrix(U::AbstractMatrix{T}, V::AbstractMatrix{T}) where {T} = FactoredMatrix{T}(U, V)

function FactoredMatrix(U::Matrix{T}, V::Matrix{T}, ::Integer) where {T}
Base.depwarn(
"FactoredMatrix(U, V, j) is deprecated; use FactoredMatrix(U, V) and " *
"create a Workspace(fm, j) for allocation-free mul!",
:FactoredMatrix
)
return FactoredMatrix{T}(U, V)
end

"""
Workspace{T}(k::Int, p::Int)
Workspace(A::FactoredMatrix, p::Int)
Expand Down
5 changes: 0 additions & 5 deletions test/REQUIRE

This file was deleted.

5 changes: 5 additions & 0 deletions test/runtests.jl
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
using Test, LinearAlgebra
using FactoredMatrices
using Aqua
using ExplicitImports

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 Down Expand Up @@ -35,6 +36,10 @@ end
end
end

@testset "ExplicitImports" begin
@test ExplicitImports.check_no_implicit_imports(FactoredMatrices) === nothing
end

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