mirror of
https://github.com/vale981/stocproc
synced 2025-03-05 09:41:42 -05:00
added recontruction for fixed s value -> not as memory aggressive
This commit is contained in:
parent
8e69b1f803
commit
e0fecb7712
1 changed files with 8 additions and 0 deletions
|
@ -391,6 +391,14 @@ class StocProc(object):
|
|||
|
||||
return np.tensordot(tmp, u_i_all_ast_s, axes=([1],[1]))
|
||||
|
||||
def recons_corr_single_s(self, t_array, s):
|
||||
u_i_all_t = self.u_i_all(t_array) #(N_gp, N_ev)
|
||||
u_i_all_ast_s = np.conj(self.u_i_all(np.asarray([s]))) #(1, N_ev)
|
||||
lambda_i_all = self.lambda_i_all() #(N_ev)
|
||||
tmp = lambda_i_all.reshape(1, self._num_ev) * u_i_all_t #(N_gp, N_ev)
|
||||
return np.tensordot(tmp, u_i_all_ast_s, axes=([1],[1]))[:,0]
|
||||
|
||||
|
||||
# def reconst_corr_zero(self, t_array):
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue