net.finmath.montecarlo.cuda.RandomVariableCudaFactory Maven / Gradle / Ivy
/*
* (c) Copyright Christian P. Fries, Germany. All rights reserved. Contact: [email protected].
*
* Created on 21.06.2017
*/
package net.finmath.montecarlo.cuda;
import net.finmath.montecarlo.AbstractRandomVariableFactory;
import net.finmath.stochastic.RandomVariable;
/**
* @author Christian Fries
*
*/
public class RandomVariableCudaFactory extends AbstractRandomVariableFactory {
private static final long serialVersionUID = 1L;
public RandomVariableCudaFactory() {
super();
}
@Override
public RandomVariable createRandomVariable(final double time, final double value) {
return new RandomVariableCuda(time, value);
}
@Override
public RandomVariable createRandomVariable(final double time, final double[] values) {
return new RandomVariableCuda(time, values);
}
}