public void elemAdd(Tensor other) {
        checkEqualSize(this, other);
        for (int c = 0; c < this.values.length; c++) {
            addValue(c, other.values[c]);
        }
    }
public void elemAdd ( Tensor other ) { checkEqualSize ( this , other ) ; for ( int c = 0 ; c < this . values . length ; c ++ ) { addValue ( c , other . values [ c ] ) ; } }
Adds a factor elementwise to this one.
@param other The addend.
@throws IllegalArgumentException If the two tensors have different sizes.