Skip to content

Commit

Permalink
CAYLEY fix and bette subtitle
Browse files Browse the repository at this point in the history
  • Loading branch information
jfalcou committed Aug 13, 2023
1 parent 729a670 commit 944dd3f
Show file tree
Hide file tree
Showing 39 changed files with 121 additions and 121 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
##======================================================================================================================
## Kyosu - Complex Math Made Easy
## Kyosu - Complex Without Complexes
## Copyright : KYOSU Contributors & Maintainers
## SPDX-License-Identifier: BSL-1.0
##======================================================================================================================
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/integration.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
##======================================================================================================================
## Kyosu - Complex Math Made Easy
## Kyosu - Complex Without Complexes
## Copyright : KYOSU Contributors & Maintainers
## SPDX-License-Identifier: BSL-1.0
##======================================================================================================================
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/unit.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
##======================================================================================================================
## Kyosu - Complex Math Made Easy
## Kyosu - Complex Without Complexes
## Copyright : KYOSU Contributors & Maintainers
## SPDX-License-Identifier: BSL-1.0
##======================================================================================================================
Expand Down
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
##======================================================================================================================
## Kyosu - Complex Math Made Easy
## Kyosu - Complex Without Complexes
## Copyright : KYOSU Contributors & Maintainers
## SPDX-License-Identifier: BSL-1.0
##======================================================================================================================
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<img src="https://github.com/jfalcou/kyosu/raw/main/doc/logo.png" alt="" data-canonical-src="https://github.com/jfalcou/kyosu/main/doc/logo.png" align="left" width="15%" height="15%" />

# Kyosu
## Complex Math Made Easy
## Complex Without Complexes

Efficient and SIMD-aware computation for complex, quaternions and octonions.

Expand Down
2 changes: 1 addition & 1 deletion cmake/compiler.cmake
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
##======================================================================================================================
## Kyosu - Complex Math Made Easy
## Kyosu - Complex Without Complexes
## Copyright : KYOSU Contributors & Maintainers
## SPDX-License-Identifier: BSL-1.0
##======================================================================================================================
Expand Down
2 changes: 1 addition & 1 deletion cmake/dependencies.cmake
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
##======================================================================================================================
## Kyosu - Complex Math Made Easy
## Kyosu - Complex Without Complexes
## Copyright : KYOSU Contributors & Maintainers
## SPDX-License-Identifier: BSL-1.0
##======================================================================================================================
Expand Down
2 changes: 1 addition & 1 deletion cmake/kyosu-config.cmake
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
##======================================================================================================================
## Kyosu - Complex Math Made Easy
## Kyosu - Complex Without Complexes
## Copyright : KYOSU Contributors & Maintainers
## SPDX-License-Identifier: BSL-1.0
##======================================================================================================================
Expand Down
2 changes: 1 addition & 1 deletion doc/Doxyfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ DOXYFILE_ENCODING = UTF-8

PROJECT_NAME = $(DOXYGEN_PROJECT_NAME)
PROJECT_NUMBER = v$(DOXYGEN_PROJECT_VERSION)
PROJECT_BRIEF = Complex Math Made Easy
PROJECT_BRIEF = Complex Without Complexes
PROJECT_LOGO = logo.png
OUTPUT_DIRECTORY = $(DOXYGEN_OUPUT)
CREATE_SUBDIRS = NO
Expand Down
2 changes: 1 addition & 1 deletion include/kyosu/concepts.hpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//======================================================================================================================
/*
Kyosu - Complex Math Made Easy
Kyosu - Complex Without Complexes
Copyright : KYOSU Contributors & Maintainers
SPDX-License-Identifier: BSL-1.0
*/
Expand Down
12 changes: 6 additions & 6 deletions include/kyosu/concepts/types.hpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//======================================================================================================================
/*
Kyosu - Complex Math Made Easy
Kyosu - Complex Without Complexes
Copyright : KYOSU Contributors & Maintainers
SPDX-License-Identifier: BSL-1.0
*/
Expand All @@ -14,20 +14,20 @@ namespace kyosu::concepts
{
/// General Caley-Dickinson concept
template<typename T>
concept caley_dickinson = requires(T const&)
concept cayley_dickinson = requires(T const&)
{
typename eve::element_type_t<std::remove_cvref_t<T>>::is_caley_dickinson;
typename eve::element_type_t<std::remove_cvref_t<T>>::is_cayley_dickinson;
};

/// Complex number concept
template<typename T>
concept complex = caley_dickinson<T> && eve::element_type_t<std::remove_cvref_t<T>>::static_size == 2;
concept complex = cayley_dickinson<T> && eve::element_type_t<std::remove_cvref_t<T>>::static_size == 2;

/// Quaternion concept
template<typename T>
concept quaternion = caley_dickinson<T> && eve::element_type_t<std::remove_cvref_t<T>>::static_size == 4;
concept quaternion = cayley_dickinson<T> && eve::element_type_t<std::remove_cvref_t<T>>::static_size == 4;

/// Octonion concept
template<typename T>
concept octonion = caley_dickinson<T> && eve::element_type_t<std::remove_cvref_t<T>>::static_size == 8;
concept octonion = cayley_dickinson<T> && eve::element_type_t<std::remove_cvref_t<T>>::static_size == 8;
}
2 changes: 1 addition & 1 deletion include/kyosu/details/abi.hpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//======================================================================================================================
/*
Kyosu - Complex Math Made Easy
Kyosu - Complex Without Complexes
Copyright : KYOSU Contributors & Maintainers
SPDX-License-Identifier: BSL-1.0
*/
Expand Down
2 changes: 1 addition & 1 deletion include/kyosu/details/invoke.hpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//======================================================================================================================
/*
Kyosu - Complex Math Made Easy
Kyosu - Complex Without Complexes
Copyright : KYOSU Contributors & Maintainers
SPDX-License-Identifier: BSL-1.0
*/
Expand Down
2 changes: 1 addition & 1 deletion include/kyosu/functions.hpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//======================================================================================================================
/*
Kyosu - Complex Math Made Easy
Kyosu - Complex Without Complexes
Copyright : KYOSU Contributors & Maintainers
SPDX-License-Identifier: BSL-1.0
*/
Expand Down
6 changes: 3 additions & 3 deletions include/kyosu/functions/conj.hpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//======================================================================================================================
/*
Kyosu - Complex Math Made Easy
Kyosu - Complex Without Complexes
Copyright : KYOSU Contributors & Maintainers
SPDX-License-Identifier: BSL-1.0
*/
Expand Down Expand Up @@ -48,7 +48,7 @@ namespace kyosu
//! @code
//! namespace kyosu
//! {
//! template<kyosu::concepts::caley_dickinson T> constexpr T conj(T z) noexcept;
//! template<kyosu::concepts::cayley_dickinson T> constexpr T conj(T z) noexcept;
//! template<eve::ordered_value T> constexpr T conj(T z) noexcept;
//! }
//! @endcode
Expand Down Expand Up @@ -79,7 +79,7 @@ namespace kyosu::_
return v;
}

