Exemple #1
0
        public void TestRandomProjection()
        {
            var a           = _lap.CreateMatrix(256, 256, (x, y) => x * y).AsIndexable();
            var projector   = _lap.CreateRandomProjection(256, 32);
            var projections = projector.Compute(a);

            Assert.IsTrue(projections.ColumnCount == 32);
            Assert.IsTrue(projections.RowCount == 256);
        }