1 // Code generated by "go generate gonum.org/v1/gonum/blas/gonum”; DO NOT EDIT.
3 // Copyright ©2014 The Gonum Authors. All rights reserved.
4 // Use of this source code is governed by a BSD-style
5 // license that can be found in the LICENSE file.
10 math "gonum.org/v1/gonum/internal/math32"
13 type general32 struct {
19 func (g general32) clone() general32 {
20 data := make([]float32, len(g.data))
30 func (g general32) equal(a general32) bool {
31 if g.rows != a.rows || g.cols != a.cols || g.stride != a.stride {
34 for i, v := range g.data {
42 func (g general32) equalWithinAbs(a general32, tol float32) bool {
43 if g.rows != a.rows || g.cols != a.cols || g.stride != a.stride {
46 for i, v := range g.data {
47 if math.Abs(a.data[i]-v) > tol {