Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public Vector mult(Vector v){
- rowNum = getRowNum();
- colNum = getColNum();
- Vector mult = new Vector(rowNum);
- for(int i = 0; i < rowNum; i++){
- for(int j = 0; j < colNum; j++){
- mult.v[i]+=m[i][j]*v.get(j);
- }
- }
- return mult;
- }
Add Comment
Please, Sign In to add comment