https://github.com/musm/easytranspose.jl
๐ Easily transpose arrays and vectors
https://github.com/musm/easytranspose.jl
julia
Last synced: about 1 year ago
JSON representation
๐ Easily transpose arrays and vectors
- Host: GitHub
- URL: https://github.com/musm/easytranspose.jl
- Owner: musm
- License: mit
- Created: 2018-12-03T15:11:21.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2020-09-26T09:06:27.000Z (over 5 years ago)
- Last Synced: 2025-03-24T08:55:38.934Z (over 1 year ago)
- Topics: julia
- Language: Julia
- Homepage:
- Size: 16.6 KB
- Stars: 5
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# EasyTranspose.jl
Easily transpose arrays and vectors in Julia using `แต`:
```julia
using EasyTranspose
julia> [1, 2, 3]แต == [1 2 3]
true
julia> A = randn(3,5);
julia> (A)แต
5ร3 Array{Float64,2}:
1.05165 -1.56987 -0.227402
-0.0827963 -0.314905 -0.126144
-0.944382 0.245913 1.43961
-0.799775 0.571537 0.199715
0.369704 -0.323379 -0.49699
```
This is accomplished by overloading the `*` operator.
credits: Jeffrey Sarnoff, Michael K. Borregaard