Пример:
Код: Выделить всё
FloatVector fv = FloatVector.fromArray(FloatVector.SPECIES_PREFERRED, new float[]{1, 2, 3, 4, 5, 6, 7}, 0);
//multiplies the wohle array in a single cycle by 2 (if the CPU supports this)
fv.mul(2f);
Код: Выделить всё
fv.pow(-1f);
Подробнее здесь: https://stackoverflow.com/questions/793 ... ch-element
Мобильная версия