Skip to content

Commit

Permalink
Add plots
Browse files Browse the repository at this point in the history
  • Loading branch information
emmt committed Mar 5, 2021
1 parent 9460456 commit 4c6b050
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 1 deletion.
30 changes: 29 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,11 +104,39 @@ In Julia, hit the `]` key to switch to the package manager REPL (you should get
a `... pkg>` prompt) and type:

```julia
add https://github.com/emmt/MayOptimize.jl
add MayOptimize
```

No other packages are needed.


## Examples

`MayOptimize` extends a few base linear algebra methods such as the `ldiv!`
method which performs left division by a matrix `A` and can be called as:

```julia
using MayOptimize, LinearAlgebra
ldiv!(opt, A, b)
ldiv!(opt, y, A, b)
```

In the first case, the operation is done in-place and `b` is overwritten with
`A\b`, in the second case, `A\b` is stored in `y`. Argument `opt` can be
`MayOptimize.Standard` to use Julia standard method (probably BLAS), `Debug`,
`InBounds` or `Vectorize` to compile Julia code in `MayOptimize` with different
optimization settings. The following figures show how efficient can be Julia
code when compiled with well chosen optimization settings.

![Left division by a lower triangular matrix](figs/ldiv-L-median.png "")

![Left division by the transpose of a lower triangular matrix](figs/ldiv-Lt-median.png "")

![Left division by an upper triangular matrix](figs/ldiv-R-median.png "")

![Left division by the transpose of an upper triangular matrix](figs/ldiv-Rt-median.png "")


[repository-url]: https://github.com/emmt/MayOptimize.jl

[doc-dev-img]: https://img.shields.io/badge/docs-dev-blue.svg
Expand Down
Binary file added figs/ldiv-L-median.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added figs/ldiv-Lt-median.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added figs/ldiv-R-median.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added figs/ldiv-Rt-median.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 4c6b050

Please sign in to comment.