예제 #1
0
파일: hrb.py 프로젝트: 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
예제 #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
예제 #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