Skip to content

Code vectorization #93

@abukaj

Description

@abukaj

kCSD-python/kcsd/KCSD.py

Lines 219 to 220 in 2ce755a

for i in range(self.n_ele):
estimation[:, t] += estimation_table[:, i]*beta[i] # C*(x) Eq 18

is IMHO mathematically equivalent with:

estimation[:, t] = np.dot(estimation_table, beta)

which should be faster.

However, the obtained results may differ due to numerical issues.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions