question: returns a diagonal matrix with specified elements . concode_field_sep PlaceHolder placeHolder concode_field_sep RealMatrix createRealIdentityMatrix concode_elem_sep void checkSubMatrixIndex concode_elem_sep void checkSubMatrixIndex concode_elem_sep RealMatrix createRealMatrix concode_elem_sep RealMatrix createRealMatrix concode_elem_sep RealMatrix createColumnRealMatrix concode_elem_sep void checkSubtractionCompatible concode_elem_sep void checkColumnIndex concode_elem_sep void checkMultiplicationCompatible concode_elem_sep RealMatrix createRowRealMatrix concode_elem_sep RealVector createRealVector concode_elem_sep void checkRowIndex concode_elem_sep void checkAdditionCompatible
target: RealMatrix function ( final double [ ] arg0 ) { final RealMatrix loc0 = createRealMatrix ( arg0 . length , arg0 . length ) ; for ( int loc1 = 0 ; loc1 < arg0 . length ; ++ loc1 ) { loc0 . setEntry ( loc1 , loc1 , arg0 [ loc1 ] ) ; } return loc0 ; }