'Returns just the errors of the Kalman Filter'

@classmethod
def geterrors(cls, y, k, k_ar, k_ma, k_lags, nobs, Z_mat, m, R_mat, T_mat, paramsdtype):

    if issubdtype(paramsdtype, float):
        return kalman_loglike.kalman_filter_double(y, k, k_ar, k_ma, k_lags, int(nobs), Z_mat, R_mat, T_mat)[0]
    elif issubdtype(paramsdtype, complex):
        return kalman_loglike.kalman_filter_complex(y, k, k_ar, k_ma, k_lags, int(nobs), Z_mat, R_mat, T_mat)[0]
    else:
        raise TypeError(('dtype    %s    is    not    supported    Please    file    a    bug    report' % paramsdtype))
