Patricio Whittingslow
93223b4004
num/quat: add slerp example
2023-08-25 15:00:58 +09:30
Dan Kortschak
cdc3ef589f
spatial/r3: fix deprecation syntax so it is recognised by pkgsite
2022-09-04 19:21:13 +09:30
Dan Kortschak
6f1c60918e
spatial/r3: add Jacobian layout description to doc comment
2022-09-02 19:20:57 +09:30
Patricio Whittingslow
0bc95eb1d3
spatial/r3: add Jacobian
2022-09-02 18:32:40 +09:30
soypat
177c87adcd
fix bugs in Gradient and test
2022-08-13 19:04:31 +09:30
soypat
1fbf8fb724
spatial/r3: add Gradient
2022-08-13 19:04:31 +09:30
Dan Kortschak
5f0141ca4c
all: run gofmt and generate all packages
...
Changes made in dsp/fourier/internal/fftpack break the formatting used
there, so these are reverted. There will be complaints in CI.
[git-generate]
gofmt -w .
go generate gonum.org/v1/gonum/blas
go generate gonum.org/v1/gonum/blas/gonum
go generate gonum.org/v1/gonum/unit
go generate gonum.org/v1/gonum/unit/constant
go generate gonum.org/v1/gonum/graph/formats/dot
go generate gonum.org/v1/gonum/graph/formats/rdf
go generate gonum.org/v1/gonum/stat/card
git checkout -- dsp/fourier/internal/fftpack
2022-08-06 07:05:17 +09:30
Dan Kortschak
8af7678edb
spatial/{r2,r3}: remove deprecated method functions
2022-08-06 07:05:17 +09:30
Patricio Whittingslow
c5022baf71
spatial/r3: deprecate Skew package level function in favor of method
...
This is preferred to prevent heap allocations.
2022-07-30 10:02:18 +09:30
Patricio Whittingslow
b8506697fa
r3.Mat: add Hessian
2022-07-29 18:35:20 +09:30
soypat
4ee7932b6c
spatial/r3: add Divergence
2022-07-29 18:34:33 +09:30
soypat
67f3e1dbfc
spatial/r3: add Triangle
2022-06-25 17:12:15 +09:30
soypat
7a3f4f578f
spatial/r2: add Triangle
2022-06-25 17:11:11 +09:30
soypat
c79d628c46
spatial/r3: add Box
2022-06-25 17:10:09 +09:30
soypat
7bc212517c
r2/spatial: add Box methods
2022-06-25 17:09:53 +09:30
Dan Kortschak
92bbdcdd97
spatial/r3: use array conversion in safe code
2022-03-11 06:38:45 +10:30
Dan Kortschak
809af93335
spatial/r3: remove duplicated API
2022-02-25 19:55:40 +10:30
Vladimir Chalupecky
f4e711476a
spatial/r3: rework test for RotationFromQuat
2022-02-25 08:49:24 +01:00
Vladimir Chalupecky
8e43cfd19a
spatial/r3: fix doc comments to start with function name
2022-02-23 22:29:02 +01:00
soypat
f96a8ce86c
spatial/r3: add Mat Outer,Det,RotateQuat methods
2022-02-23 22:22:23 +10:30
Dan Kortschak
735c35c056
spatial/r3: provide safe option for Mat operations
2022-01-08 06:32:22 +10:30
Patricio Whittingslow
538cdf8fac
spatial/r3: add Mat type
2021-12-16 21:29:45 +10:30
Dan Kortschak
c5ecad0dbb
spatial/r3: add example for why not to use Euler angles
2021-06-25 07:00:40 +09:30
Dan Kortschak
80c46516ed
spatial/r3: use lightweight matrix for rotations
...
This implements mat.Matrix and mat.RawMatrixer to gain the fast path for
matrix multiplication but does not have any of the machinery for resizing.
2021-06-25 06:59:45 +09:30
Dan Kortschak
2600994ee4
spatial/r3: add method to obtain a rotation matrix
2021-06-21 16:56:18 +09:30
Dan Kortschak
f2a128f642
spatial/{r2,r3}: fix/clarify doc comments
2021-06-20 16:45:59 +09:30
Dan Kortschak
bc8f19c664
spatial/vptree: don't do no work when n is greater than len(s)
2021-06-17 07:05:19 +09:30
Dan Kortschak
f2d8a2dacf
spatial/vptree: fix vantage point search when variance is zero
2021-06-17 07:05:19 +09:30
Dan Kortschak
ccc0da248a
all: run make builds pass with go master
...
Run gofmt go1.17 adds the new //go:build comments
2021-04-19 15:00:56 +09:30
Sebastien Binet
c9092a1e6a
spatial/r2,all: harmonize r2.Vec API with r3.Vec API
...
Migration to the new API can be achieved with this rsc.io/rf script:
```
rf ex {
import "gonum.org/v1/gonum/spatial/r2";
var p,q r2.Vec;
var f float64;
p.Add(q) -> r2.Add(p, q);
p.Sub(q) -> r2.Sub(p, q);
p.Scale(f) -> r2.Scale(f, p);
p.Dot(q) -> r2.Dot(p, q);
p.Cross(q) -> r2.Cross(p, q);
p.Rotate(f, q) -> r2.Rotate(p, f, q);
}
```
Updates gonum/gonum#1553 .
2021-01-29 12:39:42 +01:00
Sebastien Binet
3199e478a1
spatial/r3: harmonize Vec API with num/quat.Number
...
Migration to the new API can be achieved with this rsc.io/rf script:
```
rf ex {
import "gonum.org/v1/gonum/spatial/r3";
var p,q r3.Vec;
var f float64;
p.Add(q) -> r3.Add(p, q);
p.Sub(q) -> r3.Sub(p, q);
p.Scale(f) -> r3.Scale(f, p);
p.Dot(q) -> r3.Dot(p, q);
p.Cross(q) -> r3.Cross(p, q);
p.Rotate(f, q) -> r3.Rotate(p, f, q);
}
```
Updates gonum/gonum#1553 .
2021-01-29 12:39:42 +01:00
Sebastien Binet
1858083465
spatial/{r2,r3}: drop use of subtests
2020-12-02 02:55:44 +01:00
Sebastien Binet
d24ce68544
spatial/r2: implement Rotate
...
Fixes gonum/gonum#1513 .
2020-12-01 12:56:40 +01:00
Sebastien Binet
9c06200335
spatial/r3: implement Rotate
...
Updates gonum/gonum#1513 .
2020-12-01 10:52:18 +01:00
Dan Kortschak
da72779e7a
floats/scalar: new package containing non-vector functions from floats
2020-08-07 07:59:02 +09:30
Sebastien Binet
448e2b6d0e
spatial/{r2,r3}: add Cos, Unit
2020-04-08 12:28:23 +02:00
Sebastien Binet
962425fcd9
spatial/r{2,3}: add Norm and Norm2
2020-04-01 11:26:45 +02:00
Sebastien Binet
def9e57adc
spatial/r2: implement Vec.Cross
2020-03-31 09:27:02 +02:00
Sebastien Binet
20922778c8
spatial/r2: implement Vec.Dot
2020-03-31 09:27:02 +02:00
Sebastien Binet
2bf4f914ae
spatial/r2: add tests for Vec.{Add,Sub,Scale}
2020-03-31 09:27:02 +02:00
Sebastien Binet
e98ce15ff2
spatial/r3: implement Vec.Cross
2020-03-30 13:18:30 +02:00
Sebastien Binet
2321f504d0
spatial/r3: implement Vec.Dot
2020-03-30 13:18:30 +02:00
Sebastien Binet
c5a3c90294
spatial/r3: add tests for Vec.{Add,Sub,Scale}
2020-03-30 13:18:30 +02:00
Egon Elbre
619455fee7
spatial/barneshut: make tests parallel
2020-03-16 16:10:59 +02:00
Dan Kortschak
182fab0fd6
spatial/barneshut: clean up lint
2019-11-07 19:56:34 +10:30
Dan Kortschak
7a99c7bee7
spatial/{kdtree,vptree}: fix lint warnings
...
Identified by staticcheck.
2019-10-13 07:05:16 +10:30
Dan Kortschak
e51f19f66e
all: gofmt -s
2019-09-08 18:45:57 +09:30
Dan Kortschak
c1fdadf7ea
graph/layout: new package for calculating graph layouts
2019-07-20 20:12:57 +09:30
Dan Kortschak
536a303fd6
spatial/vptree: return error rather than panic
2019-06-29 08:00:43 +09:30
Dan Kortschak
6006dfb55c
spatial/barneshut: catch finitely too far points
2019-06-29 07:17:10 +09:30