如果我有这个:
A * f = g;
A: upper triangular matrix (n x n)
f: (n x 1)
g: (n x 1)
需要使用反向替换算法求解f
。我会说自己写一个并没有那么难,但是哦,如果那里有图书馆,那为什么不呢。
最佳答案
提升 uBlas应该管用。至少如果我正确理解你的问题,你可能想从查看 lu_substitute()
和 inplace_solve()
开始。
关于C++ : Math library that solve system of equations using back substitution algorithm,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2489833/