public void setDimension ( int idx , Dimension dim ) { if ( immutable ) throw new IllegalStateException ( "Cant modify" ) ; dimensions . set ( idx , dim ) ; resetShape ( ) ; }
Replace a dimension with an equivalent one .