Examples of sparse()


Examples of mikera.matrixx.AMatrix.sparse()

    assertEquals(1,m.nonZeroCount());
  }
 
  @Test public void testBigIdentity() {
    AMatrix m=IdentityMatrix.create(2000000);
    m=m.sparse();
   
    assertEquals(m,m.innerProduct(m));
    assertEquals(m.rowCount(),m.nonZeroCount());
  }
 
View Full Code Here

Examples of org.mongodb.morphia.annotations.Indexed.sparse()

                            index.name(),
                            new BasicDBObject(field.toString(), index.value().toIndexValue()),
                            index.unique(),
                            index.dropDups(),
                            index.background() ? index.background() : background,
                            index.sparse(),
                            index.expireAfterSeconds());
            }

            if (!mf.isTypeMongoCompatible() && !mf.hasAnnotation(Reference.class) && !mf.hasAnnotation(Serialized.class)
                && !mf.hasAnnotation(NotSaved.class) && !mf.hasAnnotation(Transient.class)) {
View Full Code Here

Examples of org.springframework.data.mongodb.core.index.Index.sparse()

  }

  @Test
  public void testWithSparse() {
    Index i = new Index().on("name", Direction.ASC);
    i.sparse().unique();
    assertEquals("{ \"name\" : 1}", i.getIndexKeys().toString());
    assertEquals("{ \"unique\" : true , \"sparse\" : true}", i.getIndexOptions().toString());
  }

  @Test
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.