2018-12-20 00:48:35 +08:00
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
< html xmlns = "http://www.w3.org/1999/xhtml" >
< head >
< meta http-equiv = "Content-Type" content = "text/xhtml;charset=UTF-8" / >
< meta http-equiv = "X-UA-Compatible" content = "IE=9" / >
< meta name = "generator" content = "Doxygen 1.8.5" / >
< title > Faiss: faiss::IndexBinaryFromFloat Struct Reference< / title >
< link href = "tabs.css" rel = "stylesheet" type = "text/css" / >
< script type = "text/javascript" src = "jquery.js" > < / script >
< script type = "text/javascript" src = "dynsections.js" > < / script >
< link href = "search/search.css" rel = "stylesheet" type = "text/css" / >
< script type = "text/javascript" src = "search/search.js" > < / script >
< script type = "text/javascript" >
$(document).ready(function() { searchBox.OnSelectItem(0); });
< / script >
< link href = "doxygen.css" rel = "stylesheet" type = "text/css" / >
< / head >
< body >
< div id = "top" > <!-- do not remove this div, it is closed by doxygen! -->
< div id = "titlearea" >
< table cellspacing = "0" cellpadding = "0" >
< tbody >
< tr style = "height: 56px;" >
< td style = "padding-left: 0.5em;" >
< div id = "projectname" > Faiss
< / div >
< / td >
< / tr >
< / tbody >
< / table >
< / div >
<!-- end header part -->
<!-- Generated by Doxygen 1.8.5 -->
< script type = "text/javascript" >
var searchBox = new SearchBox("searchBox", "search",false,'Search');
< / script >
< div id = "navrow1" class = "tabs" >
< ul class = "tablist" >
< li > < a href = "index.html" > < span > Main  Page< / span > < / a > < / li >
< li > < a href = "namespaces.html" > < span > Namespaces< / span > < / a > < / li >
< li class = "current" > < a href = "annotated.html" > < span > Classes< / span > < / a > < / li >
< li > < a href = "files.html" > < span > Files< / span > < / a > < / li >
< li >
< div id = "MSearchBox" class = "MSearchBoxInactive" >
< span class = "left" >
< img id = "MSearchSelect" src = "search/mag_sel.png"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
alt=""/>
< input type = "text" id = "MSearchField" value = "Search" accesskey = "S"
onfocus="searchBox.OnSearchFieldFocus(true)"
onblur="searchBox.OnSearchFieldFocus(false)"
onkeyup="searchBox.OnSearchFieldChange(event)"/>
< / span > < span class = "right" >
< a id = "MSearchClose" href = "javascript:searchBox.CloseResultsWindow()" > < img id = "MSearchCloseImg" border = "0" src = "search/close.png" alt = "" / > < / a >
< / span >
< / div >
< / li >
< / ul >
< / div >
< div id = "navrow2" class = "tabs2" >
< ul class = "tablist" >
< li > < a href = "annotated.html" > < span > Class  List< / span > < / a > < / li >
< li > < a href = "classes.html" > < span > Class  Index< / span > < / a > < / li >
< li > < a href = "hierarchy.html" > < span > Class  Hierarchy< / span > < / a > < / li >
< li > < a href = "functions.html" > < span > Class  Members< / span > < / a > < / li >
< / ul >
< / div >
<!-- window showing the filter options -->
< div id = "MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
< a class = "SelectItem" href = "javascript:void(0)" onclick = "searchBox.OnSelectItem(0)" > < span class = "SelectionMark" >   < / span > All< / a > < a class = "SelectItem" href = "javascript:void(0)" onclick = "searchBox.OnSelectItem(1)" > < span class = "SelectionMark" >   < / span > Classes< / a > < a class = "SelectItem" href = "javascript:void(0)" onclick = "searchBox.OnSelectItem(2)" > < span class = "SelectionMark" >   < / span > Namespaces< / a > < a class = "SelectItem" href = "javascript:void(0)" onclick = "searchBox.OnSelectItem(3)" > < span class = "SelectionMark" >   < / span > Functions< / a > < a class = "SelectItem" href = "javascript:void(0)" onclick = "searchBox.OnSelectItem(4)" > < span class = "SelectionMark" >   < / span > Variables< / a > < a class = "SelectItem" href = "javascript:void(0)" onclick = "searchBox.OnSelectItem(5)" > < span class = "SelectionMark" >   < / span > Typedefs< / a > < a class = "SelectItem" href = "javascript:void(0)" onclick = "searchBox.OnSelectItem(6)" > < span class = "SelectionMark" >   < / span > Enumerations< / a > < a class = "SelectItem" href = "javascript:void(0)" onclick = "searchBox.OnSelectItem(7)" > < span class = "SelectionMark" >   < / span > Enumerator< / a > < a class = "SelectItem" href = "javascript:void(0)" onclick = "searchBox.OnSelectItem(8)" > < span class = "SelectionMark" >   < / span > Friends< / a > < / div >
<!-- iframe showing the search results (closed by default) -->
< div id = "MSearchResultsWindow" >
< iframe src = "javascript:void(0)" frameborder = "0"
name="MSearchResults" id="MSearchResults">
< / iframe >
< / div >
< div id = "nav-path" class = "navpath" >
< ul >
< li class = "navelem" > < a class = "el" href = "namespacefaiss.html" > faiss< / a > < / li > < li class = "navelem" > < a class = "el" href = "structfaiss_1_1IndexBinaryFromFloat.html" > IndexBinaryFromFloat< / a > < / li > < / ul >
< / div >
< / div > <!-- top -->
< div class = "header" >
< div class = "summary" >
< a href = "#pub-methods" > Public Member Functions< / a > |
< a href = "#pub-attribs" > Public Attributes< / a > |
< a href = "structfaiss_1_1IndexBinaryFromFloat-members.html" > List of all members< / a > < / div >
< div class = "headertitle" >
< div class = "title" > faiss::IndexBinaryFromFloat Struct Reference< / div > < / div >
< / div > <!-- header -->
< div class = "contents" >
< p > < code > #include < < a class = "el" href = "IndexBinaryFromFloat_8h_source.html" > IndexBinaryFromFloat.h< / a > > < / code > < / p >
< div class = "dynheader" >
Inheritance diagram for faiss::IndexBinaryFromFloat:< / div >
< div class = "dyncontent" >
< div class = "center" >
< img src = "structfaiss_1_1IndexBinaryFromFloat.png" usemap = "#faiss::IndexBinaryFromFloat_map" alt = "" / >
< map id = "faiss::IndexBinaryFromFloat_map" name = "faiss::IndexBinaryFromFloat_map" >
< area href = "structfaiss_1_1IndexBinary.html" alt = "faiss::IndexBinary" shape = "rect" coords = "0,0,168,24" / >
< / map >
< / div > < / div >
< table class = "memberdecls" >
< tr class = "heading" > < td colspan = "2" > < h2 class = "groupheader" > < a name = "pub-methods" > < / a >
Public Member Functions< / h2 > < / td > < / tr >
< tr class = "memitem:acec0f2bd11dc4b8f84a4c65c58c99dbc" > < td class = "memItemLeft" align = "right" valign = "top" > < a class = "anchor" id = "acec0f2bd11dc4b8f84a4c65c58c99dbc" > < / a >
  < / td > < td class = "memItemRight" valign = "bottom" > < b > IndexBinaryFromFloat< / b > (< a class = "el" href = "structfaiss_1_1Index.html" > Index< / a > *index)< / td > < / tr >
