# README
Gosl. la/oblas. Wrapper to OpenBLAS
This subpackge implements a light wrapper to OpenBLAS. Therefore, its routines are a little more
lower level than the ones in the parent package la
.
API
# Functions
ColMajorCtoSlice converts col-major matrix to nested slice.
ColMajorToSlice converts col-major matrix to nested slice.
EigenvecsBuild builds complex eigenvectors created by Dgeev function INPUT: wr, wi -- real and imag parts of eigenvalues v -- left or right eigenvectors from Dgeev OUTPUT: vv -- complex version of left or right eigenvector [pre-allocated] NOTE (no checks made) n = len(wr) = len(wi) n * n = len(v) n * n = len(vv).
EigenvecsBuildBoth builds complex left and right eigenvectors created by Dgeev function INPUT: wr, wi -- real and imag parts of eigenvalues vl, vr -- left and right eigenvectors from Dgeev OUTPUT: vvl, vvr -- complex version of left and right eigenvectors [pre-allocated] NOTE (no checks made) n = len(wr) = len(wi) n * n = len(vl) = len(vr) n * n = len(vvl) = len(vvr).
ExtractCol extracts j column from (m,n) col-major matrix.
ExtractColC extracts j column from (m,n) col-major matrix (complex version).
ExtractRow extracts i row from (m,n) col-major matrix.
ExtractRowC extracts i row from (m,n) col-major matrix (complex version).
GetJoinComplex joins real and imag parts of array.
GetSplitComplex splits real and imag parts of array.
JoinComplex joins real and imag parts of array.
PrintColMajor prints matrix (without commas or brackets).
PrintColMajorC prints matrix (without commas or brackets).
PrintColMajorCgo prints matrix in Go format NOTE: if non-empty, nfmtI must have '+' e.g.
PrintColMajorCpy prints matrix in Python format NOTE: if non-empty, nfmtI must have '+' e.g.
PrintColMajorGo prints matrix in Go format.
PrintColMajorPy prints matrix in Python format.
SliceToColMajor converts nested slice into an array representing a col-major matrix
Example: _ _ | 0 3 | a = | 1 4 | ⇒ data = [0, 1, 2, 3, 4, 5] |_ 2 5 _|(m x n)
data[i+j*m] = a[i][j]
NOTE: make sure to have at least 1x1 item.
SliceToColMajorC converts nested slice into an array representing a col-major matrix of complex numbers.
SplitComplex splits real and imag parts of array.