mirror of
https://github.com/ml-explore/mlx.git
synced 2025-12-16 01:49:05 +08:00
Added Kronecker Product (#1728)
This commit is contained in:
committed by
GitHub
parent
92ec632ad5
commit
491fa95b1f
@@ -917,6 +917,9 @@ inline array gather(
|
||||
return gather(a, {indices}, std::vector<int>{axis}, slice_sizes, s);
|
||||
}
|
||||
|
||||
/** Returns Kronecker Producct given two input arrays. */
|
||||
array kron(const array& a, const array& b, StreamOrDevice s = {});
|
||||
|
||||
/** Take array slices at the given indices of the specified axis. */
|
||||
array take(
|
||||
const array& a,
|
||||
|
||||
Reference in New Issue
Block a user