This package is part of the Julia standard library (stdlib).
LinearAlgebra.jl provides functionality for performing linear algebra operations in Julia.
| Build Status | Coverage |
|---|---|
This package performs some type piracy and is also included in the sysimage, which makes using a development version slightly more complex than usual.
To use a development version of this package, you can choose one of the following methods:
-
Prune the sysimg version and load the package:
Start
juliaasJULIA_PRUNE_OLD_LA=true julia +nightly --compiled-modules=existing --project -i -e 'include("test/prune_old_LA.jl")'where it is assumed that one is already within the
LinearAlgebradirectory (otherwise, adjust the project path accordingly). Thejulia +nightlycommand above assumes thatjuliaupis being used to launchjulia, but one may substitute this with the path to the julia executable. -
Build Julia with the custom
LinearAlgebracommit:Modify the commit in
stdlib/LinearAlgebra.versionand build Julia. This requires one to push the development branch toGitHubor an equivalent platform. -
Build a custom sysimage with the new
LinearAlgebra:- Install
PackageCompiler. - Load it and, with this project active, run:
create_sysimage(["LinearAlgebra"]; sysimage_path="new_sysimage.so", incremental=false, filter_stdlibs=true)
- Start Julia with the custom sysimage:
julia -Jnew_sysimage.so
- Install
Since this package was split out from the main Julia repository, you might have previously made a pull request (PR) to the Julia repo. You can easily migrate such PRs to this repository using the following steps:
-
Add the Julia repository (or your fork) as a new remote repository:
git remote add juliarepo https://github.com/JuliaLang/julia
-
Fetch the commits from the Julia repository:
git fetch juliarepo
-
Cherry-pick the relevant commits made in the Julia repository to this repository:
git cherry-pick $JULIA_COMMIT