Guest User

Untitled

a guest
Jul 18th, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. public Vector mult(Vector v){
  2. rowNum = getRowNum();
  3. colNum = getColNum();
  4. Vector mult = new Vector(rowNum);
  5. for(int i = 0; i < rowNum; i++){
  6. for(int j = 0; j < colNum; j++){
  7. mult.v[i]+=m[i][j]*v.get(j);
  8. }
  9. }
  10. return mult;
  11. }
Add Comment
Please, Sign In to add comment