1 // Copyright ©2014 The Gonum Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file.
11 type general64 struct {
17 func (g general64) clone() general64 {
18 data := make([]float64, len(g.data))
28 func (g general64) equal(a general64) bool {
29 if g.rows != a.rows || g.cols != a.cols || g.stride != a.stride {
32 for i, v := range g.data {
40 func (g general64) equalWithinAbs(a general64, tol float64) bool {
41 if g.rows != a.rows || g.cols != a.cols || g.stride != a.stride {
44 for i, v := range g.data {
45 if math.Abs(a.data[i]-v) > tol {