dist/include/ contains the MLX and MLX-C headers needed for CGo compilation. Without these, go-mlx cannot be used as a module dependency (headers not found in module cache). Libraries (dylib/metallib) are still gitignored — users build those locally via cmake. Co-Authored-By: Virgil <virgil@lethean.io>
26 lines
461 B
C++
26 lines
461 B
C++
// Copyright © 2025 Apple Inc.
|
|
|
|
#pragma once
|
|
#include "mlx/array.h"
|
|
|
|
namespace mlx::core {
|
|
|
|
template <typename T>
|
|
void matmul(
|
|
const T* a,
|
|
const T* b,
|
|
T* out,
|
|
bool a_transposed,
|
|
bool b_transposed,
|
|
size_t lda,
|
|
size_t ldb,
|
|
size_t ldc,
|
|
float alpha,
|
|
float beta,
|
|
size_t batch_size,
|
|
const Shape& a_shape,
|
|
const Strides& a_strides,
|
|
const Shape& b_shape,
|
|
const Strides& b_strides);
|
|
|
|
} // namespace mlx::core
|