From dc7edcb80631750ba0ce21b2d1700dabff4beb1c Mon Sep 17 00:00:00 2001 From: christoph Date: Tue, 22 Aug 2023 13:09:29 +0200 Subject: [PATCH] API fix --- docs/src/api.md | 18 ++++++++++++++++++ src/operators_sparse.jl | 6 ++---- 2 files changed, 20 insertions(+), 4 deletions(-) diff --git a/docs/src/api.md b/docs/src/api.md index edb392db..2dec73d6 100644 --- a/docs/src/api.md +++ b/docs/src/api.md @@ -594,3 +594,21 @@ DenseChiMatrix ```@docs QuantumOpticsBase.set_printing ``` + +## [LazyTensor functions](@id API: LazyTensor functions) + +```@docs +lazytensor_enable_cache +``` + +```@docs +lazytensor_disable_cache +``` + +```@docs +lazytensor_cachesize +``` + +```@docs +lazytensor_clear_cache +``` \ No newline at end of file diff --git a/src/operators_sparse.jl b/src/operators_sparse.jl index 7765530e..f22fe07b 100644 --- a/src/operators_sparse.jl +++ b/src/operators_sparse.jl @@ -6,14 +6,12 @@ const SparseOpPureType{BL,BR} = Operator{BL,BR,<:SparseMatrixCSC} const SparseOpAdjType{BL,BR} = Operator{BL,BR,<:Adjoint{<:Number,<:SparseMatrixCSC}} const SparseOpType{BL,BR} = Union{SparseOpPureType{BL,BR},SparseOpAdjType{BL,BR}} - """ SparseOperator(b1[, b2, data]) Sparse array implementation of Operator. -The matrix is stored as the julia built-in type `SparseMatrixCSC` -in the `data` field. +The matrix is stored as the julia built-in type `SparseMatrixCSC` in the `data` field. """ SparseOperator(b1::Basis, b2::Basis, data) = Operator(b1, b2, SparseMatrixCSC(data)) SparseOperator(b1::Basis, b2::Basis, data::SparseMatrixCSC) = Operator(b1, b2, data) @@ -89,7 +87,7 @@ identityoperator(::Type{T}, b::Basis) where T<:Number = identityoperator(DataOpe """ diagonaloperator(b::Basis) -Create a diagonal operator of type [`SparseOperator`](@ref). +Create a diagonal operator of type [`SparseOperator`](@ref). """ function diagonaloperator(b::Basis, diag) @assert 1 <= length(diag) <= length(b)