< tr class = "separator:acec0f2bd11dc4b8f84a4c65c58c99dbc" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
2019-05-28 22:17:22 +08:00
< tr class = "memitem:ac4f01196a335a9b2433e5c16396c1fd7" > < td class = "memItemLeft" align = "right" valign = "top" > void  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "structfaiss_1_1IndexBinaryFromFloat.html#ac4f01196a335a9b2433e5c16396c1fd7" > add< / a > (< a class = "el" href = "structfaiss_1_1IndexBinary.html#a01749bbdbd3b7ec6bb9390257ab16c5c" > idx_t< / a > n, const uint8_t *x) override< / td > < / tr >
2018-12-20 00:48:35 +08:00
< tr class = "separator:ac4f01196a335a9b2433e5c16396c1fd7" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:a487be675843e3146ee15bef3ee004a85" > < td class = "memItemLeft" align = "right" valign = "top" > < a class = "anchor" id = "a487be675843e3146ee15bef3ee004a85" > < / a >
void  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "structfaiss_1_1IndexBinaryFromFloat.html#a487be675843e3146ee15bef3ee004a85" > reset< / a > () override< / td > < / tr >
< tr class = "memdesc:a487be675843e3146ee15bef3ee004a85" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > Removes all elements from the database. < br / > < / td > < / tr >
< tr class = "separator:a487be675843e3146ee15bef3ee004a85" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
2019-05-28 22:17:22 +08:00
< tr class = "memitem:af92913a782c65843fbf7a65e017d6f5f" > < td class = "memItemLeft" align = "right" valign = "top" > void  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "structfaiss_1_1IndexBinaryFromFloat.html#af92913a782c65843fbf7a65e017d6f5f" > search< / a > (< a class = "el" href = "structfaiss_1_1IndexBinary.html#a01749bbdbd3b7ec6bb9390257ab16c5c" > idx_t< / a > n, const uint8_t *x, < a class = "el" href = "structfaiss_1_1IndexBinary.html#a01749bbdbd3b7ec6bb9390257ab16c5c" > idx_t< / a > k, int32_t *distances, < a class = "el" href = "structfaiss_1_1IndexBinary.html#a01749bbdbd3b7ec6bb9390257ab16c5c" > idx_t< / a > *labels) const override< / td > < / tr >
2018-12-20 00:48:35 +08:00
< tr class = "separator:af92913a782c65843fbf7a65e017d6f5f" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
2019-05-28 22:17:22 +08:00
< tr class = "memitem:a7de4bb8e82f0dae621c87b44cfb64404" > < td class = "memItemLeft" align = "right" valign = "top" > void  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "structfaiss_1_1IndexBinaryFromFloat.html#a7de4bb8e82f0dae621c87b44cfb64404" > train< / a > (< a class = "el" href = "structfaiss_1_1IndexBinary.html#a01749bbdbd3b7ec6bb9390257ab16c5c" > idx_t< / a > n, const uint8_t *x) override< / td > < / tr >
2018-12-20 00:48:35 +08:00
< tr class = "separator:a7de4bb8e82f0dae621c87b44cfb64404" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "inherit_header pub_methods_structfaiss_1_1IndexBinary" > < td colspan = "2" onclick = "javascript:toggleInherit('pub_methods_structfaiss_1_1IndexBinary')" > < img src = "closed.png" alt = "-" / >   Public Member Functions inherited from < a class = "el" href = "structfaiss_1_1IndexBinary.html" > faiss::IndexBinary< / a > < / td > < / tr >
< tr class = "memitem:a2a76f22851e42963b6a42c6d39e93b4b inherit pub_methods_structfaiss_1_1IndexBinary" > < td class = "memItemLeft" align = "right" valign = "top" > < a class = "anchor" id = "a2a76f22851e42963b6a42c6d39e93b4b" > < / a >
2019-05-28 22:17:22 +08:00
  < / td > < td class = "memItemRight" valign = "bottom" > < b > IndexBinary< / b > (< a class = "el" href = "structfaiss_1_1IndexBinary.html#a01749bbdbd3b7ec6bb9390257ab16c5c" > idx_t< / a > < a class = "el" href = "structfaiss_1_1IndexBinary.html#a0e485a7189eec2675032486d3b12cf88" > d< / a > =0, < a class = "el" href = "namespacefaiss.html#afd12191c638da74760ff397cf319752c" > MetricType< / a > metric=METRIC_L2)< / td > < / tr >
