FastByIDMap<float[]> result = new FastByIDMap<float[]>();
for (FastByIDMap.MapEntry<FastByIDFloatMap> entry : input.entrySet()) {
float[] rowOrCol = new float[n];
FastByIDFloatMap inputValues = entry.getValue();
for (int i = 0; i < n; i++) {
if (inputValues.containsKey(idsInOrder[i])) {
rowOrCol[i] = 1.0f;
}
}
result.put(entry.getKey(), rowOrCol);
}