mirror of
				https://github.com/gonum/gonum.git
				synced 2025-10-31 18:42:45 +08:00 
			
		
		
		
	matrix/mat64: use pools for []float64 and []int where possible
This commit is contained in:
		| @@ -64,9 +64,11 @@ func (m *Dense) Solve(a, b Matrix) error { | ||||
|  | ||||
| 		rm := rma.RawTriangular() | ||||
| 		blas64.Trsm(side, tA, 1, rm, m.mat) | ||||
| 		work := make([]float64, 3*rm.N) | ||||
| 		iwork := make([]int, rm.N) | ||||
| 		work := getFloats(3*rm.N, false) | ||||
| 		iwork := getInts(rm.N, false) | ||||
| 		cond := lapack64.Trcon(matrix.CondNorm, rm, work, iwork) | ||||
| 		putFloats(work) | ||||
| 		putInts(iwork) | ||||
| 		if cond > matrix.ConditionTolerance { | ||||
| 			return matrix.Condition(cond) | ||||
| 		} | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 kortschak
					kortschak