• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

pymanopt / pymanopt / 6164718828

12 Sep 2023 08:50PM CUT coverage: 88.268% (+0.2%) from 88.118%
6164718828

Pull #246

github

web-flow
Merge b8b577a45 into 5314babe2
Pull Request #246: Add singledispatch-based internal numerics package

86 of 95 new or added lines in 7 files covered. (90.53%)

98 existing lines in 12 files now uncovered.

2528 of 2864 relevant lines covered (88.27%)

3.49 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

77.27
/src/pymanopt/numerics/core.py
1
import functools
4✔
2

3

4
def _not_implemented(function):
4✔
5
    @functools.wraps(function)
4✔
6
    def inner(*arguments):
3✔
NEW
7
        raise TypeError(
×
8
            f"Function '{function.__name__}' not implemented for arguments of "
9
            f"type '{type(arguments[0])}'"
10
        )
11

12
    return inner
4✔
13

14

15
@functools.singledispatch
4✔
16
@_not_implemented
4✔
17
def abs(_):
3✔
NEW
18
    pass
×
19

20

21
@functools.singledispatch
4✔
22
@_not_implemented
4✔
23
def allclose(*_):
3✔
NEW
24
    pass
×
25

26

27
@functools.singledispatch
4✔
28
@_not_implemented
4✔
29
def exp(_):
3✔
NEW
30
    pass
×
31

32

33
@functools.singledispatch
4✔
34
@_not_implemented
4✔
35
def tensordot(*_):
3✔
NEW
36
    pass
×
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc