Skip to content

Commit d8b0ec9

Browse files
mtfishmangithub-actions[bot]
authored andcommitted
Format .jl files (Runic)
1 parent 06871fd commit d8b0ec9

File tree

13 files changed

+465
-463
lines changed

13 files changed

+465
-463
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "SerializedArrays"
22
uuid = "621c0da3-e96e-4f80-bd06-5ae31cdfcb39"
33
authors = ["ITensor developers <support@itensor.org> and contributors"]
4-
version = "0.2.1"
4+
version = "0.2.2"
55

66
[deps]
77
ConstructionBase = "187b0558-2788-49d3-abe0-74a17ed4e7c9"

docs/make.jl

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,23 +2,23 @@ using SerializedArrays: SerializedArrays
22
using Documenter: Documenter, DocMeta, deploydocs, makedocs
33

44
DocMeta.setdocmeta!(
5-
SerializedArrays, :DocTestSetup, :(using SerializedArrays); recursive=true
5+
SerializedArrays, :DocTestSetup, :(using SerializedArrays); recursive = true
66
)
77

88
include("make_index.jl")
99

1010
makedocs(;
11-
modules=[SerializedArrays],
12-
authors="ITensor developers <support@itensor.org> and contributors",
13-
sitename="SerializedArrays.jl",
14-
format=Documenter.HTML(;
15-
canonical="https://itensor.github.io/SerializedArrays.jl",
16-
edit_link="main",
17-
assets=["assets/favicon.ico", "assets/extras.css"],
18-
),
19-
pages=["Home" => "index.md", "Reference" => "reference.md"],
11+
modules = [SerializedArrays],
12+
authors = "ITensor developers <support@itensor.org> and contributors",
13+
sitename = "SerializedArrays.jl",
14+
format = Documenter.HTML(;
15+
canonical = "https://itensor.github.io/SerializedArrays.jl",
16+
edit_link = "main",
17+
assets = ["assets/favicon.ico", "assets/extras.css"],
18+
),
19+
pages = ["Home" => "index.md", "Reference" => "reference.md"],
2020
)
2121

2222
deploydocs(;
23-
repo="github.com/ITensor/SerializedArrays.jl", devbranch="main", push_preview=true
23+
repo = "github.com/ITensor/SerializedArrays.jl", devbranch = "main", push_preview = true
2424
)

docs/make_index.jl

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,20 @@ using Literate: Literate
22
using SerializedArrays: SerializedArrays
33

44
function ccq_logo(content)
5-
include_ccq_logo = """
5+
include_ccq_logo = """
66
```@raw html
77
<img class="display-light-only" src="assets/CCQ.png" width="20%" alt="Flatiron Center for Computational Quantum Physics logo."/>
88
<img class="display-dark-only" src="assets/CCQ-dark.png" width="20%" alt="Flatiron Center for Computational Quantum Physics logo."/>
99
```
1010
"""
11-
content = replace(content, "{CCQ_LOGO}" => include_ccq_logo)
12-
return content
11+
content = replace(content, "{CCQ_LOGO}" => include_ccq_logo)
12+
return content
1313
end
1414

1515
Literate.markdown(
16-
joinpath(pkgdir(SerializedArrays), "examples", "README.jl"),
17-
joinpath(pkgdir(SerializedArrays), "docs", "src");
18-
flavor=Literate.DocumenterFlavor(),
19-
name="index",
20-
postprocess=ccq_logo,
16+
joinpath(pkgdir(SerializedArrays), "examples", "README.jl"),
17+
joinpath(pkgdir(SerializedArrays), "docs", "src");
18+
flavor = Literate.DocumenterFlavor(),
19+
name = "index",
20+
postprocess = ccq_logo,
2121
)

docs/make_readme.jl

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,20 @@ using Literate: Literate
22
using SerializedArrays: SerializedArrays
33

44
function ccq_logo(content)
5-
include_ccq_logo = """
5+
include_ccq_logo = """
66
<picture>
77
<source media="(prefers-color-scheme: dark)" width="20%" srcset="docs/src/assets/CCQ-dark.png">
88
<img alt="Flatiron Center for Computational Quantum Physics logo." width="20%" src="docs/src/assets/CCQ.png">
99
</picture>
1010
"""
11-
content = replace(content, "{CCQ_LOGO}" => include_ccq_logo)
12-
return content
11+
content = replace(content, "{CCQ_LOGO}" => include_ccq_logo)
12+
return content
1313
end
1414

