Vector function ( Vector arg0 ) { if ( this . d != arg0 . d ) throw new IllegalArgumentException ( "srini_string" ) ; Vector loc0 = new Vector ( d ) ; for ( int loc1 = 0 ; loc1 < d ; loc1 ++ ) loc0 . data [ loc1 ] = this . data [ loc1 ] + arg0 . data [ loc1 ] ; return loc0 ; }
returns the sum of this vector and the specified vector . concode_field_sep int d concode_elem_sep double[] data concode_field_sep Vector minus concode_elem_sep Vector times concode_elem_sep int length concode_elem_sep double dot concode_elem_sep Vector scale concode_elem_sep void main concode_elem_sep double magnitude concode_elem_sep String toString concode_elem_sep int dimension concode_elem_sep double distanceTo concode_elem_sep double cartesian concode_elem_sep Vector direction