目录
目录readme.md

SwiftNpy

Save/Load NumPy array files in Swift

let npy = try Npy(contentsOf: npyUrl)
let shape = npy.shape
let elements: [Float] = npy.elements()
let isFortranOrder = npy.isFortranOrder
try save(npy: npy, to: url)
let npz = try Npz(contentsOf: npzUrl)
let npy = npz["name-of-array"]
try npz.save(to: url)

Suppoted formats

npy, npz files.

Bool

Bool

UInt

UInt8, UInt16, UInt32, UInt64
They also can be read as UInt

Int

Int8, Int16, Int32, Int64
They also can be read as Int

Float, Double

Float, Double

License

The MIT License

关于
97.0 KB
邀请码
    Gitlink(确实开源)
  • 加入我们
  • 官网邮箱:gitlink@ccf.org.cn
  • QQ群
  • QQ群
  • 公众号
  • 公众号

©Copyright 2023 CCF 开源发展委员会
Powered by Trustie& IntelliDE 京ICP备13000930号