public static ImmutableVector2 createVector ( final double x , final double y ) { return new ImmutableVector2 ( new ImmutableData ( 2 , 1 ) { @ Override public double getQuick ( int row , int col ) { if ( row == 0 ) return x ; else return y ; } } ) ; }
Creates a new immutable 2D column vector .