Module Expr Str Import alias identifier FunctionDef arguments args NameParam NameParam NameParam defaults Num body Expr Str If CompareEq Call NameLoad AttributeLoad NameLoad attr Num body Assign NameStore Call AttributeLoad NameLoad attr TupleLoad Num SubscriptLoad AttributeLoad NameLoad attr Index Num orelse Assign NameStore NameLoad Assign NameStore Call AttributeLoad NameLoad attr TupleLoad NameLoad BinOpMult NameLoad Call AttributeLoad NameLoad attr TupleLoad SubscriptLoad AttributeLoad NameLoad attr Index Num BinOpSub NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Num keyword Num Return NameLoad decorator_list
N/A N/A This module provides the padr() function, which pads a matrix on the 
right.
 N/A numpy np padr N/A N/A x n val N/A 0.0 N/A N/A Pad a matrix ``x`` on the right to length ``n`` with value ``val``.

    **Parameters:**

    x : ndarray
        The matrix to be padded.

    n : int
        The number of columns of the matrix after padding.

    val : scalar, optional
        The value to be used used for padding.

    .. note:: A 1-d array, for example ``a.shape == (N,)`` is reshaped to be
        a 1 row array: ``a.reshape((1, N))``

    The empty matrix is assumed to be have 1 empty row.

    **Returns:**

    xp : 2-d ndarray
        The padded matrix.
     N/A N/A N/A len N/A x shape 1 N/A N/A xp N/A N/A x reshape N/A 1 N/A N/A x shape N/A 0 N/A N/A xp x N/A y N/A N/A np concatenate N/A xp N/A val N/A N/A np ones N/A N/A N/A xp shape N/A 0 N/A n N/A N/A xp shape N/A 1 axis 1 N/A y N/A