public static double [ ] plus ( final double [ ] v1 , final double s1 ) { final double [ ] result = new double [ v1 . length ] ; for ( int i = 0 ; i < result . length ; i ++ ) { result [ i ] = v1 [ i ] + s1 ; } return result ; }
Computes component - wise v1 + s1 .