Exemplo n.º 1
0
def _st(A, b, trans=0):
    """
    solve triangular system "tril(A) @ x = b", returning x
    
    if trans==1, solve "tril(A).T @ x = b" instead.
    """
    if b.size == 0:
        return b
    else:
        return _solve_triangular(A, b, trans=trans, lower=True)
Exemplo n.º 2
0
def _st(A, b, trans=0):
    """
    solve triangular system "tril(A) @ x = b", returning x
    
    if trans==1, solve "tril(A).T @ x = b" instead.
    """
    if b.size == 0:
        return b
    else:
        return _solve_triangular(A, b, trans=trans, lower=True)
Exemplo n.º 3
0
def solve_triangular(L, a):
    return _solve_triangular(L, a, lower=True, trans='T')
Exemplo n.º 4
0
def solve_triangular(L, a):
    return _solve_triangular(L, a, lower=True, trans='T')