Coverage for picos/expressions/__init__.py: 100.00%

39 statements  

« prev     ^ index     » next       coverage.py v6.5.0, created at 2023-03-26 07:46 +0000

1# ------------------------------------------------------------------------------ 

2# Copyright (C) 2019 Maximilian Stahlberg 

3# Based on the original picos.expressions module by Guillaume Sagnol. 

4# 

5# This file is part of PICOS. 

6# 

7# PICOS is free software: you can redistribute it and/or modify it under the 

8# terms of the GNU General Public License as published by the Free Software 

9# Foundation, either version 3 of the License, or (at your option) any later 

10# version. 

11# 

12# PICOS is distributed in the hope that it will be useful, but WITHOUT ANY 

13# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR 

14# A PARTICULAR PURPOSE. See the GNU General Public License for more details. 

15# 

16# You should have received a copy of the GNU General Public License along with 

17# this program. If not, see <http://www.gnu.org/licenses/>. 

18# ------------------------------------------------------------------------------ 

19 

20"""Mathematical expression types.""" 

21 

22from ..apidoc import api_end, api_start 

23 

24_API_START = api_start(globals()) 

25# ------------------------------- 

26 

27 

28from .algebra import * # noqa 

29from .cone import Cone # noqa 

30from .cone_expcone import ExponentialCone # noqa 

31from .cone_nno import NonnegativeOrthant # noqa 

32from .cone_product import ProductCone # noqa 

33from .cone_psd import PositiveSemidefiniteCone # noqa 

34from .cone_rsoc import RotatedSecondOrderCone # noqa 

35from .cone_soc import SecondOrderCone # noqa 

36from .cone_trivial import ZeroSpace, TheField # noqa 

37from .exp_affine import (AffineExpression, ComplexAffineExpression, # noqa 

38 Constant) 

39from .exp_biaffine import BiaffineExpression # noqa 

40from .exp_detrootn import DetRootN # noqa 

41from .exp_entropy import Entropy, NegativeEntropy # noqa 

42from .exp_extremum import Extremum, MaximumConvex, MinimumConcave # noqa 

43from .exp_geomean import GeometricMean # noqa 

44from .exp_logarithm import Logarithm # noqa 

45from .exp_logsumexp import LogSumExp # noqa 

46from .exp_norm import Norm # noqa 

47from .exp_nucnorm import NuclearNorm # noqa 

48from .exp_powtrace import PowerTrace # noqa 

49from .exp_quadratic import QuadraticExpression # noqa 

50from .exp_specnorm import SpectralNorm # noqa 

51from .exp_sqnorm import SquaredNorm # noqa 

52from .exp_sumexp import SumExponentials # noqa 

53from .exp_sumxtr import SumExtremes # noqa 

54from .exp_wsum import WeightedSum # noqa 

55from .expression import (Expression, ExpressionType, no_refinement, # noqa 

56 NotValued, PredictedFailure) 

57from .mutable import Mutable # noqa 

58from .variables import (BaseVariable, BinaryVariable, ComplexVariable, # noqa 

59 HermitianVariable, IntegerVariable, 

60 LowerTriangularVariable, RealVariable, 

61 SkewSymmetricVariable, SymmetricVariable, 

62 UpperTriangularVariable, CONTINUOUS_VARTYPES) 

63from .samples import Samples # noqa 

64from .set import Set, SetType # noqa 

65from .set_ball import Ball # noqa 

66from .set_ellipsoid import Ellipsoid # noqa 

67from .set_simplex import Simplex # noqa 

68from .uncertain import * #noqa 

69 

70 

71# -------------------------------------- 

72__all__ = api_end(_API_START, globals())