@@ -14,8 +14,8 @@ For `(y, ladj) = with_logabsdet_jacobian(f, x)`, the following must hold true:
1414`with_logabsdet_jacobian` comes with support for broadcasted/mapped functions
1515(via `Base.Fix1`) and (Julia >=v1.6 only) `ComposedFunction`.
1616
17- If no volume element is defined/applicable, `with_logabsdet_jacobian(f, x)` returns
18- [`NoLogAbsDetJacobian(f)`](@ref).
17+ If no volume element is defined/applicable, `with_logabsdet_jacobian(f::F , x::T)`
18+ returns [`NoLogAbsDetJacobian{F,T} (f)`](@ref).
1919
2020# Examples
2121
@@ -83,15 +83,6 @@ struct NoLogAbsDetJacobian{F,T}
8383end
8484export NoLogAbsDetJacobian
8585
86- function _no_ladj_errmsg (@nospecialize noladj:: NoLogAbsDetJacobian{F,T} ) where {F,T}
87- (" with_logabsdet_jacobian(" , noladj. f, " , ::" , T, " is not defined " )
88- end
89-
90- Base. getindex (@nospecialize (noladj:: NoLogAbsDetJacobian ), args... ) = error (_no_ladj_errmsg (noladj)... )
91- Base. iterate (@nospecialize (noladj:: NoLogAbsDetJacobian )) = error (_no_ladj_errmsg (noladj)... )
92- Base. firstindex (@nospecialize (noladj:: NoLogAbsDetJacobian )) = error (_no_ladj_errmsg (noladj)... )
93- Base. lastindex (@nospecialize (noladj:: NoLogAbsDetJacobian )) = error (_no_ladj_errmsg (noladj)... )
94-
9586with_logabsdet_jacobian (f:: F , :: T ) where {F,T} = NoLogAbsDetJacobian {F,T} (f, )
9687
9788
0 commit comments