Exemplo n.º 1
0
Arquivo: hrb.py Projeto: dpo/pyorder
def write_rb_from_coord(fname, nrow, ncol, irow, jcol, val=None, **kwargs):
    """
    Convenience function to write a matrix in coordinate format to file
    in RB format.
    """
    (ind, ip, values) = coord2csc(ncol, irow, jcol, val)
    write_rb(fname, nrow, ncol, ip, ind, val, **kwargs)
    return
Exemplo n.º 2
0
def write_rb_from_coord(fname, nrow, ncol, irow, jcol, val=None, **kwargs):
    """
    Convenience function to write a matrix in coordinate format to file
    in RB format.
    """
    (ind, ip, values) = coord2csc(ncol, irow, jcol, val)
    write_rb(fname, nrow, ncol, ip, ind, val, **kwargs)
    return
Exemplo n.º 3
0
def write_rb_from_coord(fname, nrow, ncol, irow, jcol, val=None, **kwargs):
    """Write a matrix in coord format to file in RB format."""
    (ind, ip, values) = coord2csc(ncol, irow, jcol, val)
    write_rb(fname, nrow, ncol, ip, ind, val, **kwargs)
    return