org.wikibrain.matrix.SparseMatrixUtils Maven / Gradle / Ivy
package org.wikibrain.matrix;
/**
* @author Shilad Sen
*/
public class SparseMatrixUtils {
static public boolean isIncreasing(int A[]) {
int lastId = Integer.MIN_VALUE;
for (int i = 0; i < A.length; i++) {
if (A[i] <= lastId) {
return false;
}
lastId = A[i];
}
return true;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy