mirror of
				https://github.com/ml-explore/mlx.git
				synced 2025-10-31 07:58:14 +08:00 
			
		
		
		
	Use correct complex type for MSVC (#1660)
This commit is contained in:
		| @@ -2,6 +2,15 @@ | ||||
|  | ||||
| #pragma once | ||||
|  | ||||
| // Required for Visual Studio. | ||||
| // https://github.com/OpenMathLib/OpenBLAS/blob/develop/docs/install.md | ||||
| #ifdef _MSC_VER | ||||
| #include <complex> | ||||
| #define LAPACK_COMPLEX_CUSTOM | ||||
| #define lapack_complex_float std::complex<float> | ||||
| #define lapack_complex_double std::complex<double> | ||||
| #endif | ||||
|  | ||||
| #ifdef ACCELERATE_NEW_LAPACK | ||||
| #include <Accelerate/Accelerate.h> | ||||
| #else | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Cheng
					Cheng