Skip to content
Draft
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
abf4f49
Adds MLX searchsorted PRD documentation
ppaleja Nov 19, 2025
2738378
correct prd to reflect python API layer
ppaleja Nov 20, 2025
0e75198
Adds extensive test coverage for searchsorted
ppaleja Nov 20, 2025
d432e0c
Adds clangd configuration for improved static analysis
ppaleja Nov 20, 2025
f8161f3
Removes unused headers to satisy clangd
ppaleja Nov 20, 2025
5ccf038
update project files
ppaleja Nov 20, 2025
f8c4298
Adds axis-aware numpy reference for searchsorted tests
ppaleja Nov 20, 2025
948c932
Build: Add virtualenv Python detection to CMake
ppaleja Nov 20, 2025
02c5f4b
Refactor: Improve comment formatting and header includes
ppaleja Nov 20, 2025
d01cb10
Feat: Implement SearchSorted CPU backend
ppaleja Nov 20, 2025
832dca4
Feat: Define SearchSorted primitive and generic logic
ppaleja Nov 20, 2025
cd287eb
Feat: Expose searchsorted in C++ API
ppaleja Nov 20, 2025
b4d7437
Feat: Expose searchsorted in Python API
ppaleja Nov 20, 2025
283f211
Applies minor formatting improvements
ppaleja Nov 20, 2025
8008837
Merge branch 'ml-explore:main' into feature/searchsorted
ppaleja Nov 20, 2025
0f96bf1
feat: Refine CPU search_sorted implementation
ppaleja Nov 21, 2025
abd7445
fix: Resolve race condition in CPU SearchSorted primitive
ppaleja Nov 21, 2025
40fe750
test: Add comprehensive searchsorted tests
ppaleja Nov 21, 2025
a6a6173
feat: Implement CPU fallback for SearchSorted GPU primitive
ppaleja Nov 21, 2025
ff87c91
chore: Minor cleanups in mlx/ops.cpp
ppaleja Nov 21, 2025
8bfdecf
pre-commit
ppaleja Nov 21, 2025
cf667b2
.gitignore
ppaleja Nov 21, 2025
d42f181
Revert "Adds MLX searchsorted PRD documentation"
ppaleja Nov 21, 2025
94c7e08
Adds `searchsorted` to Python ops documentation
ppaleja Nov 21, 2025
d2ed63f
Optimizes search_sorted with fast-path and adaptive search
ppaleja Dec 12, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Removes unused headers to satisy clangd
Drops unused header dependencies:
- removes transforms.h from the operations module
- removes backend/utils.h from primitives
  • Loading branch information
ppaleja committed Nov 20, 2025
commit f8161f38046ae249568ed75646d55d45201e86e3
1 change: 0 additions & 1 deletion mlx/ops.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
#include "mlx/fast_primitives.h"
#include "mlx/ops.h"
#include "mlx/primitives.h"
Copy link

Copilot AI Dec 12, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The removed include for "mlx/transforms.h" may be needed elsewhere in the file. Only remove this include if you've verified that no part of ops.cpp requires declarations from transforms.h. The fact that transforms_impl.h is still included suggests transforms.h might have been providing necessary declarations.

Suggested change
#include "mlx/primitives.h"
#include "mlx/primitives.h"
#include "mlx/transforms.h"

Copilot uses AI. Check for mistakes.
#include "mlx/transforms.h"
#include "mlx/transforms_impl.h"
#include "mlx/utils.h"

Expand Down
1 change: 0 additions & 1 deletion mlx/primitives.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
#include <sstream>
#include <stdexcept>

#include "mlx/backend/common/utils.h"
#include "mlx/fft.h"
Copy link

Copilot AI Dec 12, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The removed include for "mlx/backend/common/utils.h" should be verified as unnecessary. Ensure that no functions or utilities from this header are used elsewhere in primitives.cpp before removing it.

Copilot uses AI. Check for mistakes.
#include "mlx/linalg.h"
#include "mlx/ops.h"
Expand Down