gonum / blas

A BLAS implementation for Go [DEPRECATED]
172 stars 16 forks source link

blas64: order of fields in exported structs #201

Closed vladimir-ch closed 5 years ago

vladimir-ch commented 7 years ago

The order of fields in structs like Vector or General should follow the order in which they typically appear in a function call. This would make more natural and easier to understand calls with inline declarations with unnamed fields. For example, in case of Vector and Dscal:

native.Implementation{}.Dscal(n, scale, x, 1)
vs.
blas64.Scal(n, scale, blas64.Vector{1, x})

Similarly for General and other types.

vladimir-ch commented 5 years ago

Closing because this repository is no longer maintained. Development has moved to https://github.com/gonum/gonum.

Done in https://github.com/gonum/gonum/pull/571