-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4d898c3
commit 6d1c554
Showing
6 changed files
with
243 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# Clifford numbers | ||
|
||
## Supertype and associated functions | ||
|
||
```@docs | ||
CliffordNumbers.AbstractCliffordNumber | ||
CliffordNumbers.numeric_type | ||
CliffordNumbers.similar_type | ||
``` | ||
|
||
## Concrete types | ||
|
||
```@docs | ||
CliffordNumbers.CliffordNumber | ||
CliffordNumbers.Z2CliffordNumber | ||
CliffordNumbers.EvenCliffordNumber | ||
CliffordNumbers.OddCliffordNumber | ||
CliffordNumbers.KVector | ||
CliffordNumbers.grade(::Type{<:KVector{K}}) where K | ||
``` | ||
|
||
## Promotion and conversion | ||
|
||
```@docs | ||
CliffordNumbers.scalar_convert | ||
CliffordNumbers.scalar_promote | ||
Base.widen(::Type{<:AbstractCliffordNumber{Q,T}}) where {Q,T} | ||
CliffordNumbers.widen_grade | ||
``` | ||
|
||
## Scalar and pseudoscalar components | ||
|
||
```@docs | ||
CliffordNumbers.isscalar | ||
CliffordNumbers.ispseudoscalar | ||
CliffordNumbers.scalar | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
# Grades and indices | ||
|
||
## Grades | ||
|
||
```@docs | ||
CliffordNumbers.nonzero_grades | ||
CliffordNumbers.has_grades_of | ||
``` | ||
|
||
## `BitIndex` | ||
|
||
```@docs | ||
CliffordNumbers.BitIndex | ||
CliffordNumbers.is_same_blade | ||
``` | ||
|
||
### Special indices | ||
|
||
```@docs | ||
CliffordNumbers.scalar_index | ||
CliffordNumbers.pseudoscalar_index | ||
``` | ||
|
||
### Tools for implementing mathematical operations | ||
|
||
```@docs | ||
Base.reverse(::BitIndex) | ||
CliffordNumbers.grade_involution(::BitIndex) | ||
Base.conj(::BitIndex) | ||
``` | ||
|
||
```@docs | ||
CliffordNumbers.grade(::BitIndex) | ||
CliffordNumbers.sign_of_square | ||
CliffordNumbers.signbit_of_square | ||
CliffordNumbers.nondegenerate_square | ||
CliffordNumbers.sign_of_mult | ||
CliffordNumbers.signbit_of_mult | ||
CliffordNumbers.nondegenerate_mult | ||
Base.:*(::T, ::T) where T<:BitIndex | ||
CliffordNumbers.has_wedge | ||
``` | ||
|
||
## `BitIndices` and related types | ||
|
||
```@docs | ||
CliffordNumbers.AbstractBitIndices | ||
CliffordNumbers.BitIndices | ||
CliffordNumbers.TransformedBitIndices | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
# Internal methods | ||
|
||
## Hamming weights and related operations | ||
|
||
```@docs | ||
CliffordNumbers.isevil | ||
CliffordNumbers.isodious | ||
CliffordNumbers.number_of_parity | ||
CliffordNumbers.evil_number | ||
CliffordNumbers.odious_number | ||
CliffordNumbers.next_of_hamming_weight | ||
CliffordNumbers.hamming_number | ||
``` | ||
|
||
## Indexing | ||
|
||
```@docs | ||
CliffordNumbers.signmask | ||
CliffordNumbers._sort_with_parity! | ||
``` | ||
|
||
## Construction | ||
|
||
```@docs | ||
CliffordNumbers.zero_tuple | ||
CliffordNumbers.check_element_count | ||
``` | ||
|
||
## Multiplication kernels | ||
|
||
```@docs | ||
CliffordNumbers.mul | ||
CliffordNumbers.GradeFilter | ||
CliffordNumbers.nondegenerate_mask | ||
CliffordNumbers.mul_mask | ||
CliffordNumbers.bitindex_shuffle | ||
CliffordNumbers.widen_grade_for_mul | ||
``` | ||
|
||
## Taylor series exponential | ||
```@docs | ||
CliffordNumbers.exp_taylor | ||
``` | ||
|
||
## Return types for operations | ||
|
||
```@docs | ||
CliffordNumbers.product_return_type | ||
CliffordNumbers.exponential_type | ||
``` | ||
|
||
## Unused features | ||
|
||
```@docs | ||
CliffordNumbers.RepresentedGrades | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
# Mathematical operations | ||
|
||
## Grade automorphisms | ||
|
||
```@docs; canonical=false | ||
Base.reverse(::BitIndex) | ||
CliffordNumbers.grade_involution(::BitIndex) | ||
Base.conj(::BitIndex) | ||
``` | ||
|
||
## Duals and inverses | ||
|
||
```@docs | ||
CliffordNumbers.dual | ||
CliffordNumbers.undual | ||
CliffordNumbers.versor_inverse | ||
``` | ||
|
||
## Addition and subtraction | ||
|
||
Addition and subtraction integrate seamlessly with those of the Julia Base number types, and no | ||
special documentation is included here. | ||
|
||
## Products | ||
|
||
### Products with scalars | ||
|
||
The standard multiplication and division operations (`*`, `/`, `//`) between Clifford numbers and | ||
scalars behave as expected. `Base.muladd` has been overloaded to take advantage of fma instructions | ||
available on some hardware platforms. | ||
|
||
```@docs | ||
Base.muladd(x::BaseNumber, y::T, z::T) where T<:AbstractCliffordNumber | ||
``` | ||
|
||
### Geometric products | ||
|
||
```@docs | ||
Base.:*(::AbstractCliffordNumber{Q}, ::AbstractCliffordNumber{Q}) where Q | ||
CliffordNumbers.left_contraction | ||
CliffordNumbers.right_contraction | ||
CliffordNumbers.dot | ||
CliffordNumbers.hestenes_product | ||
CliffordNumbers.wedge(x::AbstractCliffordNumber{Q}, y::AbstractCliffordNumber{Q}) where Q | ||
CliffordNumbers.commutator | ||
CliffordNumbers.anticommutator | ||
CliffordNumbers.sandwich | ||
``` | ||
|
||
### Scalar products and normalization | ||
|
||
```@docs | ||
CliffordNumbers.scalar_product | ||
Base.abs2(::AbstractCliffordNumber) | ||
Base.abs(::AbstractCliffordNumber) | ||
CliffordNumbers.normalize | ||
``` | ||
|
||
## Exponentiation | ||
|
||
```@docs | ||
Base.exp(::AbstractCliffordNumber) | ||
CliffordNumbers.exppi | ||
CliffordNumbers.exptau | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# Quadratic forms | ||
|
||
## `QuadraticForm` type and aliases | ||
|
||
```@docs | ||
CliffordNumbers.QuadraticForm | ||
CliffordNumbers.QFReal | ||
CliffordNumbers.QFComplex | ||
CliffordNumbers.QFPositiveDefinite | ||
CliffordNumbers.QFNondegenerate | ||
CliffordNumbers.QFExterior | ||
CliffordNumbers.APS | ||
CliffordNumbers.STA | ||
CliffordNumbers.VGA | ||
CliffordNumbers.PGA | ||
CliffordNumbers.CGA | ||
``` | ||
|
||
## Associated methods | ||
|
||
```@docs | ||
CliffordNumbers.dimension | ||
CliffordNumbers.elements | ||
CliffordNumbers.grades | ||
Base.sign(::Type{QuadraticForm{P,Q,R}}, i::Integer) where {P,Q,R} | ||
``` |