Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

print_matrix_row update #92

Merged
merged 1 commit into from
Mar 28, 2022
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
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name = "InfiniteArrays"
uuid = "4858937d-0d70-526a-a4dd-2d5cb5dd786c"
version = "0.12.4"
version = "0.12.5"

[deps]
ArrayLayouts = "4c555306-a7a7-4459-81d9-ec55ddd5c99a"
Expand Down
6 changes: 3 additions & 3 deletions src/infarrays.jl
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ fill(x, nm::Tuple{PosInfinity, PosInfinity}) = cache(Fill(x,nm...))

# This gets called when infinit number of columns
axes_print_matrix_row(_, io, X, A, i, ::AbstractVector{<:PosInfinity}, sep) = nothing
print_matrix_row(io::IO, X::AbstractVecOrMat, A::Vector, i::Integer, cols::AbstractVector{<:PosInfinity}, sep::AbstractString) = nothing
print_matrix_row(io::IO, X::AbstractVecOrMat, A::Vector, i::Integer, cols::AbstractVector{<:PosInfinity}, sep::AbstractString, idxlast::Integer=last(axes(X, 2))) = nothing
Base.print_matrix_row(io::IO,
X::Union{LayoutMatrix,
LayoutVector,
Expand All @@ -92,7 +92,7 @@ Base.print_matrix_row(io::IO,
HermOrSym{<:Any,<:LayoutMatrix},
SubArray{<:Any,2,<:LayoutMatrix},
Diagonal{<:Any,<:LayoutVector}}, A::Vector,
i::Integer, cols::AbstractVector{<:PosInfinity}, sep::AbstractString) =
i::Integer, cols::AbstractVector{<:PosInfinity}, sep::AbstractString, idxlast::Integer=last(axes(X, 2))) =
axes_print_matrix_row(axes(X), io, X, A, i, cols, sep)
Base.print_matrix_row(io::IO,
X::Union{AbstractFill{<:Any,1},
Expand All @@ -101,7 +101,7 @@ Base.print_matrix_row(io::IO,
RectDiagonal,
AbstractTriangular{<:Any,<:AbstractFill{<:Any,2}}
}, A::Vector,
i::Integer, cols::AbstractVector{<:PosInfinity}, sep::AbstractString) =
i::Integer, cols::AbstractVector{<:PosInfinity}, sep::AbstractString, idxlast::Integer=last(axes(X, 2))) =
axes_print_matrix_row(axes(X), io, X, A, i, cols, sep)


Expand Down