mirror of
https://github.com/apple/swift-numerics
synced 2026-11-23 04:34:25 +00:00
Rebased on master, then cleaned up exp and expm1. New algorithm for expm1 that gives good componentwise accuracy as well as normwise. I _think_ that this is fundamentally new; I can't recall seeing it anywhere before, though it's simple enough that I expect someone has thought of it before. Also beefed up testing for exp and expm1. Left sketches of log/pow/sqrt/root in place, though I'm still working on filling out the testing for those.
23 lines
660 B
CMake
23 lines
660 B
CMake
#[[
|
|
This source file is part of the Swift Numerics open source project
|
|
|
|
Copyright (c) 2019 Apple Inc. and the Swift Numerics project authors
|
|
Licensed under Apache License v2.0 with Runtime Library Exception
|
|
|
|
See https://swift.org/LICENSE.txt for license information
|
|
#]]
|
|
|
|
add_library(ComplexModule
|
|
Arithmetic.swift
|
|
Complex.swift
|
|
Differentiable.swift
|
|
ElementaryFunctions.swift)
|
|
set_target_properties(ComplexModule PROPERTIES
|
|
INTERFACE_INCLUDE_DIRECTORIES ${CMAKE_Swift_MODULE_DIRECTORY})
|
|
target_link_libraries(ComplexModule PUBLIC
|
|
RealModule)
|
|
|
|
|
|
_install_target(ComplexModule)
|
|
set_property(GLOBAL APPEND PROPERTY SWIFT_NUMERICS_EXPORTS ComplexModule)
|