Versions in this module Expand all Collapse all v1 v1.0.0 Oct 9, 2017 Changes in this version + func CheckEigenVecL(tst *testing.T, A *Matrix, λ VectorC, u *MatrixC, tol float64) + func CheckEigenVecR(tst *testing.T, A *Matrix, λ VectorC, v *MatrixC, tol float64) + func Cholesky(L, a *Matrix) + func DenSolve(x Vector, A *Matrix, b Vector, preserveA bool) + func EigenVal(w VectorC, A *Matrix, preserveA bool) + func EigenVecL(u *MatrixC, w VectorC, A *Matrix, preserveA bool) + func EigenVecLR(u, v *MatrixC, w VectorC, A *Matrix, preserveA bool) + func EigenVecR(v *MatrixC, w VectorC, A *Matrix, preserveA bool) + func Jacobi(Q *Matrix, v Vector, A *Matrix) + func MatCondNum(a *Matrix, normtype string) (res float64) + func MatInv(ai, a *Matrix, calcDet bool) (det float64) + func MatInvSmall(ai, a *Matrix, tol float64) (det float64) + func MatMatMul(c *Matrix, α float64, a, b *Matrix) + func MatMatMulAdd(c *Matrix, α float64, a, b *Matrix) + func MatMatTrMul(c *Matrix, α float64, a, b *Matrix) + func MatMatTrMulAdd(c *Matrix, α float64, a, b *Matrix) + func MatSvd(s []float64, u, vt, a *Matrix, copyA bool) + func MatTrMatMul(c *Matrix, α float64, a, b *Matrix) + func MatTrMatMulAdd(c *Matrix, α float64, a, b *Matrix) + func MatTrMatTrMul(c *Matrix, α float64, a, b *Matrix) + func MatTrMatTrMulAdd(c *Matrix, α float64, a, b *Matrix) + func MatTrVecMul(v Vector, α float64, a *Matrix, u Vector) + func MatVecMul(v Vector, α float64, a *Matrix, u Vector) + func MatVecMulAdd(v Vector, α float64, a *Matrix, u Vector) + func MatVecMulAddC(v VectorC, α complex128, a *MatrixC, u VectorC) + func MatVecMulC(v VectorC, α complex128, a *MatrixC, u VectorC) + func SolveRealLinSysSPD(x Vector, a *Matrix, b Vector) + func SolveTwoRealLinSysSPD(x, X Vector, a *Matrix, b, B Vector) + func SpCheckDiag(a *CCMatrix) bool + func SpInitRc(R *CCMatrix, C *CCMatrixC, J *CCMatrix) + func SpInitSimilar(b *CCMatrix, a *CCMatrix) + func SpInitSimilarR2C(b *CCMatrixC, a *CCMatrix) + func SpMatAddI(r *CCMatrix, α float64, a *CCMatrix, β float64) + func SpMatAddMat(c *CCMatrix, α float64, a *CCMatrix, β float64, b *CCMatrix, a2c, b2c []int) + func SpMatAddMatC(C *CCMatrixC, R *CCMatrix, α, β, γ float64, a *CCMatrix, μ float64, ...) + func SpMatMatTrMul(b *Matrix, α float64, a *CCMatrix) + func SpMatTrVecMul(v Vector, α float64, a *CCMatrix, u Vector) + func SpMatTrVecMulAdd(v Vector, α float64, a *CCMatrix, u Vector) + func SpMatTrVecMulAddC(v VectorC, α complex128, a *CCMatrixC, u VectorC) + func SpMatTrVecMulC(v VectorC, α complex128, a *CCMatrixC, u VectorC) + func SpMatVecMul(v Vector, α float64, a *CCMatrix, u Vector) + func SpMatVecMulAdd(v Vector, α float64, a *CCMatrix, u Vector) + func SpMatVecMulAddC(v VectorC, α complex128, a *CCMatrixC, u VectorC) + func SpMatVecMulAddX(v Vector, a *CCMatrix, α float64, u Vector, β float64, w Vector) + func SpMatVecMulC(v VectorC, α complex128, a *CCMatrixC, u VectorC) + func SpSetRc(R *CCMatrix, C *CCMatrixC, α, β, γ float64, J *CCMatrix) + func SpTriAdd(c *Triplet, α float64, a *Triplet, β float64, b *Triplet) + func SpTriAddR2C(c *TripletC, α, β float64, a *Triplet, μ float64, b *Triplet) + func SpTriMatTrVecMul(y Vector, a *Triplet, x Vector) + func SpTriMatVecMul(y Vector, a *Triplet, x Vector) + func SpTriReduce(comm *mpi.Communicator, J *Triplet) — js/wasm, linux/amd64 + func SpTriSetDiag(a *Triplet, n int, v float64) + func TestSolverResidual(tst *testing.T, a *Matrix, x, b Vector, tolNorm float64) + func TestSolverResidualC(tst *testing.T, a *MatrixC, x, b VectorC, tolNorm float64) + func TestSpSolver(tst *testing.T, solverKind string, symmetric bool, t *Triplet, ...) + func TestSpSolverC(tst *testing.T, solverKind string, symmetric bool, t *TripletC, ...) + func VecAdd(res Vector, α float64, u Vector, β float64, v Vector) + func VecDot(u, v Vector) (res float64) + func VecMaxDiff(u, v Vector) (maxdiff float64) + func VecRmsError(u, v Vector, a, m float64, s Vector) (rms float64) + func VecScaleAbs(scale Vector, a, m float64, x Vector) + type CCMatrix struct + func SpAllocMatAddMat(a, b *CCMatrix) (c *CCMatrix, a2c, b2c []int) + func (o *CCMatrix) Set(m, n int, Ap, Ai []int, Ax []float64) + func (o *CCMatrix) ToDense() (res *Matrix) + func (o *CCMatrix) WriteSmat(dirout, fnkey string, tol float64) + type CCMatrixC struct + func (o *CCMatrixC) ToDense() (res *MatrixC) + func (o *CCMatrixC) WriteSmat(dirout, fnkey string, tol float64) + func (o *CCMatrixC) WriteSmatAbs(dirout, fnkey string, tol float64) + type Equations struct + Akk *Triplet + Aku *Triplet + Auk *Triplet + Auu *Triplet + Bk Vector + Bu Vector + Dkk *Matrix + Dku *Matrix + Duk *Matrix + Duu *Matrix + FtoK []int + FtoU []int + KtoF []int + N int + Nk int + Nu int + UtoF []int + Xk Vector + Xu Vector + func NewEquations(n int, kx []int) (o *Equations) + func (o *Equations) Alloc(nnz []int, kparts, vectors bool) + func (o *Equations) AllocDense(kparts bool) + func (o *Equations) JoinVector(b, bu, bk Vector) + func (o *Equations) Print(full bool) + func (o *Equations) Put(I, J int, value float64) + func (o *Equations) SetDense(A *Matrix, kparts bool) + func (o *Equations) SplitVector(bu, bk, b Vector) + func (o *Equations) Start() + type Matrix struct + Data []float64 + M int + N int + func NewMatrix(m, n int) (o *Matrix) + func NewMatrixDeep2(a [][]float64) (o *Matrix) + func (o *Matrix) Add(i, j int, val float64) + func (o *Matrix) ClearBry(diag float64) + func (o *Matrix) ClearRC(rows, cols []int, diag float64) + func (o *Matrix) Col(j int) Vector + func (o *Matrix) CopyInto(result *Matrix, α float64) + func (o *Matrix) Det() (det float64) + func (o *Matrix) Fill(val float64) + func (o *Matrix) Get(i, j int) float64 + func (o *Matrix) GetCol(j int) (col Vector) + func (o *Matrix) GetComplex() (b *MatrixC) + func (o *Matrix) GetCopy() (clone *Matrix) + func (o *Matrix) GetDeep2() (M [][]float64) + func (o *Matrix) GetRow(i int) (row Vector) + func (o *Matrix) GetTranspose() (tran *Matrix) + func (o *Matrix) Largest(den float64) (largest float64) + func (o *Matrix) MaxDiff(another *Matrix) (maxdiff float64) + func (o *Matrix) NormFrob() (nrm float64) + func (o *Matrix) NormInf() (nrm float64) + func (o *Matrix) Print(nfmt string) (l string) + func (o *Matrix) PrintGo(nfmt string) (l string) + func (o *Matrix) PrintPy(nfmt string) (l string) + func (o *Matrix) Set(i, j int, val float64) + func (o *Matrix) SetDiag(val float64) + func (o *Matrix) SetFromDeep2(a [][]float64) + func (o Matrix) Apply(α float64, another *Matrix) + type MatrixC struct + Data []complex128 + M int + N int + func NewMatrixC(m, n int) (o *MatrixC) + func NewMatrixDeep2c(a [][]complex128) (o *MatrixC) + func (o *MatrixC) Add(i, j int, val complex128) + func (o *MatrixC) Col(j int) VectorC + func (o *MatrixC) Fill(val complex128) + func (o *MatrixC) Get(i, j int) complex128 + func (o *MatrixC) GetCol(j int) (col VectorC) + func (o *MatrixC) GetColReal(j int, checkZeroImag bool) (col Vector) + func (o *MatrixC) GetCopy() (clone *MatrixC) + func (o *MatrixC) GetDeep2() (M [][]complex128) + func (o *MatrixC) GetRow(i int) (row VectorC) + func (o *MatrixC) GetTranspose() (tran *MatrixC) + func (o *MatrixC) Print(nfmtR, nfmtI string) (l string) + func (o *MatrixC) PrintGo(nfmtR, nfmtI string) (l string) + func (o *MatrixC) PrintPy(nfmtR, nfmtI string) (l string) + func (o *MatrixC) Set(i, j int, val complex128) + func (o *MatrixC) SetFromDeep2c(a [][]complex128) + func (o MatrixC) Apply(α complex128, another *MatrixC) + type Mumps struct — js/wasm, linux/amd64 + func (o *Mumps) Fact() + func (o *Mumps) Free() + func (o *Mumps) Init(t *Triplet, symmetric, verbose bool, ordering, scaling string, ...) + func (o *Mumps) Solve(x, b Vector, bIsDistr bool) + type MumpsC struct — js/wasm, linux/amd64 + func (o *MumpsC) Fact() + func (o *MumpsC) Free() + func (o *MumpsC) Init(t *TripletC, symmetric, verbose bool, ordering, scaling string, ...) + func (o *MumpsC) Solve(x, b VectorC, bIsDistr bool) + type SparseSolver interface + Fact func() + Free func() + Init func(t *Triplet, symmetric, verbose bool, ordering, scaling string, ...) + Solve func(x, b Vector, bIsDistr bool) + func NewSparseSolver(kind string) SparseSolver + type SparseSolverC interface + Fact func() + Free func() + Init func(t *TripletC, symmetric, verbose bool, ordering, scaling string, ...) + Solve func(x, b VectorC, bIsDistr bool) + func NewSparseSolverC(kind string) SparseSolverC + type Triplet struct + func NewTriplet(m, n, max int) (o *Triplet) + func (o *Triplet) Init(m, n, max int) + func (o *Triplet) Len() int + func (o *Triplet) Max() int + func (o *Triplet) Put(i, j int, x float64) + func (o *Triplet) PutCCMatAndMatT(a *CCMatrix) + func (o *Triplet) PutMatAndMatT(a *Triplet) + func (o *Triplet) ReadSmat(filename string) + func (o *Triplet) Start() + func (o *Triplet) ToDense() (a *Matrix) + func (o *Triplet) WriteSmat(dirout, fnkey string, tol float64) (cmat *CCMatrix) + func (t *Triplet) ToMatrix(a *CCMatrix) *CCMatrix + type TripletC struct + func NewTripletC(m, n, max int) (o *TripletC) + func (o *TripletC) Init(m, n, max int) + func (o *TripletC) Len() int + func (o *TripletC) Max() int + func (o *TripletC) Put(i, j int, x complex128) + func (o *TripletC) ReadSmat(filename string) + func (o *TripletC) Start() + func (o *TripletC) ToDense() (a *MatrixC) + func (o *TripletC) WriteSmat(dirout, fnkey string, tol float64) (cmat *CCMatrixC) + func (t *TripletC) ToMatrix(a *CCMatrixC) *CCMatrixC + type Umfpack struct + func (o *Umfpack) Fact() + func (o *Umfpack) Free() + func (o *Umfpack) Init(t *Triplet, symmetric, verbose bool, ordering, scaling string, ...) + func (o *Umfpack) Solve(x, b Vector, dummy bool) + type UmfpackC struct + func (o *UmfpackC) Fact() + func (o *UmfpackC) Free() + func (o *UmfpackC) Init(t *TripletC, symmetric, verbose bool, ordering, scaling string, ...) + func (o *UmfpackC) Solve(x, b VectorC, dummy bool) + type Vector []float64 + func NewVector(m int) Vector + func NewVectorMapped(m int, f func(i int) float64) (o Vector) + func SpSolve(A *Triplet, b Vector) (x Vector) + func (o Vector) Accum() (sum float64) + func (o Vector) Apply(α float64, another Vector) + func (o Vector) ApplyFunc(f func(i int, x float64) float64) + func (o Vector) Fill(val float64) + func (o Vector) GetCopy() (clone Vector) + func (o Vector) Largest(den float64) (largest float64) + func (o Vector) Max() (max float64) + func (o Vector) Min() (min float64) + func (o Vector) MinMax() (min, max float64) + func (o Vector) Norm() (nrm float64) + func (o Vector) NormDiff(v Vector) (nrm float64) + func (o Vector) Rms() (rms float64) + type VectorC []complex128 + func NewVectorC(m int) VectorC + func NewVectorMappedC(m int, f func(i int) complex128) (o VectorC) + func SpSolveC(A *TripletC, b VectorC) (x VectorC) + func (o VectorC) Apply(α complex128, another VectorC) + func (o VectorC) ApplyFunc(f func(i int, x complex128) complex128) + func (o VectorC) Fill(s complex128) + func (o VectorC) GetCopy() (clone VectorC) + func (o VectorC) JoinRealImag(xR, xI Vector) + func (o VectorC) MaxDiff(b VectorC) float64 + func (o VectorC) Norm() (nrm complex128) + func (o VectorC) SplitRealImag(xR, xI Vector)