Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/factorizations.jl
Original file line number Diff line number Diff line change
Expand Up @@ -842,8 +842,8 @@ partition is specified either via labels or directly through a bi-permutation;
fused codomain and domain sizes must match. `A` is treated as a shape prototype
and is not mutated.

Not exported, since exporting would clash with the implicit `Base.one`. Qualify
as `TensorAlgebra.one(A, ...)`.
A tensor generalization in its own right, not an extension of `Base.one`, so it is neither
exported nor imported. Qualify as `TensorAlgebra.one(A, ...)`.

See also `MatrixAlgebraKit.one!`.

Expand All @@ -862,7 +862,7 @@ julia> matricize(Id, Val(2)) ≈ I
true
```
"""
one
function one end

function one!!(style::MatricizeStyle, A, ndims_codomain::Val; kwargs...)
A_mat = matricize(style, A, ndims_codomain)
Expand Down