[ellipsoids] r2058 committed - Issue 66....

1 view
Skip to first unread message

ellip...@googlecode.com

unread,
Jun 18, 2013, 5:24:53 PM6/18/13
to ellipsoids-change...@googlegroups.com
Revision: 2058
Author: Alexander...@gmail.com
Date: Tue Jun 18 14:24:30 2013
Log: Issue 66.
hyperplane.isempty in tests fixed.
http://code.google.com/p/ellipsoids/source/detail?r=2058

Modified:

/branches/issue_66_akarev/products/+elltool/+core/+test/+mlunit/HyperplaneTestCase.m
/branches/issue_66_akarev/products/elltoolboxcore/@ellipsoid/eq.m

/branches/issue_66_akarev/products/elltoolboxcore/@ellipsoid/hpintersection.m

=======================================
---
/branches/issue_66_akarev/products/+elltool/+core/+test/+mlunit/HyperplaneTestCase.m
Sat Jun 1 05:02:39 2013
+++
/branches/issue_66_akarev/products/+elltool/+core/+test/+mlunit/HyperplaneTestCase.m
Tue Jun 18 14:24:30 2013
@@ -174,7 +174,7 @@
SInpData = self.auxReadFile(self);
testHyperplanesVec = SInpData.testHyperplanesVec;
isEmptyVec = SInpData.isEmptyVec;
- isEmptyTestedVec = isempty(testHyperplanesVec);
+ isEmptyTestedVec = isEmpty(testHyperplanesVec);
isOk = all(isEmptyVec == isEmptyTestedVec);
mlunitext.assert(isOk);

@@ -182,7 +182,7 @@
nSecDim = 20;
nThrDim = 30;
testHypArr(nFstDim, nSecDim, nThrDim) = hyperplane();
- isEmptyArr = isempty(testHypArr);
+ isEmptyArr = isEmpty(testHypArr);
isOk = all(isEmptyArr);
mlunitext.assert(isOk);
end
=======================================
--- /branches/issue_66_akarev/products/elltoolboxcore/@ellipsoid/eq.m Tue
Jun 18 13:33:55 2013
+++ /branches/issue_66_akarev/products/elltoolboxcore/@ellipsoid/eq.m Tue
Jun 18 14:24:30 2013
@@ -99,7 +99,11 @@


function SComp = formCompStruct(SEll)
- SComp.(SFieldNiceNames.shapeMat) = gras.la.sqrtmpos(SEll.shapeMat,
absTol);
+ if (~isempty(SEll.shapeMat))
+ SComp.(SFieldNiceNames.shapeMat) =
gras.la.sqrtmpos(SEll.shapeMat, absTol);
+ else
+ SComp.(SFieldNiceNames.shapeMat) = [];
+ end
SComp.(SFieldNiceNames.centerVec) = SEll.centerVec;
end
end
=======================================
---
/branches/issue_66_akarev/products/elltoolboxcore/@ellipsoid/hpintersection.m
Sat Jun 1 05:02:39 2013
+++
/branches/issue_66_akarev/products/elltoolboxcore/@ellipsoid/hpintersection.m
Tue Jun 18 14:24:30 2013
@@ -67,7 +67,7 @@
'wrongInput:emptyArray', 'errorMessage', ...
'Each array must be not empty.');

-modgen.common.checkvar( myHypArr,'all(~isempty(x(:)))','errorTag', ...
+modgen.common.checkvar( myHypArr,'all(~isEmpty(x(:)))','errorTag', ...
'wrongInput:emptyHyperplane', 'errorMessage', ...
'Array should not have empty hyperplane.');

Reply all
Reply to author
Forward
0 new messages