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

pymanopt / pymanopt / 5435965466

pending completion
5435965466

Pull #246

github

web-flow
Merge ee0afc135 into acb52b216
Pull Request #246: Add singledispatch-based internal numerics package

33 of 41 new or added lines in 4 files covered. (80.49%)

94 existing lines in 12 files now uncovered.

2293 of 2620 relevant lines covered (87.52%)

3.49 hits per line

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

70.59
/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