mat: change cholesky.To to cholesky.ToSym (#250)

* mat: change cholesky.To to cholesky.ToSym

Fixes #133
This commit is contained in:
Brendan Tracey
2017-10-02 15:35:10 -06:00
committed by GitHub
parent 18ecaeca93
commit fa42c6938b
5 changed files with 12 additions and 12 deletions

View File

@@ -268,10 +268,10 @@ func (c *Cholesky) LTo(dst *TriDense) *TriDense {
return dst
}
// To reconstructs the original positive definite matrix given its
// ToSym reconstructs the original positive definite matrix given its
// Cholesky decomposition into dst and returns the result. If dst is nil
// a new SymDense is allocated.
func (c *Cholesky) To(dst *SymDense) *SymDense {
func (c *Cholesky) ToSym(dst *SymDense) *SymDense {
if !c.valid() {
panic(badCholesky)
}