dimakura / SwanKit

Deep learning framework in Swift (& Metal)
MIT License
0 stars 0 forks source link

Adding capacity property to SWKSize #14

Closed dimakura closed 6 years ago

dimakura commented 6 years ago

Capacity property returns number of elements which given size can contain:

let size = SWKSize(5, 3)
print(size.capacity)
// prints 15