public void TestTwoDimensionalSparse()
        {
            List <int> sparse = new List <int> {
                1, 6, 8, 63
            };
            Sdr sut = new Sdr(new int[] { 8, 8 });

            sut.SetSparse(sparse);

            List <int> result = sut.GetSparse();

            Assert.AreEqual(sparse, result);
        }
        public void TestOneDimensionalSparseFromDense()
        {
            List <byte> dense = new List <byte> {
                1, 1, 0, 0, 0, 0, 0, 0
            };
            List <int> expected = new List <int> {
                0, 1
            };
            Sdr sut = new Sdr(new int[] { 8 });

            sut.SetDense(dense);

            List <int> result = sut.GetSparse();

            Assert.AreEqual(expected, result);
        }