// Copyright ©2014 The Gonum Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package mat import ( "math/bits" "sync" "gonum.org/v1/gonum/blas" "gonum.org/v1/gonum/blas/blas64" "gonum.org/v1/gonum/blas/cblas128" ) // poolFor returns the ceiling of base 2 log of size. It provides an index // into a pool array to a sync.Pool that will return values able to hold // size elements. func poolFor(size uint) int { if size == 0 { return 0 } return bits.Len(size - 1) } var ( // poolDense contains size stratified workspace Dense pools. // Each poolDense element i returns sized matrices with a data // slice capped at 1<