2018-12-20 00:48:35 +08:00
< tr class = "separator:a2a76f22851e42963b6a42c6d39e93b4b inherit pub_methods_structfaiss_1_1IndexBinary" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
2019-05-28 22:17:22 +08:00
< tr class = "memitem:a68a24abdf241eb98372b7d6fbd8d3891 inherit pub_methods_structfaiss_1_1IndexBinary" > < td class = "memItemLeft" align = "right" valign = "top" > virtual void  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "structfaiss_1_1IndexBinary.html#a68a24abdf241eb98372b7d6fbd8d3891" > add_with_ids< / a > (< a class = "el" href = "structfaiss_1_1IndexBinary.html#a01749bbdbd3b7ec6bb9390257ab16c5c" > idx_t< / a > n, const uint8_t *x, const long *xids)< / td > < / tr >
2018-12-20 00:48:35 +08:00
< tr class = "separator:a68a24abdf241eb98372b7d6fbd8d3891 inherit pub_methods_structfaiss_1_1IndexBinary" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
2019-05-28 22:17:22 +08:00
< tr class = "memitem:adec414108d34c63e4a06b6d3f9a3fa35 inherit pub_methods_structfaiss_1_1IndexBinary" > < td class = "memItemLeft" align = "right" valign = "top" > virtual void  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "structfaiss_1_1IndexBinary.html#adec414108d34c63e4a06b6d3f9a3fa35" > range_search< / a > (< a class = "el" href = "structfaiss_1_1IndexBinary.html#a01749bbdbd3b7ec6bb9390257ab16c5c" > idx_t< / a > n, const uint8_t *x, int radius, < a class = "el" href = "structfaiss_1_1RangeSearchResult.html" > RangeSearchResult< / a > *result) const < / td > < / tr >
2018-12-20 00:48:35 +08:00
< tr class = "separator:adec414108d34c63e4a06b6d3f9a3fa35 inherit pub_methods_structfaiss_1_1IndexBinary" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
2019-05-28 22:17:22 +08:00
< tr class = "memitem:a27c32414471c57138b248583fc0c5f8c inherit pub_methods_structfaiss_1_1IndexBinary" > < td class = "memItemLeft" align = "right" valign = "top" > void  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "structfaiss_1_1IndexBinary.html#a27c32414471c57138b248583fc0c5f8c" > assign< / a > (< a class = "el" href = "structfaiss_1_1IndexBinary.html#a01749bbdbd3b7ec6bb9390257ab16c5c" > idx_t< / a > n, const uint8_t *x, < a class = "el" href = "structfaiss_1_1IndexBinary.html#a01749bbdbd3b7ec6bb9390257ab16c5c" > idx_t< / a > *labels, < a class = "el" href = "structfaiss_1_1IndexBinary.html#a01749bbdbd3b7ec6bb9390257ab16c5c" > idx_t< / a > k=1)< / td > < / tr >
2018-12-20 00:48:35 +08:00
< tr class = "separator:a27c32414471c57138b248583fc0c5f8c inherit pub_methods_structfaiss_1_1IndexBinary" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:ae2b85e2cad27acb06cb9d6d8e600ae02 inherit pub_methods_structfaiss_1_1IndexBinary" > < td class = "memItemLeft" align = "right" valign = "top" > virtual long  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "structfaiss_1_1IndexBinary.html#ae2b85e2cad27acb06cb9d6d8e600ae02" > remove_ids< / a > (const < a class = "el" href = "structfaiss_1_1IDSelector.html" > IDSelector< / a > & sel)< / td > < / tr >
< tr class = "separator:ae2b85e2cad27acb06cb9d6d8e600ae02 inherit pub_methods_structfaiss_1_1IndexBinary" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
2019-05-28 22:17:22 +08:00
< tr class = "memitem:a60180e1c6b363c287b6e55191455a82f inherit pub_methods_structfaiss_1_1IndexBinary" > < td class = "memItemLeft" align = "right" valign = "top" > virtual void  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "structfaiss_1_1IndexBinary.html#a60180e1c6b363c287b6e55191455a82f" > reconstruct< / a > (< a class = "el" href = "structfaiss_1_1IndexBinary.html#a01749bbdbd3b7ec6bb9390257ab16c5c" > idx_t< / a > key, uint8_t *recons) const < / td > < / tr >
2018-12-20 00:48:35 +08:00
< tr class = "separator:a60180e1c6b363c287b6e55191455a82f inherit pub_methods_structfaiss_1_1IndexBinary" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
2019-05-28 22:17:22 +08:00
< tr class = "memitem:ab5885ba0cbd91cf6c5fe2f53bb5650c3 inherit pub_methods_structfaiss_1_1IndexBinary" > < td class = "memItemLeft" align = "right" valign = "top" > virtual void  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "structfaiss_1_1IndexBinary.html#ab5885ba0cbd91cf6c5fe2f53bb5650c3" > reconstruct_n< / a > (< a class = "el" href = "structfaiss_1_1IndexBinary.html#a01749bbdbd3b7ec6bb9390257ab16c5c" > idx_t< / a > i0, < a class = "el" href = "structfaiss_1_1IndexBinary.html#a01749bbdbd3b7ec6bb9390257ab16c5c" > idx_t< / a > ni, uint8_t *recons) const < / td > < / tr >
2018-12-20 00:48:35 +08:00
< tr class = "separator:ab5885ba0cbd91cf6c5fe2f53bb5650c3 inherit pub_methods_structfaiss_1_1IndexBinary" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
2019-05-28 22:17:22 +08:00
< tr class = "memitem:ae99e8745fc02ffac2cfdb431951eeabf inherit pub_methods_structfaiss_1_1IndexBinary" > < td class = "memItemLeft" align = "right" valign = "top" > virtual void  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "structfaiss_1_1IndexBinary.html#ae99e8745fc02ffac2cfdb431951eeabf" > search_and_reconstruct< / a > (< a class = "el" href = "structfaiss_1_1IndexBinary.html#a01749bbdbd3b7ec6bb9390257ab16c5c" > idx_t< / a > n, const uint8_t *x, < a class = "el" href = "structfaiss_1_1IndexBinary.html#a01749bbdbd3b7ec6bb9390257ab16c5c" > idx_t< / a > k, int32_t *distances, < a class = "el" href = "structfaiss_1_1IndexBinary.html#a01749bbdbd3b7ec6bb9390257ab16c5c" > idx_t< / a > *labels, uint8_t *recons) const < / td > < / tr >
2018-12-20 00:48:35 +08:00
< tr class = "separator:ae99e8745fc02ffac2cfdb431951eeabf inherit pub_methods_structfaiss_1_1IndexBinary" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:a63d722545b95badd251f3e8770b9bb9b inherit pub_methods_structfaiss_1_1IndexBinary" > < td class = "memItemLeft" align = "right" valign = "top" > void  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "structfaiss_1_1IndexBinary.html#a63d722545b95badd251f3e8770b9bb9b" > display< / a > () const < / td > < / tr >
< tr class = "separator:a63d722545b95badd251f3e8770b9bb9b inherit pub_methods_structfaiss_1_1IndexBinary" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< / table > < table class = "memberdecls" >
< tr class = "heading" > < td colspan = "2" > < h2 class = "groupheader" > < a name = "pub-attribs" > < / a >
Public Attributes< / h2 > < / td > < / tr >
< tr class = "memitem:a1346bf356aabe668a22944ded824808f" > < td class = "memItemLeft" align = "right" valign = "top" > < a class = "anchor" id = "a1346bf356aabe668a22944ded824808f" > < / a >
< a class = "el" href = "structfaiss_1_1Index.html" > Index< / a > *  < / td > < td class = "memItemRight" valign = "bottom" > < b > index< / b > = nullptr< / td > < / tr >
< tr class = "separator:a1346bf356aabe668a22944ded824808f" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:a7311fc4d11169f7bc668c16b027336ba" > < td class = "memItemLeft" align = "right" valign = "top" > < a class = "anchor" id = "a7311fc4d11169f7bc668c16b027336ba" > < / a >
bool  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "structfaiss_1_1IndexBinaryFromFloat.html#a7311fc4d11169f7bc668c16b027336ba" > own_fields< / a > = false< / td > < / tr >
< tr class = "memdesc:a7311fc4d11169f7bc668c16b027336ba" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > Whether object owns the index pointer. < br / > < / td > < / tr >
< tr class = "separator:a7311fc4d11169f7bc668c16b027336ba" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "inherit_header pub_attribs_structfaiss_1_1IndexBinary" > < td colspan = "2" onclick = "javascript:toggleInherit('pub_attribs_structfaiss_1_1IndexBinary')" > < img src = "closed.png" alt = "-" / >   Public Attributes inherited from < a class = "el" href = "structfaiss_1_1IndexBinary.html" > faiss::IndexBinary< / a > < / td > < / tr >
< tr class = "memitem:a0e485a7189eec2675032486d3b12cf88 inherit pub_attribs_structfaiss_1_1IndexBinary" > < td class = "memItemLeft" align = "right" valign = "top" > < a class = "anchor" id = "a0e485a7189eec2675032486d3b12cf88" > < / a >
int  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "structfaiss_1_1IndexBinary.html#a0e485a7189eec2675032486d3b12cf88" > d< / a > < / td > < / tr >
< tr class = "memdesc:a0e485a7189eec2675032486d3b12cf88 inherit pub_attribs_structfaiss_1_1IndexBinary" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > vector dimension < br / > < / td > < / tr >
< tr class = "separator:a0e485a7189eec2675032486d3b12cf88 inherit pub_attribs_structfaiss_1_1IndexBinary" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:a277c2645b8def11c5d982384098c5380 inherit pub_attribs_structfaiss_1_1IndexBinary" > < td class = "memItemLeft" align = "right" valign = "top" > < a class = "anchor" id = "a277c2645b8def11c5d982384098c5380" > < / a >
int  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "structfaiss_1_1IndexBinary.html#a277c2645b8def11c5d982384098c5380" > code_size< / a > < / td > < / tr >
< tr class = "memdesc:a277c2645b8def11c5d982384098c5380 inherit pub_attribs_structfaiss_1_1IndexBinary" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > number of bytes per vector ( = d / 8 ) < br / > < / td > < / tr >
< tr class = "separator:a277c2645b8def11c5d982384098c5380 inherit pub_attribs_structfaiss_1_1IndexBinary" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:a41b6759d127475d5fcd2b3982a8f355e inherit pub_attribs_structfaiss_1_1IndexBinary" > < td class = "memItemLeft" align = "right" valign = "top" > < a class = "anchor" id = "a41b6759d127475d5fcd2b3982a8f355e" > < / a >
2019-05-28 22:17:22 +08:00
< a class = "el" href = "structfaiss_1_1IndexBinary.html#a01749bbdbd3b7ec6bb9390257ab16c5c" > idx_t< / a >   < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "structfaiss_1_1IndexBinary.html#a41b6759d127475d5fcd2b3982a8f355e" > ntotal< / a > < / td > < / tr >
2018-12-20 00:48:35 +08:00
< tr class = "memdesc:a41b6759d127475d5fcd2b3982a8f355e inherit pub_attribs_structfaiss_1_1IndexBinary" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > total nb of indexed vectors < br / > < / td > < / tr >
< tr class = "separator:a41b6759d127475d5fcd2b3982a8f355e inherit pub_attribs_structfaiss_1_1IndexBinary" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:a1656c00d77d55999becd71e3d8ea6dd7 inherit pub_attribs_structfaiss_1_1IndexBinary" > < td class = "memItemLeft" align = "right" valign = "top" > < a class = "anchor" id = "a1656c00d77d55999becd71e3d8ea6dd7" > < / a >
bool  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "structfaiss_1_1IndexBinary.html#a1656c00d77d55999becd71e3d8ea6dd7" > verbose< / a > < / td > < / tr >
< tr class = "memdesc:a1656c00d77d55999becd71e3d8ea6dd7 inherit pub_attribs_structfaiss_1_1IndexBinary" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > verbosity level < br / > < / td > < / tr >
< tr class = "separator:a1656c00d77d55999becd71e3d8ea6dd7 inherit pub_attribs_structfaiss_1_1IndexBinary" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:a132119ae93e240b54621c5c669853c7f inherit pub_attribs_structfaiss_1_1IndexBinary" > < td class = "memItemLeft" align = "right" valign = "top" > < a class = "anchor" id = "a132119ae93e240b54621c5c669853c7f" > < / a >
bool  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "structfaiss_1_1IndexBinary.html#a132119ae93e240b54621c5c669853c7f" > is_trained< / a > < / td > < / tr >
< tr class = "memdesc:a132119ae93e240b54621c5c669853c7f inherit pub_attribs_structfaiss_1_1IndexBinary" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > set if the < a class = "el" href = "structfaiss_1_1Index.html" > Index< / a > does not require training, or if training is done already < br / > < / td > < / tr >
< tr class = "separator:a132119ae93e240b54621c5c669853c7f inherit pub_attribs_structfaiss_1_1IndexBinary" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:a344529c829717012b530ef9c13b145b7 inherit pub_attribs_structfaiss_1_1IndexBinary" > < td class = "memItemLeft" align = "right" valign = "top" > < a class = "anchor" id = "a344529c829717012b530ef9c13b145b7" > < / a >
< a class = "el" href = "namespacefaiss.html#afd12191c638da74760ff397cf319752c" > MetricType< / a >   < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "structfaiss_1_1IndexBinary.html#a344529c829717012b530ef9c13b145b7" > metric_type< / a > < / td > < / tr >
< tr class = "memdesc:a344529c829717012b530ef9c13b145b7 inherit pub_attribs_structfaiss_1_1IndexBinary" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > type of metric this index uses for search < br / > < / td > < / tr >
< tr class = "separator:a344529c829717012b530ef9c13b145b7 inherit pub_attribs_structfaiss_1_1IndexBinary" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< / table > < table class = "memberdecls" >
< tr class = "heading" > < td colspan = "2" > < h2 class = "groupheader" > < a name = "inherited" > < / a >
Additional Inherited Members< / h2 > < / td > < / tr >
< tr class = "inherit_header pub_types_structfaiss_1_1IndexBinary" > < td colspan = "2" onclick = "javascript:toggleInherit('pub_types_structfaiss_1_1IndexBinary')" > < img src = "closed.png" alt = "-" / >   Public Types inherited from < a class = "el" href = "structfaiss_1_1IndexBinary.html" > faiss::IndexBinary< / a > < / td > < / tr >
2019-05-28 22:17:22 +08:00
< tr class = "memitem:a01749bbdbd3b7ec6bb9390257ab16c5c inherit pub_types_structfaiss_1_1IndexBinary" > < td class = "memItemLeft" align = "right" valign = "top" > < a class = "anchor" id = "a01749bbdbd3b7ec6bb9390257ab16c5c" > < / a >
using  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "structfaiss_1_1IndexBinary.html#a01749bbdbd3b7ec6bb9390257ab16c5c" > idx_t< / a > = < a class = "el" href = "structfaiss_1_1Index.html#ad3f0d3071f987baabbdd3da4500c87ea" > Index::idx_t< / a > < / td > < / tr >
< tr class = "memdesc:a01749bbdbd3b7ec6bb9390257ab16c5c inherit pub_types_structfaiss_1_1IndexBinary" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > all indices are this type < br / > < / td > < / tr >
< tr class = "separator:a01749bbdbd3b7ec6bb9390257ab16c5c inherit pub_types_structfaiss_1_1IndexBinary" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:aaa0f338d22575d508cd6141972addaa6 inherit pub_types_structfaiss_1_1IndexBinary" > < td class = "memItemLeft" align = "right" valign = "top" > < a class = "anchor" id = "aaa0f338d22575d508cd6141972addaa6" > < / a >
using  < / td > < td class = "memItemRight" valign = "bottom" > < b > component_t< / b > = uint8_t< / td > < / tr >
< tr class = "separator:aaa0f338d22575d508cd6141972addaa6 inherit pub_types_structfaiss_1_1IndexBinary" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:af958aa9b51dac1fcc433014959cad20c inherit pub_types_structfaiss_1_1IndexBinary" > < td class = "memItemLeft" align = "right" valign = "top" > < a class = "anchor" id = "af958aa9b51dac1fcc433014959cad20c" > < / a >
using  < / td > < td class = "memItemRight" valign = "bottom" > < b > distance_t< / b > = int32_t< / td > < / tr >
< tr class = "separator:af958aa9b51dac1fcc433014959cad20c inherit pub_types_structfaiss_1_1IndexBinary" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
2018-12-20 00:48:35 +08:00
< / table >
< a name = "details" id = "details" > < / a > < h2 class = "groupheader" > Detailed Description< / h2 >
< div class = "textblock" > < p > < a class = "el" href = "structfaiss_1_1IndexBinary.html" > IndexBinary< / a > backed by a float < a class = "el" href = "structfaiss_1_1Index.html" > Index< / a > .< / p >
< p > Supports adding vertices and searching them.< / p >
< p > All queries are symmetric because there is no distinction between codes and vectors. < / p >
2019-05-28 22:17:22 +08:00
< p > Definition at line < a class = "el" href = "IndexBinaryFromFloat_8h_source.html#l00028" > 28< / a > of file < a class = "el" href = "IndexBinaryFromFloat_8h_source.html" > IndexBinaryFromFloat.h< / a > .< / p >
2018-12-20 00:48:35 +08:00
< / div > < h2 class = "groupheader" > Member Function Documentation< / h2 >
< a class = "anchor" id = "ac4f01196a335a9b2433e5c16396c1fd7" > < / a >
< div class = "memitem" >
< div class = "memproto" >
< table class = "mlabels" >
< tr >
< td class = "mlabels-left" >
< table class = "memname" >
< tr >
< td class = "memname" > void faiss::IndexBinaryFromFloat::add < / td >
< td > (< / td >
2019-05-28 22:17:22 +08:00
< td class = "paramtype" > < a class = "el" href = "structfaiss_1_1IndexBinary.html#a01749bbdbd3b7ec6bb9390257ab16c5c" > idx_t< / a >   < / td >
2018-12-20 00:48:35 +08:00
< td class = "paramname" > < em > n< / em > , < / td >
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
< td class = "paramtype" > const uint8_t *  < / td >
< td class = "paramname" > < em > x< / em >   < / td >
< / tr >
< tr >
< td > < / td >
< td > )< / td >
< td > < / td > < td > < / td >
< / tr >
< / table >
< / td >
< td class = "mlabels-right" >
< span class = "mlabels" > < span class = "mlabel" > override< / span > < span class = "mlabel" > virtual< / span > < / span > < / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
< p > Add n vectors of dimension d to the index.< / p >
< p > Vectors are implicitly assigned labels ntotal .. ntotal + n - 1 < / p >
< dl class = "params" > < dt > Parameters< / dt > < dd >
< table class = "params" >
< tr > < td class = "paramname" > x< / td > < td > input matrix, size n * d / 8 < / td > < / tr >
< / table >
< / dd >
< / dl >
< p > Implements < a class = "el" href = "structfaiss_1_1IndexBinary.html#af04b1093cdebfea189e0e04da68794d7" > faiss::IndexBinary< / a > .< / p >
2019-05-28 22:17:22 +08:00
< p > Definition at line < a class = "el" href = "IndexBinaryFromFloat_8cpp_source.html#l00034" > 34< / a > of file < a class = "el" href = "IndexBinaryFromFloat_8cpp_source.html" > IndexBinaryFromFloat.cpp< / a > .< / p >
2018-12-20 00:48:35 +08:00
< / div >
< / div >
< a class = "anchor" id = "af92913a782c65843fbf7a65e017d6f5f" > < / a >
< div class = "memitem" >
< div class = "memproto" >
< table class = "mlabels" >
< tr >
< td class = "mlabels-left" >
< table class = "memname" >
< tr >
< td class = "memname" > void faiss::IndexBinaryFromFloat::search < / td >
< td > (< / td >
2019-05-28 22:17:22 +08:00
< td class = "paramtype" > < a class = "el" href = "structfaiss_1_1IndexBinary.html#a01749bbdbd3b7ec6bb9390257ab16c5c" > idx_t< / a >   < / td >
2018-12-20 00:48:35 +08:00
< td class = "paramname" > < em > n< / em > , < / td >
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
< td class = "paramtype" > const uint8_t *  < / td >
< td class = "paramname" > < em > x< / em > , < / td >
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
2019-05-28 22:17:22 +08:00
< td class = "paramtype" > < a class = "el" href = "structfaiss_1_1IndexBinary.html#a01749bbdbd3b7ec6bb9390257ab16c5c" > idx_t< / a >   < / td >
2018-12-20 00:48:35 +08:00
< td class = "paramname" > < em > k< / em > , < / td >
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
< td class = "paramtype" > int32_t *  < / td >
< td class = "paramname" > < em > distances< / em > , < / td >
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
2019-05-28 22:17:22 +08:00
< td class = "paramtype" > < a class = "el" href = "structfaiss_1_1IndexBinary.html#a01749bbdbd3b7ec6bb9390257ab16c5c" > idx_t< / a > *  < / td >
2018-12-20 00:48:35 +08:00
< td class = "paramname" > < em > labels< / em >   < / td >
< / tr >
< tr >
< td > < / td >
< td > )< / td >
< td > < / td > < td > const< / td >
< / tr >
< / table >
< / td >
< td class = "mlabels-right" >
< span class = "mlabels" > < span class = "mlabel" > override< / span > < span class = "mlabel" > virtual< / span > < / span > < / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
< p > Query n vectors of dimension d to the index.< / p >
< p > return at most k vectors. If there are not enough results for a query, the result array is padded with -1s.< / p >
< dl class = "params" > < dt > Parameters< / dt > < dd >
< table class = "params" >
< tr > < td class = "paramname" > x< / td > < td > input vectors to search, size n * d / 8 < / td > < / tr >
< tr > < td class = "paramname" > labels< / td > < td > output labels of the NNs, size n*k < / td > < / tr >
< tr > < td class = "paramname" > distances< / td > < td > output pairwise distances, size n*k < / td > < / tr >
< / table >
< / dd >
< / dl >
< p > Implements < a class = "el" href = "structfaiss_1_1IndexBinary.html#a48cdd06037d1fb8ce827e7522ba05fb8" > faiss::IndexBinary< / a > .< / p >
2019-05-28 22:17:22 +08:00
< p > Definition at line < a class = "el" href = "IndexBinaryFromFloat_8cpp_source.html#l00052" > 52< / a > of file < a class = "el" href = "IndexBinaryFromFloat_8cpp_source.html" > IndexBinaryFromFloat.cpp< / a > .< / p >
2018-12-20 00:48:35 +08:00
< / div >
< / div >
< a class = "anchor" id = "a7de4bb8e82f0dae621c87b44cfb64404" > < / a >
< div class = "memitem" >
< div class = "memproto" >
< table class = "mlabels" >
< tr >
< td class = "mlabels-left" >
< table class = "memname" >
< tr >
< td class = "memname" > void faiss::IndexBinaryFromFloat::train < / td >
< td > (< / td >
2019-05-28 22:17:22 +08:00
< td class = "paramtype" > < a class = "el" href = "structfaiss_1_1IndexBinary.html#a01749bbdbd3b7ec6bb9390257ab16c5c" > idx_t< / a >   < / td >
2018-12-20 00:48:35 +08:00
< td class = "paramname" > < em > n< / em > , < / td >
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
< td class = "paramtype" > const uint8_t *  < / td >
< td class = "paramname" > < em > x< / em >   < / td >
< / tr >
< tr >
< td > < / td >
< td > )< / td >
< td > < / td > < td > < / td >
< / tr >
< / table >
< / td >
< td class = "mlabels-right" >
< span class = "mlabels" > < span class = "mlabel" > override< / span > < span class = "mlabel" > virtual< / span > < / span > < / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
< p > Perform training on a representative set of vectors.< / p >
< dl class = "params" > < dt > Parameters< / dt > < dd >
< table class = "params" >
< tr > < td class = "paramname" > n< / td > < td > nb of training vectors < / td > < / tr >
< tr > < td class = "paramname" > x< / td > < td > training vecors, size n * d / 8 < / td > < / tr >
< / table >
< / dd >
< / dl >
< p > Reimplemented from < a class = "el" href = "structfaiss_1_1IndexBinary.html#a34b7f0f358259d858135555967c6bc79" > faiss::IndexBinary< / a > .< / p >
2019-05-28 22:17:22 +08:00
< p > Definition at line < a class = "el" href = "IndexBinaryFromFloat_8cpp_source.html#l00069" > 69< / a > of file < a class = "el" href = "IndexBinaryFromFloat_8cpp_source.html" > IndexBinaryFromFloat.cpp< / a > .< / p >
2018-12-20 00:48:35 +08:00
< / div >
< / div >
< hr / > The documentation for this struct was generated from the following files:< ul >
2019-05-28 22:17:22 +08:00
< li > /data/users/hoss/faiss/< a class = "el" href = "IndexBinaryFromFloat_8h_source.html" > IndexBinaryFromFloat.h< / a > < / li >
< li > /data/users/hoss/faiss/< a class = "el" href = "IndexBinaryFromFloat_8cpp_source.html" > IndexBinaryFromFloat.cpp< / a > < / li >
2018-12-20 00:48:35 +08:00
< / ul >
< / div > <!-- contents -->
<!-- start footer part -->
< hr class = "footer" / > < address class = "footer" > < small >
Generated by   < a href = "http://www.doxygen.org/index.html" >
< img class = "footer" src = "doxygen.png" alt = "doxygen" / >
< / a > 1.8.5
< / small > < / address >
< / body >
< / html >