public static ATransform constantTransform(int inputDimensions, AVector v) {
int dims=v.length();
switch (dims) {
case 3: return new ConstantTransform3(inputDimensions,v);
case 4: return new ConstantTransform4(inputDimensions,v);
default: return new ConstantTransform(inputDimensions,v);
}
}