Hide keyboard shortcuts

Hot-keys on this page

r m x p   toggle line displays

j k   next/prev highlighted chunk

0   (zero) top of page

1   (one) first highlighted chunk

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, SpectralNorm, NuclearNorm # noqa 

47from .exp_powtrace import PowerTrace # noqa 

48from .exp_quadratic import QuadraticExpression # noqa 

49from .exp_sqnorm import SquaredNorm # noqa 

50from .exp_sumexp import SumExponentials # noqa 

51from .exp_sumxtr import SumExtremes # noqa 

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

53 NotValued, PredictedFailure) 

54from .mutable import Mutable # noqa 

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

56 HermitianVariable, IntegerVariable, 

57 LowerTriangularVariable, RealVariable, 

58 SkewSymmetricVariable, SymmetricVariable, 

59 UpperTriangularVariable, CONTINUOUS_VARTYPES) 

60from .samples import Samples # noqa 

61from .set import Set, SetType # noqa 

62from .set_ball import Ball # noqa 

63from .set_ellipsoid import Ellipsoid # noqa 

64from .set_simplex import Simplex # noqa 

65from .uncertain import * #noqa 

66 

67 

68# -------------------------------------- 

69__all__ = api_end(_API_START, globals())