blas64: add length field N to Vector

blas64: add length field N to Vector

Alongside, fix the implementation of mat.VecDense and mat.Diagonal, as well as other changes needed to fix this change.

Fixes #736.
This commit is contained in:
Brendan Tracey
2018-12-10 08:36:04 +00:00
committed by GitHub
parent 6b862e40c9
commit 572d9101fe
32 changed files with 228 additions and 223 deletions

View File

@@ -128,7 +128,7 @@ func (v *VecDense) SolveVec(a Matrix, b Vector) error {
// and bm as overlapping but not identical.
bm := m
if v != b {
b := VecDense{mat: bmat, n: b.Len()}
b := VecDense{mat: bmat}
bm = b.asDense()
}
return m.Solve(a, bm)