template<concepts::caley_dickinson T> constexpr auto conj_(EVE_EXPECTS(eve::cpu_), T const& v) noexcept
template<concepts::cayley_dickinson T> constexpr auto conj_(EVE_EXPECTS(eve::cpu_), T const& v) noexcept
{
return T{kumi::map_index([]<typename I>(I, auto m) { if constexpr(I::value>0) return -m; else return m;}, v)};
}
Expand Down
6 changes: 3 additions & 3 deletions include/kyosu/functions/i.hpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//======================================================================================================================
/*
Kyosu - Complex Math Made Easy
Kyosu - Complex Without Complexes
Copyright : KYOSU Contributors & Maintainers
SPDX-License-Identifier: BSL-1.0
*/
Expand All @@ -19,11 +19,11 @@ namespace kyosu::tags
template<eve::floating_value T>
static EVE_FORCEINLINE auto deferred_call(auto, eve::as<T>) noexcept
{
using type = caley_dickinson<eve::element_type_t<T>,2>;
using type = cayley_dickinson<eve::element_type_t<T>,2>;
return eve::as_wide_as_t<type,T>{type{0,1}};
}

template<concepts::caley_dickinson T>
template<concepts::cayley_dickinson T>
static EVE_FORCEINLINE auto deferred_call(auto, eve::as<T>) noexcept
{
using type = eve::element_type_t<T>;
Expand Down
10 changes: 5 additions & 5 deletions include/kyosu/functions/imag.hpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//======================================================================================================================
/*
Kyosu - Complex Math Made Easy
Kyosu - Complex Without Complexes
Copyright : KYOSU Contributors & Maintainers
SPDX-License-Identifier: BSL-1.0
*/
Expand Down Expand Up @@ -54,8 +54,8 @@ namespace kyosu
//! @code
//! namespace kyosu
//! {
//! template<kyosu::concepts::caley_dickinson T> constexpr auto& imag(T& z) noexcept;
//! template<kyosu::concepts::caley_dickinson T> constexpr auto imag(T const& z) noexcept;
//! template<kyosu::concepts::cayley_dickinson T> constexpr auto& imag(T& z) noexcept;
//! template<kyosu::concepts::cayley_dickinson T> constexpr auto imag(T const& z) noexcept;
//! template<eve::ordered_value T> constexpr T imag(T const& z) noexcept;
//! }
//! @endcode
Expand Down Expand Up @@ -86,9 +86,9 @@ namespace kyosu::_
{
template<eve::ordered_value T> constexpr auto imag_(EVE_EXPECTS(eve::cpu_), T const&) noexcept { return T{0}; }

template<concepts::caley_dickinson T>
template<concepts::cayley_dickinson T>
constexpr auto imag_(EVE_EXPECTS(eve::cpu_), T const& v) noexcept { return get<1>(v); }

template<concepts::caley_dickinson T>
template<concepts::cayley_dickinson T>
constexpr auto& imag_(EVE_EXPECTS(eve::cpu_), T& v) noexcept { return get<1>(v); }
}
6 changes: 3 additions & 3 deletions include/kyosu/functions/j.hpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//======================================================================================================================
/*
Kyosu - Complex Math Made Easy
Kyosu - Complex Without Complexes
Copyright : KYOSU Contributors & Maintainers
SPDX-License-Identifier: BSL-1.0
*/
Expand All @@ -19,11 +19,11 @@ namespace kyosu::tags
template<eve::floating_value T>
static EVE_FORCEINLINE auto deferred_call(auto, eve::as<T>) noexcept
{
using type = caley_dickinson<eve::element_type_t<T>,4>;
using type = cayley_dickinson<eve::element_type_t<T>,4>;
return eve::as_wide_as_t<type,T>{type{0,0,1,0}};
}

template<concepts::caley_dickinson T>
template<concepts::cayley_dickinson T>
requires( dimension_v<T> >= 4)
static EVE_FORCEINLINE auto deferred_call(auto, eve::as<T>) noexcept
{
Expand Down
6 changes: 3 additions & 3 deletions include/kyosu/functions/k.hpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//======================================================================================================================
/*
Kyosu - Complex Math Made Easy
Kyosu - Complex Without Complexes
Copyright : KYOSU Contributors & Maintainers
SPDX-License-Identifier: BSL-1.0
*/
Expand All @@ -19,11 +19,11 @@ namespace kyosu::tags
template<eve::floating_value T>
static EVE_FORCEINLINE auto deferred_call(auto, eve::as<T>) noexcept
{
using type = caley_dickinson<eve::element_type_t<T>,4>;
using type = cayley_dickinson<eve::element_type_t<T>,4>;
return eve::as_wide_as_t<type,T>{type{0,0,0,1}};
}

template<concepts::caley_dickinson T>
template<concepts::cayley_dickinson T>
requires( dimension_v<T> >= 4)
static EVE_FORCEINLINE auto deferred_call(auto, eve::as<T>) noexcept
{
Expand Down
10 changes: 5 additions & 5 deletions include/kyosu/functions/real.hpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//======================================================================================================================
/*
Kyosu - Complex Math Made Easy
Kyosu - Complex Without Complexes
Copyright : KYOSU Contributors & Maintainers
SPDX-License-Identifier: BSL-1.0
*/
Expand Down Expand Up @@ -54,8 +54,8 @@ namespace kyosu
//! @code
//! namespace kyosu
//! {
//! template<kyosu::concepts::caley_dickinson T> constexpr auto& real(T& z) noexcept;
//! template<kyosu::concepts::caley_dickinson T> constexpr auto real(T const& z) noexcept;
//! template<kyosu::concepts::cayley_dickinson T> constexpr auto& real(T& z) noexcept;
//! template<kyosu::concepts::cayley_dickinson T> constexpr auto real(T const& z) noexcept;
//! template<eve::ordered_value T> constexpr T& real(T& z) noexcept;
//! template<eve::ordered_value T> constexpr T real(T const& z) noexcept;
//! }
Expand All @@ -82,9 +82,9 @@ namespace kyosu::_
template<eve::ordered_value T> constexpr auto real_(EVE_EXPECTS(eve::cpu_), T const& v) noexcept { return v; }
template<eve::ordered_value T> constexpr auto& real_(EVE_EXPECTS(eve::cpu_), T& v) noexcept { return v; }

template<concepts::caley_dickinson T>
template<concepts::cayley_dickinson T>
constexpr auto real_(EVE_EXPECTS(eve::cpu_), T const& v) noexcept { return get<0>(v); }

template<concepts::caley_dickinson T>
template<concepts::cayley_dickinson T>
constexpr auto& real_(EVE_EXPECTS(eve::cpu_), T& v) noexcept { return get<0>(v); }
}
4 changes: 2 additions & 2 deletions include/kyosu/functions/to_complex.hpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//======================================================================================================================
/*
Kyosu - Complex Math Made Easy
Kyosu - Complex Without Complexes
Copyright : KYOSU Contributors & Maintainers
SPDX-License-Identifier: BSL-1.0
*/
Expand Down Expand Up @@ -51,7 +51,7 @@ namespace kyosu
//! template<eve::ordered_value T> constexpr auto to_complex(T r) noexcept;
//! template<eve::ordered_value T> constexpr auto to_complex(T r, T i) noexcept;

//! template<kyosu::concepts::caley_dickinson T> constexpr T to_complex(T z) noexcept;
//! template<kyosu::concepts::cayley_dickinson T> constexpr T to_complex(T z) noexcept;
//! }
//! @endcode
//!
Expand Down
2 changes: 1 addition & 1 deletion include/kyosu/kyosu.hpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//======================================================================================================================
/*
Kyosu - Complex Math Made Easy
Kyosu - Complex Without Complexes
Copyright : KYOSU Contributors & Maintainers
SPDX-License-Identifier: BSL-1.0
*/
Expand Down
2 changes: 1 addition & 1 deletion include/kyosu/types.hpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//======================================================================================================================
/*
Kyosu - Complex Math Made Easy
Kyosu - Complex Without Complexes
Copyright : KYOSU Contributors & Maintainers
SPDX-License-Identifier: BSL-1.0
*/
Expand Down
Loading

0 comments on commit 944dd3f

Please sign in to comment.