mirror of
https://github.com/ml-explore/mlx.git
synced 2025-12-16 01:49:05 +08:00
* unify matmuls * Update mlx/backend/common/matmul.cpp Co-authored-by: Angelos Katharopoulos <a_katharopoulos@apple.com> --------- Co-authored-by: Angelos Katharopoulos <a_katharopoulos@apple.com>
21 lines
322 B
C++
21 lines
322 B
C++
// Copyright © 2025 Apple Inc.
|
|
|
|
#pragma once
|
|
#include "mlx/array.h"
|
|
|
|
namespace mlx::core {
|
|
|
|
template <typename T>
|
|
void matmul(
|
|
const array& a,
|
|
const array& b,
|
|
array& out,
|
|
bool a_transposed,
|
|
bool b_transposed,
|
|
size_t lda,
|
|
size_t ldb,
|
|
float alpha,
|
|
float beta);
|
|
|
|
} // namespace mlx::core
|