is there any way to manipulate an entire row of a matrix without going through a loop to manipulate each individual element? each element in the row would be manipulated exactly the same as the rest.
Well what are you going to manipulate?
Just subtract a matrix with 0s except where you want to subtract numbers.
ok, that better than a loop. thanks
but there is one problem. how would i do this if the length of the matrix is random?
Actually, you can't subtract matricies I'm pretty sure; you'll have to add a matrix with negative numbers.
That's not true, lol
what made you think that?
For matrices, you can add and subtract as long as the matrices have the same dimensions. You can multiply as long as the number of columns in the first matrix equals the number of rows in the second. Finally, you can inverse a matrix if it is square. I talk a little about it here, but the page is incomplete.
"No"? If one immediately can't find the solution to a problem, that's the time to get creative, not give up! Converting numbers to strings, for instance – once upon a time, that couldn't be done.
The following will add N to row R of matrix [A]: