public static Vector createVector(int dimension) {
		if (dimension<=0) throw new IllegalArgumentException();
		switch (dimension) {
			case 2: return createVector2();
			case 3: return createVector3();
			case 4: return createVector4();
			default: return new VectorImpl(dimension);
		}
	}
public static Vector createVector ( int dimension ) { if ( dimension <= 0 ) throw new IllegalArgumentException ( ) ; switch ( dimension ) { case 2 : return createVector2 ( ) ; case 3 : return createVector3 ( ) ; case 4 : return createVector4 ( ) ; default : return new VectorImpl ( dimension ) ; } }
Creates a new column vector with all elements initialized to 0.
@param dimension the dimension of the vector.
@return the new vector
@throws IllegalArgumentException if the argument is not positive