Module Import alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Num Assign NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr TupleLoad NameLoad NameLoad keyword Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad keyword AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad Call AttributeLoad NameLoad attr attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr NameLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr keyword Num keyword Num keyword Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Num BinOpAdd NameLoad Num keyword Str Assign NameStore BinOpMod Call AttributeLoad AttributeLoad NameLoad attr attr CompareNotEq NameLoad NameLoad keyword Num Num Assign NameStore BinOpSub Num BinOpMult Num Call AttributeLoad NameLoad attr Str Return TupleLoad BinOpMult NameLoad NameLoad NameLoad decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Return Str decorator_list NameLoad FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr CompareEq Call AttributeLoad NameLoad attr Num Assign TupleStore NameStore NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr CompareEq AttributeLoad AttributeLoad NameLoad attr attr Str Expr Call AttributeLoad NameLoad attr CompareEq AttributeLoad NameLoad attr Num Expr Call AttributeLoad NameLoad attr CompareEq SubscriptLoad AttributeLoad NameLoad attr Index Num SubscriptLoad AttributeLoad NameLoad attr Index Num decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr SubscriptLoad NameLoad Index Num Return TupleLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign TupleStore AttributeStore NameLoad attr NameStore Call NameLoad SubscriptLoad NameLoad Index Num Return TupleLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign TupleStore NameStore NameLoad Assign TupleStore NameStore NameLoad TryExcept body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr TupleLoad Num Num Num handlers ExceptHandler type AttributeLoad AttributeLoad NameLoad attr attr body Raise Call NameLoad Str Assign NameStore BinOpMult BinOpMult SubscriptLoad NameLoad ExtSlice Slice Index NameLoad Index NameLoad SubscriptLoad AttributeLoad NameLoad attr ExtSlice Slice Index NameLoad Index NameLoad NameLoad Return TupleLoad Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign TupleStore NameStore NameLoad Assign TupleStore NameStore NameLoad Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr TupleLoad Num Num Num If Call AttributeLoad AttributeLoad NameLoad attr attr CompareNotEq NameLoad Num body Raise Call NameLoad Str Assign NameStore BinOpMult BinOpMult SubscriptLoad NameLoad ExtSlice Slice Index NameLoad Index NameLoad SubscriptLoad AttributeLoad NameLoad attr ExtSlice Slice Index NameLoad Index NameLoad NameLoad Return TupleLoad Call AttributeLoad NameLoad attr NameLoad decorator_list decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore TupleLoad Num Call NameLoad AttributeLoad NameLoad attr SubscriptLoad AttributeLoad AttributeLoad NameLoad attr attr Index Num Assign NameStore Call Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call Call NameLoad NameLoad Return Call Call AttributeLoad NameLoad attr TupleLoad NameLoad decorator_list
N/A N/A numpy chainer cuda chainer function chainer.functions.array reshape chainer.functions.math inv chainer.functions.math matmul chainer utils chainer.utils type_check _det_gpu N/A N/A b N/A N/A N/A a N/A N/A N/A N/A matmul _as_batch_mat b copy N/A n N/A N/A a shape N/A 1 N/A n_matrices N/A len a N/A p N/A N/A N/A cuda cupy zeros N/A n_matrices n dtype int32 N/A info N/A N/A N/A cuda cupy zeros n_matrices dtype N/A numpy intp N/A ap N/A N/A matmul _mat_ptrs a N/A N/A _ lda N/A N/A matmul _get_ld a N/A N/A N/A N/A cuda cublas sgetrfBatched N/A N/A N/A cuda Device cublas_handle n N/A N/A ap data ptr lda N/A N/A p data ptr N/A N/A info data ptr n_matrices N/A det N/A N/A N/A cuda cupy prod N/A N/A a diagonal axis1 1 axis2 2 axis 1 N/A rng N/A N/A N/A cuda cupy arange 1 N/A n 1 dtype int32 N/A parity N/A N/A N/A N/A cuda cupy sum N/A p rng axis 1 2 N/A sign N/A 1.0 N/A 2.0 N/A N/A parity astype float32 N/A N/A N/A det sign info N/A BatchDet N/A N/A function Function N/A label N/A N/A self N/A N/A N/A det N/A property check_type_forward N/A N/A self in_types N/A N/A N/A N/A N/A type_check expect N/A N/A N/A in_types size 1 N/A N/A a_type in_types N/A a_type N/A N/A matmul _convert_type a_type N/A N/A N/A type_check expect N/A N/A N/A a_type dtype kind f N/A N/A N/A type_check expect N/A N/A a_type ndim 3 N/A N/A N/A type_check expect N/A N/A N/A a_type shape N/A -1 N/A N/A a_type shape N/A -2 N/A forward_cpu N/A N/A self x N/A N/A N/A N/A self detx N/A N/A utils force_array N/A N/A N/A numpy linalg det N/A x N/A 0 N/A N/A N/A self detx N/A forward_gpu N/A N/A self x N/A N/A N/A N/A N/A self detx _ N/A _det_gpu N/A x N/A 0 N/A N/A N/A self detx N/A backward_cpu N/A N/A self x gy N/A N/A N/A N/A x x N/A N/A gy gy N/A N/A N/A inv_x N/A N/A N/A numpy linalg inv N/A N/A x transpose N/A 0 2 1 N/A N/A N/A N/A N/A numpy linalg LinAlgError N/A N/A N/A ValueError Input has singular matrices. N/A grad N/A N/A N/A gy N/A N/A N/A None N/A None N/A N/A self detx N/A N/A N/A None N/A None inv_x N/A N/A N/A N/A utils force_array grad N/A backward_gpu N/A N/A self x gy N/A N/A N/A N/A x x N/A N/A gy gy N/A N/A inv_x info N/A N/A inv _inv_gpu N/A N/A x transpose N/A 0 2 1 N/A N/A N/A N/A cuda cupy any N/A info 0 N/A N/A N/A ValueError Input has singular matrices. N/A grad N/A N/A N/A gy N/A N/A N/A None N/A None N/A N/A self detx N/A N/A N/A None N/A None inv_x N/A N/A N/A N/A utils force_array grad N/A N/A batch_det N/A N/A a N/A N/A N/A Computes the determinant of a batch of square matrices.

    Args:
        a (Variable): Input array to compute the determinant for.
        The first dimension should iterate over each matrix and be
        of the batchsize.

    Returns:
        ~chainer.Variable: vector of determinants for every matrix
        in the batch.

     N/A N/A N/A BatchDet a N/A det N/A N/A a N/A N/A N/A Computes the determinant of a single square matrix.

    Args:
        a (Variable): Input array to compute the determinant for.

    Returns:
        ~chainer.Variable: Scalar determinant of the matrix a.

     N/A shape N/A 1 N/A len N/A a data N/A N/A N/A a data shape N/A 1 N/A batched_a N/A N/A N/A reshape Reshape shape a N/A batched_det N/A N/A BatchDet batched_a N/A N/A N/A N/A reshape Reshape N/A batched_det N/A