mirror of
https://github.com/gonum/gonum.git
synced 2025-10-23 15:13:31 +08:00
mat: change cholesky.To to cholesky.ToSym (#250)
* mat: change cholesky.To to cholesky.ToSym Fixes #133
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
Reference in New Issue
Block a user