Skip to content

Commit

Permalink
change package name
Browse files Browse the repository at this point in the history
  • Loading branch information
bjarthur committed Jan 19, 2022
1 parent 3041441 commit 128ea14
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name = "PackedArrays"
name = "SymmetricFormats"
uuid = "a91e544d-b3d6-4431-ae28-0549b1291c16"
authors = ["Ben Arthur <arthurb@hhmi.org>"]
version = "0.1.0"
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
PackedArrays.jl defines the `SymmetricPacked` type which concatenates the
SymmetricFormats.jl defines the `SymmetricPacked` type which concatenates the
columns of either the upper or lower triangle into a vector thereby using
only a little more than half the memory.

```
julia> using PackedArrays
julia> using SymmetricFormats
julia> A = rand(5,5)
5×5 Matrix{Float64}:
Expand Down
2 changes: 1 addition & 1 deletion src/PackedArrays.jl → src/SymmetricFormats.jl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module PackedArrays
module SymmetricFormats

import Base: require_one_based_indexing, size, convert, unsafe_convert
import Base: getindex, setindex!, copy
Expand Down
14 changes: 7 additions & 7 deletions test/blas.jl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using PackedArrays, Test, LinearAlgebra
using SymmetricFormats, Test, LinearAlgebra

n=10
for elty in (Float32, Float64)
Expand All @@ -9,14 +9,14 @@ for elty in (Float32, Float64)
AU = Symmetric(M, :U)
x = rand(elty, n)

ALP_result_julia_lower = PackedArrays.pack*x*x' + AL, :L)
ALP_result_blas_lower = PackedArrays.pack(AL, :L)
PackedArrays.spr!('L', α, x, ALP_result_blas_lower)
ALP_result_julia_lower = SymmetricFormats.pack*x*x' + AL, :L)
ALP_result_blas_lower = SymmetricFormats.pack(AL, :L)
SymmetricFormats.spr!('L', α, x, ALP_result_blas_lower)
@test ALP_result_julia_lower ALP_result_blas_lower

AUP_result_julia_upper = PackedArrays.pack*x*x' + AU, :U)
AUP_result_blas_upper = PackedArrays.pack(AU, :U)
PackedArrays.spr!('U', α, x, AUP_result_blas_upper)
AUP_result_julia_upper = SymmetricFormats.pack*x*x' + AU, :U)
AUP_result_blas_upper = SymmetricFormats.pack(AU, :U)
SymmetricFormats.spr!('U', α, x, AUP_result_blas_upper)
@test AUP_result_julia_upper AUP_result_blas_upper
end
end
2 changes: 1 addition & 1 deletion test/runtests.jl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using PackedArrays, Test, LinearAlgebra
using SymmetricFormats, Test, LinearAlgebra

A = collect(reshape(1:9.0,3,3))

Expand Down

0 comments on commit 128ea14

Please sign in to comment.