Commit Graph

34 Commits

Author SHA1 Message Date
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
c79d628c46 spatial/r3: add Box 2022-06-25 17:10:09 +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
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
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
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
Dan Kortschak
4a2eb0188c spatial/barneshut: add Barnes-Hut force approximation package and R2/R3 helpers 2019-05-03 06:57:12 +09:30