@Override public InvertibleCoordinateTransform createInverse() { @SuppressWarnings( "unchecked" ) final InvertibleConstantModel< A, M > inverse = new InvertibleConstantModel< A, M >( ( A )model.createInverse() ); inverse.cost = cost; return inverse; } }
@Override public double[] applyInverse( final double[] location ) throws NoninvertibleModelException { final double[] copy = location.clone(); applyInverseInPlace( copy ); return copy; }
@Override public double[] applyInverse( final double[] location ) throws NoninvertibleModelException { final double[] copy = location.clone(); applyInverseInPlace( copy ); return copy; }
@Override public M copy() { @SuppressWarnings( "unchecked" ) final M copy = ( M )new InvertibleConstantModel< A, M >( model.copy() ); copy.cost = cost; return copy; }
@Override public InvertibleCoordinateTransform createInverse() { @SuppressWarnings( "unchecked" ) final InvertibleConstantModel< A, M > inverse = new InvertibleConstantModel< A, M >( ( A )model.createInverse() ); inverse.cost = cost; return inverse; } }
@Override public M copy() { @SuppressWarnings( "unchecked" ) final M copy = ( M )new InvertibleConstantModel< A, M >( model.copy() ); copy.cost = cost; return copy; }