An open API service indexing awesome lists of open source software.

https://github.com/quantumbfs/juliamatrix

A tutorial for matrix computation in Julia Language
https://github.com/quantumbfs/juliamatrix

Last synced: about 1 year ago
JSON representation

A tutorial for matrix computation in Julia Language

Awesome Lists containing this project

README

          

# Tutorial for high performance matrix computations, in Julia

## Table of Contents
#### Performance Tips
* How to `@time` and `@benchmark` a piece of code
* Use `@simd`, `@inbounds` and `@inline` to speed up codes
* Use `StaticArrays.jl` for small matrices of fixed size to avoid allocation
* Improve type stability

#### Matrices
* Use `LinearMaps.jl` to view a linear function as a matrix
* fast `eigen solver` and `expmv`
* Sparse Matrices

* CSC Sparse Matrix
* General Permutation Matrix
* Identity Matrix

* Tensor Operations

## Preparations
* install latest [julia](https://julialang.org/)
* install required packages, open a julia REPL, type

* Pkg.add("BenchmarkTools")
* Pkg.add("TensorOperations")
* Pkg.add("Yao")
* Pkg.add("LinearMaps")
* Pkg.add("IJulia")
* Pkg.clone("https://github.com/GiggleLiu/Expokit.jl.git")

* type `jupyter notebook`, and open the notebook "notebooks/juliamatrix.ipynb"