• Tanish's avatar
    Rewrite determinant of diagonal matrix as product of diagonal (#797) · 94e9ef06
    Tanish 提交于
    * Added det-diag rewrite
    
    * fixed pt.diagonal error
    
    * Added test for rewrite
    
    * Added test for rewrite
    
    * fixed test
    
    * added check for verifying rewrite
    
    * fixed other failing test
    
    * added docstring
    
    * updated docstring
    
    * fixed mypy error
    
    * added det_diag_from_diag and test
    
    * fixed node rewriter name
    
    * added row/col tests
    
    * updated check for eye
    
    * updated rewrite and tests
    
    * added check for eye_input and new test for cases where not to apply rewrite
    
    * does not apply rewrite to specific cases
    
    * typecasted test variable
    
    * typecast variables
    
    * removed shape known check; fails for rectangle eye
    
    * added new tests for (1,1) eye and rectangle eye
    
    * added helper function for diag from eye_mul
    
    * updated case for no rewrite which was failing tests
    
    * cleaned code; updated rectangle_eye test which is an invalid rewrite
    
    * add check for k in pt.eye
    
    * Update pytensor/tensor/rewriting/linalg.py
    Co-authored-by: 's avatarRicardo Vieira <28983449+ricardoV94@users.noreply.github.com>
    
    * typecasted det_val
    
    * fixed final typecasting
    
    * fixed merge
    
    * fixed failing rectangle eye test
    
    * fixed typo
    
    ---------
    Co-authored-by: 's avatarRicardo Vieira <28983449+ricardoV94@users.noreply.github.com>
    94e9ef06
名称
最后提交
最后更新
..
conv 正在载入提交数据...
random 正在载入提交数据...
rewriting 正在载入提交数据...
__init__.py 正在载入提交数据...
test_basic.py 正在载入提交数据...
test_blas.py 正在载入提交数据...
test_blas_c.py 正在载入提交数据...
test_blas_scipy.py 正在载入提交数据...
test_blockwise.py 正在载入提交数据...
test_casting.py 正在载入提交数据...
test_complex.py 正在载入提交数据...
test_elemwise.py 正在载入提交数据...
test_extra_ops.py 正在载入提交数据...
test_fft.py 正在载入提交数据...
test_fourier.py 正在载入提交数据...
test_functional.py 正在载入提交数据...
test_gc.py 正在载入提交数据...
test_inplace.py 正在载入提交数据...
test_io.py 正在载入提交数据...
test_keepdims.py 正在载入提交数据...
test_math.py 正在载入提交数据...
test_math_scipy.py 正在载入提交数据...
test_merge.py 正在载入提交数据...
test_nlinalg.py 正在载入提交数据...
test_shape.py 正在载入提交数据...
test_sharedvar.py 正在载入提交数据...
test_slinalg.py 正在载入提交数据...
test_sort.py 正在载入提交数据...
test_special.py 正在载入提交数据...
test_subtensor.py 正在载入提交数据...
test_type.py 正在载入提交数据...
test_type_other.py 正在载入提交数据...
test_utils.py 正在载入提交数据...
test_variable.py 正在载入提交数据...
test_xlogx.py 正在载入提交数据...
utils.py 正在载入提交数据...