-
Notifications
You must be signed in to change notification settings - Fork 204
[Types] Add complex64 support #569
Copy link
Copy link
Open
Labels
coreInternal engine: Shape, Storage, TensorEngine, iteratorsInternal engine: Shape, Storage, TensorEngine, iteratorsdocumentation-neededFeature requires documentation after implementation or depiction of lack of documentationFeature requires documentation after implementation or depiction of lack of documentationenhancementNew feature or requestNew feature or requestmissing feature/sNumPy function not yet implemented in NumSharpNumPy function not yet implemented in NumSharp
Milestone
Metadata
Metadata
Assignees
Labels
coreInternal engine: Shape, Storage, TensorEngine, iteratorsInternal engine: Shape, Storage, TensorEngine, iteratorsdocumentation-neededFeature requires documentation after implementation or depiction of lack of documentationFeature requires documentation after implementation or depiction of lack of documentationenhancementNew feature or requestNew feature or requestmissing feature/sNumPy function not yet implemented in NumSharpNumPy function not yet implemented in NumSharp
Overview
Add support for
complex64(two float32 components) to NumSharp. Currently NumSharp only supportscomplex128(two float64 components).Problem
NumSharp has
Complex(complex128) but notcomplex64:Use cases:
.npyfiles use complex64Proposal
Task List
Complex64struct inUtilities/Complex64.cs:NPTypeCode.Complex64 = 64toNPTypeCode.csnp.complex64type aliasNPTypeCodeExtensions.GetTypeCode()for Complex64InfoOf<T>for Complex64UnmanagedStoragetype switchesArraySliceallocationC# Type Implementation
Implementation Effort
MEDIUM — Requires custom struct with arithmetic and math operations.
Estimated: ~200-300 lines for the struct + type switch updates.
Related
References