From 2ab3cd7b4ba69da0f7d244b8f405643b76e40053 Mon Sep 17 00:00:00 2001 From: Daniel Karrasch Date: Sun, 12 Feb 2023 22:56:52 +0100 Subject: [PATCH] Prepare split of `AbstractQ` and `AbstractMatrix` --- src/JOLI.jl | 2 +- src/joAbstractDAparallelLinearOperator/constructors.jl | 2 +- src/joAbstractLinearOperator/constructors.jl | 4 ++-- src/joAbstractSAparallelLinearOperator/constructors.jl | 2 +- src/joMiscTypesMethods/joPAsetup.jl | 3 +-- 5 files changed, 6 insertions(+), 7 deletions(-) diff --git a/src/JOLI.jl b/src/JOLI.jl index 7dda0dd..c416076 100644 --- a/src/JOLI.jl +++ b/src/JOLI.jl @@ -74,7 +74,7 @@ import Base.getindex # what's imported from LinearAlgebra -import LinearAlgebra.norm +import LinearAlgebra.norm, LinearAlgebra.AbstractQ import LinearAlgebra.issymmetric, LinearAlgebra.ishermitian import LinearAlgebra.mul!, LinearAlgebra.ldiv! diff --git a/src/joAbstractDAparallelLinearOperator/constructors.jl b/src/joAbstractDAparallelLinearOperator/constructors.jl index fbc274b..8f54a52 100644 --- a/src/joAbstractDAparallelLinearOperator/constructors.jl +++ b/src/joAbstractDAparallelLinearOperator/constructors.jl @@ -35,7 +35,7 @@ Create a linear operator working on 2D DArray in multi-vector (over 2nd dimensio """ function joDAdistributedLinOp(A::joAbstractLinearOperator{DDT,RDT},psin::joPAsetup, - fclean::Bool=false,rclean::Bool=false) where {DDT<:Number,RDT<:Number,INT<:Integer} + fclean::Bool=false,rclean::Bool=false) where {DDT<:Number,RDT<:Number} psin.chunks[1]==1 || throw(joDAdistributedLinearOperatorException("joDAdistributedLinearOperator: invalid joPAsetup - must not be distributed in 1st dimension")) A.n==psin.dims[1] || throw(joDAdistributedLinearOperatorException("joDAdistributedLinearOperator: invalid joPAsetup - 1st dimension off joPAsetup does not match size(A,2)")) diff --git a/src/joAbstractLinearOperator/constructors.jl b/src/joAbstractLinearOperator/constructors.jl index d8e35ee..bd81841 100644 --- a/src/joAbstractLinearOperator/constructors.jl +++ b/src/joAbstractLinearOperator/constructors.jl @@ -8,7 +8,7 @@ """ joMatrix outer constructor - joMatrix(array::AbstractMatrix; + joMatrix(array::Union{AbstractMatrix,AbstractQ}; DDT::DataType=eltype(array), RDT::DataType=promote_type(eltype(array),DDT), name::String="joMatrix") @@ -26,7 +26,7 @@ Look up argument names in help to joMatrix type. - if RDT:0 || throw(joPAsetupException("joPAsetup: invalid lenght of the vector: $n")) dims=(n,) chunks=joPAsetup_etc.default_chunks(dims,sort(workers(wpool)))