You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
_pinv_smooth!(A, T1, T2; atol::Real=0.0, rtol::Real=(eps(real(float(oneunit(T))))*min(size(A)...))*iszero(atol)) where T
66
66
67
67
Computes the pseudo-inverse of a matrix A, and stores it in T1. If T2 is provided, it is used as a temporary matrix.
@@ -75,7 +75,7 @@ The difference with respect to the original function is that the cutoff is done
75
75
- `T2::AbstractMatrix`: A temporary matrix.
76
76
- `atol::Real`: The absolute tolerance.
77
77
- `rtol::Real`: The relative tolerance.
78
-
"""
78
+
=#
79
79
function_pinv_smooth!(
80
80
A::AbstractMatrix{T},
81
81
T1::AbstractMatrix{T},
@@ -98,7 +98,7 @@ function _pinv_smooth!(
98
98
returnmul!(T1, SVD.Vt', T2)
99
99
end
100
100
101
-
"""
101
+
#=
102
102
_calculate_expectation!(p,z,B,idx)
103
103
104
104
Calculates the expectation values and function values of the operators and functions in p.e_ops and p.f_ops, respectively, and stores them in p.expvals and p.funvals.
@@ -110,7 +110,7 @@ The function is called by the callback _save_affect_lr_mesolve!.
110
110
- `z::AbstractMatrix`: The z matrix of the low-rank algorithm.
111
111
- `B::AbstractMatrix`: The B matrix of the low-rank algorithm.
112
112
- `idx::Integer`: The index of the current time step.
0 commit comments