-
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 isEmpty added
- Loading branch information
Showing
2 changed files
with
33 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
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,32 @@ | ||
function isPositiveArr = isEmpty(myEllArr) | ||
% | ||
% ISEMPTY - checks if the GenEllipsoid object is empty. | ||
% | ||
% Input: | ||
% regular: | ||
% myEllArr: GenEllipsoid [nDims1,nDims2,...,nDimsN] - array of | ||
% GenEllipsoids. | ||
% | ||
% Output: | ||
% isPositiveArr: logical[nDims1,nDims2,...,nDimsN], | ||
% isPositiveArr(iCount) = true - if GenEllipsoid | ||
% myEllMat(iCount) is empty, false - otherwise. | ||
% | ||
% Example: | ||
% ellObj = elltool.core.GenEllipsoid(); | ||
% isempty(ellObj) | ||
% | ||
% ans = | ||
% | ||
% 1 | ||
% | ||
% $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.conf.Properties; | ||
import elltool.core.GenEllipsoid; | ||
GenEllipsoid.checkIsMe(myEllArr); | ||
isPositiveArr = dimension(myEllArr)==0; |