From 5972cde434c221009f354a229f7009856d4b0747 Mon Sep 17 00:00:00 2001 From: Ronny Bergmann Date: Sun, 20 Oct 2024 11:23:10 +0200 Subject: [PATCH] Make `has_components` a decorator function. (#207) --- NEWS.md | 6 ++++++ Project.toml | 2 +- src/decorator_trait.jl | 2 ++ 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/NEWS.md b/NEWS.md index 578556d0..28c36aa8 100644 --- a/NEWS.md +++ b/NEWS.md @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [0.15.19] 20/10/2024 + +### Changed + +* make `has_components` introduced in the last version a decorator trait function. + ## [0.15.18] 18/10/2024 ### Added diff --git a/Project.toml b/Project.toml index 3e73cc26..deaee651 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ name = "ManifoldsBase" uuid = "3362f125-f0bb-47a3-aa74-596ffd7ef2fb" authors = ["Seth Axen ", "Mateusz Baran ", "Ronny Bergmann ", "Antoine Levitt "] -version = "0.15.18" +version = "0.15.19" [deps] LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e" diff --git a/src/decorator_trait.jl b/src/decorator_trait.jl index e09aab2e..e8a55db7 100644 --- a/src/decorator_trait.jl +++ b/src/decorator_trait.jl @@ -282,6 +282,8 @@ end # Introduce Deco Trait | automatic foward | fallback @trait_function get_vectors(M::AbstractDecoratorManifold, p, B::AbstractBasis) +@trait_function has_components(M::AbstractDecoratorManifold) + @trait_function injectivity_radius(M::AbstractDecoratorManifold) function injectivity_radius( ::TraitList{IsIsometricEmbeddedManifold},