question: returns a new tensor which has the values of the original tensor scaled by scaling . the original object is unaffected . concode_field_sep SimpleMatrix[] slices concode_elem_sep int numRows concode_elem_sep int numSlices concode_elem_sep Iterator<SimpleTensor> tensors concode_elem_sep Iterator<SimpleMatrix> currentIterator concode_elem_sep int numCols concode_elem_sep long serialVersionUID concode_field_sep SimpleMatrix next concode_elem_sep void setSlice concode_elem_sep void set concode_elem_sep int numRows concode_elem_sep SimpleTensor elementMult concode_elem_sep boolean hasNext concode_elem_sep void advanceIterator concode_elem_sep int numCols concode_elem_sep int getNumElements concode_elem_sep SimpleTensor plus concode_elem_sep void remove concode_elem_sep SimpleTensor random concode_elem_sep SimpleMatrix bilinearProducts concode_elem_sep SimpleMatrix getSlice concode_elem_sep boolean isZero concode_elem_sep int numSlices concode_elem_sep String toString concode_elem_sep String toString concode_elem_sep double elementSum concode_elem_sep Iterator<SimpleMatrix> iteratorSimpleMatrix concode_elem_sep Iterator<SimpleMatrix> iteratorSimpleMatrix
target: SimpleTensor function ( double arg0 ) { SimpleTensor loc0 = new SimpleTensor ( numRows , numCols , numSlices ) ; for ( int loc1 = 0 ; loc1 < numSlices ; ++ loc1 ) { loc0 . slices [ loc1 ] = slices [ loc1 ] . scale ( arg0 ) ; } return loc0 ; }