Module Import alias identifier FunctionDef arguments args NameParam NameParam defaults Num body Expr Str ImportFrom alias Assert CompareEq AttributeLoad NameLoad attr Num Str Assert CompareEq SubscriptLoad AttributeLoad NameLoad attr Index Num SubscriptLoad AttributeLoad NameLoad attr Index Num Str If CompareGt NameLoad Num body Return Call NameLoad SubscriptLoad NameLoad ExtSlice Index Num Slice NameLoad keyword TupleLoad BinOpSub SubscriptLoad AttributeLoad NameLoad attr Index Num NameLoad keyword TupleLoad BinOpMult BinOpAdd SubscriptLoad AttributeLoad NameLoad attr Index Num Num AttributeLoad NameLoad attr orelse If CompareLt NameLoad Num body Return Call NameLoad SubscriptLoad NameLoad ExtSlice Slice UnaryOpUSub NameLoad Index Num keyword TupleLoad BinOpAdd SubscriptLoad AttributeLoad NameLoad attr Index Num NameLoad keyword TupleLoad BinOpMult BinOpAdd SubscriptLoad AttributeLoad NameLoad attr Index Num Num AttributeLoad NameLoad attr orelse Return Call NameLoad NameLoad keyword TupleLoad SubscriptLoad AttributeLoad NameLoad attr Index Num keyword TupleLoad BinOpMult BinOpAdd SubscriptLoad AttributeLoad NameLoad attr Index Num Num AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults Num body ImportFrom alias Assert CompareEq AttributeLoad NameLoad attr Num Str Assign NameStore Call NameLoad NameLoad keyword TupleLoad AttributeLoad NameLoad attr keyword TupleLoad AttributeLoad NameLoad attr Return Call NameLoad SubscriptLoad NameLoad Slice BinOpAdd Num NameLoad keyword TupleLoad BinOpSub SubscriptLoad AttributeLoad NameLoad attr Index Num Num SubscriptLoad AttributeLoad NameLoad attr Index Num keyword TupleLoad BinOpAdd SubscriptLoad AttributeLoad NameLoad attr Index Num AttributeLoad NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Num decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assert CompareLtE AttributeLoad NameLoad attr Num Str Assign NameStore Call NameLoad NameLoad NameLoad Expr Call NameLoad NameLoad NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults Num body Expr Str Return Call NameLoad NameLoad NameLoad NameLoad AttributeLoad NameLoad attr decorator_list Assign NameStore NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults Num body Expr Str Return Call NameLoad NameLoad NameLoad NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults Num body Expr Str Return Call NameLoad NameLoad NameLoad NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults Num body Expr Str Return Call NameLoad NameLoad NameLoad NameLoad AttributeLoad NameLoad attr decorator_list If CompareEq NameLoad Str body Import alias Expr Call AttributeLoad NameLoad attr
N/A N/A numpy np view N/A N/A A offset N/A 0 N/A N/A 
    Get a view on the diagonal elements of a 2D array.

    This is actually a view (!) on the diagonal of the array, so you can
    in-place adjust the view.

    :param :class:`ndarray` A: 2 dimensional numpy array
    :param int offset: view offset to give back (negative entries allowed)
    :rtype: :class:`ndarray` view of diag(A)

    >>> import numpy as np
    >>> X = np.arange(9).reshape(3,3)
    >>> view(X)
    array([0, 4, 8])
    >>> d = view(X)
    >>> d += 2
    >>> view(X)
    array([ 2,  6, 10])
    >>> view(X, offset=-1)
    array([3, 7])
    >>> subtract(X, 3, offset=-1)
    array([[ 2,  1,  2],
           [ 0,  6,  5],
           [ 6,  4, 10]])
     numpy.lib.stride_tricks as_strided N/A N/A N/A A ndim 2 only implemented for 2 dimensions N/A N/A N/A N/A A shape N/A 0 N/A N/A A shape N/A 1 attempting to get the view of non-square matrix?! N/A N/A offset 0 N/A N/A N/A as_strided N/A A N/A N/A 0 N/A offset shape N/A N/A N/A N/A A shape N/A 0 offset strides N/A N/A N/A N/A N/A A shape N/A 0 1 N/A A itemsize N/A N/A N/A offset 0 N/A N/A N/A as_strided N/A A N/A N/A N/A offset N/A 0 shape N/A N/A N/A N/A A shape N/A 0 offset strides N/A N/A N/A N/A N/A A shape N/A 0 1 N/A A itemsize N/A N/A N/A as_strided A shape N/A N/A N/A A shape N/A 0 strides N/A N/A N/A N/A N/A A shape N/A 0 1 N/A A itemsize N/A offdiag_view N/A N/A A offset N/A 0 N/A numpy.lib.stride_tricks as_strided N/A N/A N/A A ndim 2 only implemented for 2 dimensions N/A Af N/A as_strided A shape N/A N/A A size strides N/A N/A A itemsize N/A N/A as_strided N/A Af N/A N/A 1 offset shape N/A N/A N/A N/A A shape N/A 0 1 N/A N/A A shape N/A 1 strides N/A N/A N/A N/A A strides N/A 0 N/A A itemsize N/A N/A A strides N/A 1 N/A _diag_ufunc N/A N/A A b offset func N/A N/A N/A b N/A N/A np squeeze b N/A N/A N/A b ndim 1 only implemented for one dimensional arrays N/A dA N/A view A offset N/A N/A func dA b dA N/A A N/A times N/A N/A A b offset N/A 0 N/A N/A 
    Times the view of A with b in place (!).
    Returns modified A
    Broadcasting is allowed, thus b can be scalar.

    if offset is not zero, make sure b is of right shape!

    :param ndarray A: 2 dimensional array
    :param ndarray-like b: either one dimensional or scalar
    :param int offset: same as in view.
    :rtype: view of A, which is adjusted inplace
     N/A N/A _diag_ufunc A b offset N/A np multiply N/A N/A multiply times divide N/A N/A A b offset N/A 0 N/A N/A 
    Divide the view of A by b in place (!).
    Returns modified A
    Broadcasting is allowed, thus b can be scalar.

    if offset is not zero, make sure b is of right shape!

    :param ndarray A: 2 dimensional array
    :param ndarray-like b: either one dimensional or scalar
    :param int offset: same as in view.
    :rtype: view of A, which is adjusted inplace
     N/A N/A _diag_ufunc A b offset N/A np divide N/A add N/A N/A A b offset N/A 0 N/A N/A 
    Add b to the view of A in place (!).
    Returns modified A.
    Broadcasting is allowed, thus b can be scalar.

    if offset is not zero, make sure b is of right shape!

    :param ndarray A: 2 dimensional array
    :param ndarray-like b: either one dimensional or scalar
    :param int offset: same as in view.
    :rtype: view of A, which is adjusted inplace
     N/A N/A _diag_ufunc A b offset N/A np add N/A subtract N/A N/A A b offset N/A 0 N/A N/A 
    Subtract b from the view of A in place (!).
    Returns modified A.
    Broadcasting is allowed, thus b can be scalar.

    if offset is not zero, make sure b is of right shape!

    :param ndarray A: 2 dimensional array
    :param ndarray-like b: either one dimensional or scalar
    :param int offset: same as in view.
    :rtype: view of A, which is adjusted inplace
     N/A N/A _diag_ufunc A b offset N/A np subtract N/A N/A N/A __name__ __main__ N/A N/A doctest N/A N/A N/A doctest testmod