-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Issue #42 Enhancement: function isbigger added
- Loading branch information
Showing
1 changed file
with
29 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
function isPositive = isbigger(fstEll, secEll) | ||
% | ||
% ISBIGGER - checks if one GenEllipsoid would contain the other if their | ||
% centers would coincide. | ||
% | ||
% isPositive = ISBIGGER(fstEll, secEll) - Given two single GenEllipsoids | ||
% of the same dimension, fstEll and secEll, check if fstEll | ||
% would contain secEll inside if they were both | ||
% centered at origin. | ||
% | ||
% Input: | ||
% regular: | ||
% fstEll: ellipsoid [1, 1] - first GenEllipsoid. | ||
% secEll: ellipsoid [1, 1] - second GenEllipsoid | ||
% of the same dimention. | ||
% | ||
% Output: | ||
% isPositive: logical[1, 1], true - if GenEllipsoid fstEll | ||
% would contain secEll inside, false - otherwise. | ||
% | ||
% $Author: Alexandr Timchenko <[email protected]> $ | ||
% $Date: Dec-2015$ | ||
% $Copyright: Moscow State University, | ||
% Faculty of Computational Mathematics and Computer Science, | ||
% System Analysis Department 2015 $ | ||
% | ||
import elltool.core.GenEllipsoid; | ||
nDimSpace=length(diag(ellObj1.diagMat)); | ||
isPositive = checkBigger(fstEll, secEll, nDimSpace); |