MCPcopy Create free account
hub / github.com/EdwardRaff/JSAT / testIsSparse

Method testIsSparse

JSAT/test/jsat/linear/SubVectorTest.java:168–177  ·  view source on GitHub ↗

Test of isSparse method, of class SubVector.

()

Source from the content-addressed store, hash-verified

166 * Test of isSparse method, of class SubVector.
167 */
168 @Test
169 public void testIsSparse()
170 {
171 System.out.println("isSparse");
172 SubVector subX = new SubVector(2, 7, x);
173 assertTrue(subX.isSparse());
174
175 SubVector subY = new SubVector(2, 7, y);
176 assertFalse(subY.isSparse());
177 }
178
179 /**
180 * Test of getNonZeroIterator method, of class SubVector.

Callers

nothing calls this directly

Calls 1

isSparseMethod · 0.95

Tested by

no test coverage detected