Hello,

I want to set the entire column of a N x M matrix to a N vector. What is the best way to do that?

My first guess would be to VecGetArray and use that array for MatSetValuesLocal with nrow = VecGetLocalSize. What is the best to say MatSetValuesLocal that I want to set all rows continuesly (same like passing irow = [0, 1, ..., VecGetLocalSize-1]?

Any better way?

Thanks,
Florian

Reply via email to