Example #1
0
 protected Sort02() :
     base(
         expected: new DoubleMatrixState(
             asColumnMajorDenseArray: new double[6] { -2, -1, 0, 0, 1, 2 },
             numberOfRows: 2,
             numberOfColumns: 3),
         data: TestableDoubleMatrix55.Get(),
         sortDirection: SortDirection.Ascending)
 {
 }
Example #2
0
 protected SortIndex02() :
     base(
         expected: new SortIndexResults()
 {
     SortedData    = DoubleMatrix.Dense(2, 3, new double[6] { -2, -1, 0, 0, 1, 2 }),
     SortedIndexes = IndexCollection.FromArray(new int[6] { 4, 5, 1, 3, 2, 0 })
 },
         data: TestableDoubleMatrix55.Get(),
         sortDirection: SortDirection.Ascending)
 {
 }