Skip to content

Commit 7f72b74

Browse files
committed
remove unused function
1 parent 381d813 commit 7f72b74

1 file changed

Lines changed: 0 additions & 12 deletions

File tree

src/tensors/tensoroperations.jl

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -382,18 +382,6 @@ function _contract_memcost(dimA, dimB, dimC, C, A, pA, B, pB, pAB)
382382
dimC * !TO.isblasdestination(C, ipAB)
383383
end
384384

385-
function TO.contract_memcost(
386-
C::AbstractTensorMap,
387-
A::AbstractTensorMap, pA::Index2Tuple,
388-
B::AbstractTensorMap, pB::Index2Tuple,
389-
pAB::Index2Tuple
390-
)
391-
ipAB = TO.oindABinC(pAB, pA, pB)
392-
return dim(A) * (!TO.isblascontractable(A, pA) || scalartype(A) !== scalartype(C)) +
393-
dim(B) * (!TO.isblascontractable(B, pB) || scalartype(B) !== scalartype(C)) +
394-
dim(C) * !TO.isblasdestination(C, ipAB)
395-
end
396-
397385
function TO.isblascontractable(A::AbstractTensorMap, pA::Index2Tuple)
398386
return scalartype(A) <: LinearAlgebra.BlasFloat && has_shared_permute(A, pA)
399387
end

0 commit comments

Comments
 (0)