Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I build a sum of two rows in a CNiReal64Matrix?

How can I build a sum of two rows in a CNiReal64Matrix?
0 Kudos
Message 1 of 3
(2,878 Views)
You could copy the two rows that you want to add into two CNiReal64Vectors via CNiReal64Matrix::CopyRow, then add the two CNiReal64Vectors via CNiReal64Vector::Add or CNiReal64Vector::operator+.

- Elton
0 Kudos
Message 2 of 3
(2,878 Views)
That's the way I do it right now. But I think it could not be the best solution because it requires a lot of processor time and memory. I have to do it while data acquisition so it should be a lean solution. Moreover, matrix manipulations like addition or multiplication of rows is a mathematical standard and should be available for matrix classes.
0 Kudos
Message 3 of 3
(2,878 Views)