MCPcopy Create free account
hub / github.com/DedalusProject/dedalus / apply_matrix

Function apply_matrix

dedalus/tools/array.py:77–82  ·  view source on GitHub ↗

Apply matrix along any axis of an array.

(matrix, array, axis, **kw)

Source from the content-addressed store, hash-verified

75
76
77def apply_matrix(matrix, array, axis, **kw):
78 """Apply matrix along any axis of an array."""
79 if sparse.isspmatrix(matrix):
80 return apply_sparse(matrix, array, axis, **kw)
81 else:
82 return apply_dense(matrix, array, axis, **kw)
83
84
85def apply_dense_einsum(matrix, array, axis, optimize=True, **kw):

Callers 15

operateMethod · 0.85
operateMethod · 0.85
operateMethod · 0.85
operateMethod · 0.85
operateMethod · 0.85
operateMethod · 0.85
forward_reducedMethod · 0.85
backward_reducedMethod · 0.85

Calls 2

apply_sparseFunction · 0.85
apply_denseFunction · 0.85

Tested by

no test coverage detected