Skip to content

Commit d68feed

Browse files
authored
Extend cdot imported from LinearAlgebra, rather than supplying a separate one (#43)
1 parent c002362 commit d68feed

File tree

3 files changed

+16
-5
lines changed

3 files changed

+16
-5
lines changed

.github/workflows/docs.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
name: docs
22

3-
on: [push,workflow_dispatch,release]
3+
on:
4+
push:
5+
branches:
6+
- main
7+
tags: ['*']
8+
pull_request:
9+
workflow_dispatch:
10+
release:
411

512
jobs:
613

.github/workflows/tests.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
name: tests
2-
3-
on: [push]
4-
2+
on:
3+
push:
4+
branches:
5+
- main
6+
tags: ['*']
7+
pull_request:
58
jobs:
69
tests:
710
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ github.event_name }}
@@ -28,6 +31,7 @@ jobs:
2831
with:
2932
version: ${{ matrix.version }}
3033
show-versioninfo: true
34+
- uses: julia-actions/cache@v1
3135
- uses: julia-actions/julia-buildpkg@latest
3236
- uses: julia-actions/julia-runtest@latest
3337
- uses: julia-actions/julia-processcoverage@latest

src/algebra.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ Note that this function is not very commonly used, except as a quick way to
8383
determine whether the two quaternions are more anti-parallel than parallel, for
8484
functions like [`unflip`](@ref).
8585
"""
86-
@inline function (p::AbstractQuaternion, q::AbstractQuaternion)
86+
@inline function LinearAlgebra.:(p::AbstractQuaternion, q::AbstractQuaternion)
8787
p[1]*q[1] + p[2]*q[2] + p[3]*q[3] + p[4]*q[4]
8888
end
8989

0 commit comments

Comments
 (0)