Boost logo

Ublas :

From: Karl Meerbergen (Karl.Meerbergen_at_[hidden])
Date: 2006-12-15 11:12:18

Gunter Winkler wrote:

>On Friday 15 December 2006 14:59, Karl Meerbergen wrote:
>>I have a suggestion: instead of returning a bool you could return a
>>X::size_type to indicate how far the triangular solve is carried out.
>>So, if x is a vector and the return value is x.size(), then the solve is
>>fully carried out. Otherwise the return value tells you how many
>>elements of x have been solved for.
>Interesting idea, but this may be misleading because the lower triangular
>solve starts from the beginning of x and the upper triangular solve starts
>from the end of x. The success message would then be x.size() or 0, resp.
>I have to think about that.

Agreed. I forgot about the lower triangular solve.