Esempio n. 1
0
File: hrb.py Progetto: 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
Esempio 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
Esempio 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