/src/main/java/net/finmath/montecarlo/RandomVariableFromFloatArray.java
} else if ( isDeterministic ( ) && !argument.isDeterministic ( ) ) { final double[] result = new double[argument.size ( ) ]; for ( int i=0; i<result.length; i++ ) { result[i] = operator.applyAsDouble ( valueIfNonStochastic, argument.get ( i ) ) ; }
} @Override public RandomVariable apply(final DoubleBinaryOperator operator, final RandomVariable argument) { final double newTime = Math.max(time, argument.getFiltrationTime()); if(isDeterministic() && argument.isDeterministic()) { return new RandomVariableFromFloatArray(newTime, operator.applyAsDouble(valueIfNonStochastic, argument.get(0))); <extra_id_0> } return new RandomVariableFromFloatArray(newTime, result); } else if(!isDeterministic() && argument.isDeterministic()) { final double[] result = new double[this.size()]; for(int i=0; i<result.length; i++) {