1515
Literate.markdown(
16-
joinpath(pkgdir(SerializedArrays), "examples", "README.jl"),
17-
joinpath(pkgdir(SerializedArrays));
18-
flavor=Literate.CommonMarkFlavor(),
19-
name="README",
20-
postprocess=ccq_logo,
16+
joinpath(pkgdir(SerializedArrays), "examples", "README.jl"),
17+
joinpath(pkgdir(SerializedArrays));
18+
flavor = Literate.CommonMarkFlavor(),
19+
name = "README",
20+
postprocess = ccq_logo,
2121
)

examples/README.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# # SerializedArrays.jl
2-
#
2+
#
33
# [![Stable](https://img.shields.io/badge/docs-stable-blue.svg)](https://itensor.github.io/SerializedArrays.jl/stable/)
44
# [![Dev](https://img.shields.io/badge/docs-dev-blue.svg)](https://itensor.github.io/SerializedArrays.jl/dev/)
55
# [![Build Status](https://github.com/ITensor/SerializedArrays.jl/actions/workflows/Tests.yml/badge.svg?branch=main)](https://github.com/ITensor/SerializedArrays.jl/actions/workflows/Tests.yml?query=branch%3Amain)

ext/SerializedArraysAdaptExt/SerializedArraysAdaptExt.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ using Adapt: Adapt
44
using SerializedArrays: SerializedArray
55

66
function Adapt.adapt_storage(arrayt::Type{<:SerializedArray}, a::AbstractArray)
7-
return convert(arrayt, a)
7+
return convert(arrayt, a)
88
end
99

1010
end

ext/SerializedArraysLinearAlgebraExt/SerializedArraysLinearAlgebraExt.jl

Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -4,48 +4,48 @@ using LinearAlgebra: LinearAlgebra, mul!
44
using SerializedArrays: AbstractSerializedMatrix, memory
55

66
function mul_serialized!(
7-
a_dest::AbstractMatrix, a1::AbstractMatrix, a2::AbstractMatrix, α::Number, β::Number
8-
)
9-
mul!(a_dest, memory(a1), memory(a2), α, β)
10-
return a_dest
7+
a_dest::AbstractMatrix, a1::AbstractMatrix, a2::AbstractMatrix, α::Number, β::Number
8+
)
9+
mul!(a_dest, memory(a1), memory(a2), α, β)
10+
return a_dest
1111
end
1212

1313
function LinearAlgebra.mul!(
14-
a_dest::AbstractMatrix,
15-
a1::AbstractSerializedMatrix,
16-
a2::AbstractSerializedMatrix,
17-
α::Number,
18-
β::Number,
19-
)
20-
return mul_serialized!(a_dest, a1, a2, α, β)
14+
a_dest::AbstractMatrix,
15+
a1::AbstractSerializedMatrix,
16+
a2::AbstractSerializedMatrix,
17+
α::Number,
18+
β::Number,
19+
)
20+
return mul_serialized!(a_dest, a1, a2, α, β)
2121
end
2222

2323
function LinearAlgebra.mul!(
24-
a_dest::AbstractMatrix,
25-
a1::AbstractMatrix,
26-
a2::AbstractSerializedMatrix,
27-
α::Number,
28-
β::Number,
29-
)
30-
return mul_serialized!(a_dest, a1, a2, α, β)
24+
a_dest::AbstractMatrix,
25+
a1::AbstractMatrix,
26+
a2::AbstractSerializedMatrix,
27+
α::Number,
28+
β::Number,
29+
)
30+
return mul_serialized!(a_dest, a1, a2, α, β)
3131
end
3232

3333
function LinearAlgebra.mul!(
34-
a_dest::AbstractMatrix,
35-
a1::AbstractSerializedMatrix,
36-
a2::AbstractMatrix,
37-
α::Number,
38-
β::Number,
39-
)
40-
return mul_serialized!(a_dest, a1, a2, α, β)
34+
a_dest::AbstractMatrix,
35+
a1::AbstractSerializedMatrix,
36+
a2::AbstractMatrix,
37+
α::Number,
38+
β::Number,
39+
)
40+
return mul_serialized!(a_dest, a1, a2, α, β)
4141
end
4242

4343
for f in [:eigen, :qr, :svd]
44-
@eval begin
45-
function LinearAlgebra.$f(a::AbstractSerializedMatrix; kwargs...)
46-
return LinearAlgebra.$f(copy(a))
44+
@eval begin
45+
function LinearAlgebra.$f(a::AbstractSerializedMatrix; kwargs...)
46+
return LinearAlgebra.$f(copy(a))
47+
end
4748
end
48-
end
4949
end
5050

5151
end

0 commit comments

Comments
 (0)