Coverage for chebpy/core/smoothfun.py: 100%

4 statements  

« prev     ^ index     » next       coverage.py v7.10.2, created at 2025-08-07 10:30 +0000

1"""Abstract base class for smooth functions on the interval [-1, 1]. 

2 

3This module defines the Smoothfun class, which is an abstract base class for 

4representing smooth functions on the standard interval [-1, 1]. It inherits from 

5Onefun and serves as a base class for specific implementations of smooth function 

6representations. 

7""" 

8 

9from abc import ABC 

10 

11from .onefun import Onefun 

12 

13 

14class Smoothfun(Onefun, ABC): 

15 """Abstract base class for smooth functions on the interval [-1, 1]. 

16 

17 This class extends the Onefun abstract base class to specifically represent 

18 smooth functions on the standard interval [-1, 1]. Smoothness properties 

19 enable certain operations and optimizations that are not possible with 

20 general functions. 

21 

22 Concrete subclasses must implement all the abstract methods defined in the 

23 Onefun base class. 

24 """ 

25 

26 pass