• 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
名称
最后提交
最后更新
..
compile 正在载入提交数据...
d3viz 正在载入提交数据...
graph 正在载入提交数据...
link 正在载入提交数据...
misc 正在载入提交数据...
scalar 正在载入提交数据...
scan 正在载入提交数据...
sparse 正在载入提交数据...
tensor 正在载入提交数据...
typed_list 正在载入提交数据...
__init__.py 正在载入提交数据...
test_breakpoint.py 正在载入提交数据...
test_config.py 正在载入提交数据...
test_gradient.py 正在载入提交数据...
test_ifelse.py 正在载入提交数据...
test_printing.py 正在载入提交数据...
test_raise_op.py 正在载入提交数据...
test_rop.py 正在载入提交数据...
test_updates.py 正在载入提交数据...
unittest_tools.py 正在载入提交数据...