mirror of
https://github.com/gonum/gonum.git
synced 2025-10-05 23:26:52 +08:00
mat: Rename Solve(Vec) to Solve(Vec)To (#922)
* mat: Rename Solve(Vec) to Solev(Vec)To Fix #830.
This commit is contained in:
@@ -35,7 +35,7 @@ func ExampleCholesky() {
|
||||
// Use the factorization to solve the system of equations a * x = b.
|
||||
b := mat.NewVecDense(4, []float64{1, 2, 3, 4})
|
||||
var x mat.VecDense
|
||||
if err := chol.SolveVec(&x, b); err != nil {
|
||||
if err := chol.SolveVecTo(&x, b); err != nil {
|
||||
fmt.Println("Matrix is near singular: ", err)
|
||||
}
|
||||
fmt.Println("Solve a * x = b")
|
||||
|
Reference in New Issue
Block a user