Class representing 1- or infinity-norm function.
f = NormFunction(flag)
f = NormFunction(flag, Q)
1 |
Flag indicating the type of the norm. It can be either 1 or Inf.
Class: double Allowed values:
|
Q |
Weighing matrix where the number of columns determines the dimension of the vector argument.
Class: double |
f |
The NormFunction object. Class: NormFunction |
f1=NormFunction(1,diag([2,-3]))
1-norm function in R^2Evaluate the function in the point [2;1].
f1.feval([2;1])
ans = 7Construct infinity-norm function
finf=NormFunction(Inf,diag([2,-3]))
Inf-norm function in R^2Evaluate the function in the point [2;1].
finf.feval([2;1])
ans = 4
◀ | mpt | mpt | ▶ |
© 2003-2013 Michal Kvasnica: STU Bratislava, michal.kvasnica@stuba.sk
© 2010-2013 Martin Herceg: ETH Zurich, herceg@control.ee.ethz.ch