Skip to content
Open
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
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# BlockDiagonals.jl

[![Stable](https://img.shields.io/badge/docs-stable-blue.svg)](https://invenia.github.io/BlockDiagonals.jl/stable)
[![Dev](https://img.shields.io/badge/docs-dev-blue.svg)](https://invenia.github.io/BlockDiagonals.jl/dev)
[![CI](https://github.com/invenia/BlockDiagonals.jl/workflows/CI/badge.svg)](https://github.com/Invenia/BlockDiagonals.jl/actions?query=workflow%3ACI)
[![Codecov](https://codecov.io/gh/invenia/BlockDiagonals.jl/branch/master/graph/badge.svg)](https://codecov.io/gh/invenia/BlockDiagonals.jl)
[![code style blue](https://img.shields.io/badge/code%20style-blue-4495d1.svg)](https://github.com/invenia/BlueStyle)
[![Stable](https://img.shields.io/badge/docs-stable-blue.svg)](https://juliaarrays.github.io/BlockDiagonals.jl/stable)
[![Dev](https://img.shields.io/badge/docs-dev-blue.svg)](https://juliaarrays.github.io/BlockDiagonals.jl/dev)
[![CI](https://github.com/JuliaArrays/BlockDiagonals.jl/actions/workflows/CI.yml/badge.svg?branch=master)](https://github.com/JuliaArrays/BlockDiagonals.jl/actions/workflows/CI.yml?query=branch%3Amaster)
[![Codecov](https://codecov.io/gh/juliaarrays/BlockDiagonals.jl/branch/master/graph/badge.svg)](https://codecov.io/gh/juliaarrays/BlockDiagonals.jl)
[![Code Style: Blue](https://img.shields.io/badge/code%20style-blue-4495d1.svg)](https://github.com/JuliaDiff/BlueStyle)

Functionality for working efficiently with [block diagonal matrices](https://en.wikipedia.org/wiki/Block_matrix#Block_diagonal_matrices).
_Note that non-square blocks are allowed_, similarly to [`scipy.block_diag`](https://docs.scipy.org/doc/scipy/reference/generated/scipy.linalg.block_diag.html), but in contrast to the mathematical definition above.
Expand Down
5 changes: 2 additions & 3 deletions docs/make.jl
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,8 @@ makedocs(;
modules = [BlockDiagonals],
format = Documenter.HTML(prettyurls = get(ENV, "CI", nothing) == "true"),
pages = ["Home" => "index.md"],
repo = "https://github.com/invenia/BlockDiagonals.jl/blob/{commit}{path}#L{line}",
repo = "https://github.com/JuliaArrays/BlockDiagonals.jl/blob/{commit}{path}#L{line}",
sitename = "BlockDiagonals.jl",
authors = "Invenia Technical Computing",
)

deploydocs(; repo = "github.com/invenia/BlockDiagonals.jl")
deploydocs(; repo = "github.com/JuliaArrays/BlockDiagonals.jl")
8 changes: 4 additions & 4 deletions docs/src/index.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# BlockDiagonals.jl

[![Stable](https://img.shields.io/badge/docs-stable-blue.svg)](https://invenia.github.io/BlockDiagonals.jl/stable)
[![Dev](https://img.shields.io/badge/docs-dev-blue.svg)](https://invenia.github.io/BlockDiagonals.jl/dev)
![CI](https://github.com/invenia/BlockDiagonals.jl/workflows/CI/badge.svg)
[![Codecov](https://codecov.io/gh/invenia/BlockDiagonals.jl/branch/master/graph/badge.svg)](https://codecov.io/gh/invenia/BlockDiagonals.jl)
[![Stable](https://img.shields.io/badge/docs-stable-blue.svg)](https://juliaarrays.github.io/BlockDiagonals.jl/stable)
[![Dev](https://img.shields.io/badge/docs-dev-blue.svg)](https://juliaarrays.github.io/BlockDiagonals.jl/dev)
[![CI](https://github.com/JuliaArrays/BlockDiagonals.jl/actions/workflows/CI.yml/badge.svg?branch=master)](https://github.com/JuliaArrays/BlockDiagonals.jl/actions/workflows/CI.yml?query=branch%3Amaster)
[![Codecov](https://codecov.io/gh/JuliaArrays/BlockDiagonals.jl/branch/master/graph/badge.svg)](https://codecov.io/gh/JuliaArrays/BlockDiagonals.jl)

Functionality for working efficiently with [block diagonal matrices](https://en.wikipedia.org/wiki/Block_matrix#Block_diagonal_matrices).

Expand Down
2 changes: 1 addition & 1 deletion src/linalg.jl
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ function _mul!(C::BlockDiagonal, A::BlockDiagonal, B::BlockDiagonal, α::Number,
return C
end

# Resolves MvNormal slow sampling issue https://github.com/invenia/BlockDiagonals.jl/issues/116
# Resolves MvNormal slow sampling issue https://github.com/JuliaArrays/BlockDiagonals.jl/issues/116
function LinearAlgebra.lmul!(B::LowerTriangular{<:Any,<:BlockDiagonal}, vm::StridedVecOrMat)
# BlockDiagonals with non-square blocks
if !all(is_square, blocks(parent(B)))
Expand Down
4 changes: 2 additions & 2 deletions test/base_maths.jl
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ using Test
@test_throws DimensionMismatch b1 + Matrix(b3)

# Test on non-square blocks
# https://github.com/invenia/BlockDiagonals.jl/issues/124
# https://github.com/JuliaArrays/BlockDiagonals.jl/issues/124
@test bns + Matrix(bns) == Matrix(bns) + Matrix(bns)
@test bns + C == Matrix(bns) + C

Expand Down Expand Up @@ -128,7 +128,7 @@ using Test
@test transpose(a) * b1 isa Transpose{<:Number,<:Vector}
@test a' * b1 ≈ a' * Matrix(b1)
@test transpose(a) * b1 ≈ transpose(a) * Matrix(b1)
# Method ambiguity with different eltypes https://github.com/invenia/BlockDiagonals.jl/issues/91
# Method ambiguity with different eltypes https://github.com/JuliaArrays/BlockDiagonals.jl/issues/91
@test a' * bi isa Adjoint{<:Number,<:Vector}
end

Expand Down