Linear indexing of values tested