Debian Codegraph @

/

debian golang-github-gorgonia-vecf64 0.9.0-2debian golang-github-gorgonia-vecf64-dev gomod gorgonia.org/vecf64 debiangogoinimakefilemarkdownshelltomlyaml 29 files · 259 symbols
View dependency graph

Depends on

README (full)

vecf64 GoDoc Build Status Coverage Status

Package vecf64 provides common functions and methods for slices of float64

Installation

go get -u gorgonia.org/vecf64

This package uses the standard library only. For testing this package uses testify/assert, which is licenced with a MIT/BSD-like licence

Build Tags

The point of this package is to provide operations that are accelerated by SIMD. However, this pakcage by default does not use SIMD. To use SIMD, build tags must be used. The supported build tags are sse and avx. Here's an example on how to use them:

  • SSE - `go build -tags='sse' ...
  • AVX - `go build -tags='avx' ...

Why are there so many a = a[:len(a)] lines?

This is mainly done to eliminate bounds checking in a loop. The idea is the bounds of the slice is checked early on, and if need be, panics early. Then if everything is normal, there won't be bounds checking while in the loop.

To check for boundschecking and bounds check elimination (an amazing feature that landed in Go 1.7), compile your programs with -gcflags='-d=ssa/check_bce/debug=1'.

Contributing

Contributions are welcome. The typical process works like this:

  1. File an issue on the topic you want to contribute
  2. Fork this repo
  3. Add your contribution
  4. Make a pull request
  5. The pull request will be merged once tests pass, and code reviewed.
  6. Add your name (if it hasn't already been added to CONTRIBUTORS.md)

Pull Requests

This package is very well tested. Please ensure tests are written if any new features are added. If bugs are fixed, please add the bugs to the tests as well.

Licence

Package vecf64 is licenced under the MIT licence.

dir debian/
file .gitignore
file .travis.yml
file CONTRIBUTORS.md
file Gopkg.lock
file Gopkg.toml
file LICENSE
file README.md
file arith.go
file arith_bench_test.go
file arith_test.go
file asm.go
file asm_test.go
file asm_vecAdd_avx.s
file asm_vecAdd_sse.s
file asm_vecDiv_avx.s
file asm_vecDiv_sse.s
file asm_vecExp_avx.s
file asm_vecInvSqrt_avx.s
file asm_vecInvSqrt_sse.s
file asm_vecMul_avx.s
file asm_vecMul_sse.s
file asm_vecSqrt_avx.s
file asm_vecSqrt_sse.s
file asm_vecSub_avx.s
file asm_vecSub_sse.s
file bench.sh
file doc.go
file final.cover
file go.go
file go.mod
file go.sum
file go_test.go
file incr.go
file incr_test.go
file test.cover
file test.cover.avx
file test.cover.sse
file test.sh
file utils.go