Browse Source

Support and test assembling of rectangular matrices.

pull/7/head
Fredrik Ekre 3 years ago
parent
commit
7b2d9a9809
  1. 5
      CHANGELOG.md
  2. 3
      test/runtests.jl

5
CHANGELOG.md

@ -6,6 +6,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), @@ -6,6 +6,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [Unreleased]
### Added
- Rectangular matrices can now be assembled by the new method
`HYPRE.assemble!(::HYPREMatrixAssembler, i::Vector, j::Vector, a::Matrix)` where `i` are
the rows and `j` the columns. ([#7][github-7])
### Deprecated
- The method `HYPRE.assemble!(A::HYPREMatrixAssembler, ij::Vector, a::Matrix)` have been
deprecated in favor of `HYPRE.assemble!(A::HYPREMatrixAssembler, i::Vector, j::Vector,
@ -32,6 +36,7 @@ Initial release of HYPRE.jl. @@ -32,6 +36,7 @@ Initial release of HYPRE.jl.
[github-2]: https://github.com/fredrikekre/HYPRE.jl/pull/2
[github-5]: https://github.com/fredrikekre/HYPRE.jl/pull/5
[github-6]: https://github.com/fredrikekre/HYPRE.jl/pull/6
[github-7]: https://github.com/fredrikekre/HYPRE.jl/pull/7
[1.0.0]: https://github.com/fredrikekre/HYPRE.jl/releases/tag/v1.0.0
[1.1.0]: https://github.com/fredrikekre/HYPRE.jl/compare/v1.0.0...v1.1.0

3
test/runtests.jl

@ -310,6 +310,9 @@ end @@ -310,6 +310,9 @@ end
a = rand(2, 2)
HYPRE.assemble!(assembler, idx, idx, a)
AM[idx, idx] += a
ar = rand(1, 2)
HYPRE.assemble!(assembler, [2], idx, ar)
AM[[2], idx] += ar
end
f = HYPRE.finish_assemble!(assembler)
@test f === A

Loading…
Cancel
Save