Skip to content

Commit

Permalink
Docs: Shorten name
Browse files Browse the repository at this point in the history
  • Loading branch information
ashvardanian committed Jul 23, 2023
1 parent 459abcd commit 9a6a01c
Show file tree
Hide file tree
Showing 10 changed files with 34 additions and 9 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "usearch"
version = "0.22.2"
authors = ["Ashot Vardanian <1983160+ashvardanian@users.noreply.github.com>"]
authors = ["Ash Vardanian <1983160+ashvardanian@users.noreply.github.com>"]
description = "Smaller & Faster Single-File Vector Search Engine from Unum"
edition = "2021"
license = "Apache-2.0"
Expand Down
2 changes: 1 addition & 1 deletion include/usearch/index.hpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* @file index.hpp
* @author Ashot Vardanian
* @author Ash Vardanian
* @brief Single-header Vector Search.
* @date 2023-04-26
*
Expand Down
2 changes: 1 addition & 1 deletion javascript/lib.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* @file javascript.cpp
* @author Ashot Vardanian
* @author Ash Vardanian
* @brief JavaScript bindings for Unum USearch.
* @date 2023-04-26
*
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "usearch",
"version": "0.22.2",
"description": "Smaller & Faster Single-File Vector Search Engine from Unum",
"author": "Ashot Vardanian",
"author": "Ash Vardanian",
"license": "Apache 2.0",
"main": "javascript/usearch.js",
"repository": {
Expand All @@ -26,4 +26,4 @@
"conventional-changelog-eslint": "^3.0.9",
"semantic-release": "^21.0.7"
}
}
}
2 changes: 1 addition & 1 deletion python/lib.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* @file python.cpp
* @author Ashot Vardanian
* @author Ash Vardanian
* @brief Python bindings for Unum USearch.
* @date 2023-04-26
*
Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@
packages=["usearch"],
package_dir={"usearch": "python/usearch"},
description="Smaller & Faster Single-File Vector Search Engine from Unum",
author="Ash Vardanian",
long_description=long_description,
long_description_content_type="text/markdown",
license="Apache-2.0",
Expand Down
2 changes: 1 addition & 1 deletion swift/Index+Sugar.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Index+Sugar.swift
//
//
// Created by Ashot Vardanian on 5/11/23.
// Created by Ash Vardanian on 5/11/23.
//

@available(iOS 13, macOS 10.15, tvOS 13.0, watchOS 6.0, *)
Expand Down
24 changes: 24 additions & 0 deletions swift/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,27 @@ index.add(label: 43, vector: vectorB[...])
let results = index.search(vector: vectorA[...], count: 10)
assert(results.0[0] == 42)
```

If using in a SwiftUI application, make sure to annulate the void responses:

```swift
import SwiftUI
import USearch

@main
struct USearchMobileApp: App {
var body: some Scene {
WindowGroup {
let index = USearchIndex.make(metric: .IP, dimensions: 2, connectivity: 16, quantization: .F32)
let _ = index.reserve(10)
let coordiantes: Array<Float32> = [40.177200, 44.503490]
let _ = index.add(label: 10, vector: coordiantes[...])
VStack {
Text("USearch index contains \(index.length) vectors")
Spacer()
}

}
}
}
```
2 changes: 1 addition & 1 deletion swift/Test.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// File.swift
//
//
// Created by Ashot Vardanian on 5/11/23.
// Created by Ash Vardanian on 5/11/23.
//

import Foundation
Expand Down
2 changes: 1 addition & 1 deletion swift/USearch.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// File.swift
//
//
// Created by Ashot Vardanian on 5/11/23.
// Created by Ash Vardanian on 5/11/23.
//

@_exported import USearchObjective

0 comments on commit 9a6a01c

Please sign in to comment.