2017-02-23 06:26:44 +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::gpu::GpuIndexFlatL2 Class 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" > < b > gpu< / b > < / li > < li class = "navelem" > < a class = "el" href = "classfaiss_1_1gpu_1_1GpuIndexFlatL2.html" > GpuIndexFlatL2< / a > < / li > < / ul >
< / div >
< / div > <!-- top -->
< div class = "header" >
< div class = "summary" >
< a href = "#pub-methods" > Public Member Functions< / a > |
< a href = "classfaiss_1_1gpu_1_1GpuIndexFlatL2-members.html" > List of all members< / a > < / div >
< div class = "headertitle" >
< div class = "title" > faiss::gpu::GpuIndexFlatL2 Class Reference< / div > < / div >
< / div > <!-- header -->
< div class = "contents" >
< p > < code > #include < < a class = "el" href = "GpuIndexFlat_8h_source.html" > GpuIndexFlat.h< / a > > < / code > < / p >
< div class = "dynheader" >
Inheritance diagram for faiss::gpu::GpuIndexFlatL2:< / div >
< div class = "dyncontent" >
< div class = "center" >
< img src = "classfaiss_1_1gpu_1_1GpuIndexFlatL2.png" usemap = "#faiss::gpu::GpuIndexFlatL2_map" alt = "" / >
< map id = "faiss::gpu::GpuIndexFlatL2_map" name = "faiss::gpu::GpuIndexFlatL2_map" >
< area href = "classfaiss_1_1gpu_1_1GpuIndexFlat.html" alt = "faiss::gpu::GpuIndexFlat" shape = "rect" coords = "0,112,159,136" / >
< area href = "classfaiss_1_1gpu_1_1GpuIndex.html" alt = "faiss::gpu::GpuIndex" shape = "rect" coords = "0,56,159,80" / >
< area href = "structfaiss_1_1Index.html" alt = "faiss::Index" shape = "rect" coords = "0,0,159,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 >
2017-03-21 01:33:21 +08:00
< tr class = "memitem:aed22de4a439fa0b2f560e3c716a7c626" > < td class = "memItemLeft" align = "right" valign = "top" >   < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classfaiss_1_1gpu_1_1GpuIndexFlatL2.html#aed22de4a439fa0b2f560e3c716a7c626" > GpuIndexFlatL2< / a > (< a class = "el" href = "classfaiss_1_1gpu_1_1GpuResources.html" > GpuResources< / a > *resources, < a class = "el" href = "structfaiss_1_1IndexFlatL2.html" > faiss::IndexFlatL2< / a > *index, < a class = "el" href = "structfaiss_1_1gpu_1_1GpuIndexFlatConfig.html" > GpuIndexFlatConfig< / a > config=< a class = "el" href = "structfaiss_1_1gpu_1_1GpuIndexFlatConfig.html" > GpuIndexFlatConfig< / a > ())< / td > < / tr >
< tr class = "separator:aed22de4a439fa0b2f560e3c716a7c626" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:a514832ff1173021362b583a6b2941b87" > < td class = "memItemLeft" align = "right" valign = "top" > < a class = "anchor" id = "a514832ff1173021362b583a6b2941b87" > < / a >
  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classfaiss_1_1gpu_1_1GpuIndexFlatL2.html#a514832ff1173021362b583a6b2941b87" > GpuIndexFlatL2< / a > (< a class = "el" href = "classfaiss_1_1gpu_1_1GpuResources.html" > GpuResources< / a > *resources, int dims, < a class = "el" href = "structfaiss_1_1gpu_1_1GpuIndexFlatConfig.html" > GpuIndexFlatConfig< / a > config=< a class = "el" href = "structfaiss_1_1gpu_1_1GpuIndexFlatConfig.html" > GpuIndexFlatConfig< / a > ())< / td > < / tr >
< tr class = "memdesc:a514832ff1173021362b583a6b2941b87" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > Construct an empty instance that can be added to. < br / > < / td > < / tr >
< tr class = "separator:a514832ff1173021362b583a6b2941b87" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
2017-02-23 06:26:44 +08:00
< tr class = "memitem:a9a9de859274bb73e6d8ea02cae5ca9a6" > < td class = "memItemLeft" align = "right" valign = "top" > void  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classfaiss_1_1gpu_1_1GpuIndexFlatL2.html#a9a9de859274bb73e6d8ea02cae5ca9a6" > copyFrom< / a > (< a class = "el" href = "structfaiss_1_1IndexFlatL2.html" > faiss::IndexFlatL2< / a > *index)< / td > < / tr >
< tr class = "separator:a9a9de859274bb73e6d8ea02cae5ca9a6" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:ab21960d379190b98aaa05ae3877dea09" > < td class = "memItemLeft" align = "right" valign = "top" > void  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classfaiss_1_1gpu_1_1GpuIndexFlatL2.html#ab21960d379190b98aaa05ae3877dea09" > copyTo< / a > (< a class = "el" href = "structfaiss_1_1IndexFlatL2.html" > faiss::IndexFlatL2< / a > *index)< / td > < / tr >
< tr class = "separator:ab21960d379190b98aaa05ae3877dea09" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "inherit_header pub_methods_classfaiss_1_1gpu_1_1GpuIndexFlat" > < td colspan = "2" onclick = "javascript:toggleInherit('pub_methods_classfaiss_1_1gpu_1_1GpuIndexFlat')" > < img src = "closed.png" alt = "-" / >   Public Member Functions inherited from < a class = "el" href = "classfaiss_1_1gpu_1_1GpuIndexFlat.html" > faiss::gpu::GpuIndexFlat< / a > < / td > < / tr >
2017-03-21 01:33:21 +08:00
< tr class = "memitem:af8a1626e4c54a451d0b9f82df3a6687e inherit pub_methods_classfaiss_1_1gpu_1_1GpuIndexFlat" > < td class = "memItemLeft" align = "right" valign = "top" >   < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classfaiss_1_1gpu_1_1GpuIndexFlat.html#af8a1626e4c54a451d0b9f82df3a6687e" > GpuIndexFlat< / a > (< a class = "el" href = "classfaiss_1_1gpu_1_1GpuResources.html" > GpuResources< / a > *resources, const < a class = "el" href = "structfaiss_1_1IndexFlat.html" > faiss::IndexFlat< / a > *index, < a class = "el" href = "structfaiss_1_1gpu_1_1GpuIndexFlatConfig.html" > GpuIndexFlatConfig< / a > config=< a class = "el" href = "structfaiss_1_1gpu_1_1GpuIndexFlatConfig.html" > GpuIndexFlatConfig< / a > ())< / td > < / tr >
< tr class = "separator:af8a1626e4c54a451d0b9f82df3a6687e inherit pub_methods_classfaiss_1_1gpu_1_1GpuIndexFlat" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:aff5330eb125352cc599224584bd5d6bb inherit pub_methods_classfaiss_1_1gpu_1_1GpuIndexFlat" > < td class = "memItemLeft" align = "right" valign = "top" > < a class = "anchor" id = "aff5330eb125352cc599224584bd5d6bb" > < / a >
  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classfaiss_1_1gpu_1_1GpuIndexFlat.html#aff5330eb125352cc599224584bd5d6bb" > GpuIndexFlat< / a > (< a class = "el" href = "classfaiss_1_1gpu_1_1GpuResources.html" > GpuResources< / a > *resources, int dims, < a class = "el" href = "namespacefaiss.html#afd12191c638da74760ff397cf319752c" > faiss::MetricType< / a > metric, < a class = "el" href = "structfaiss_1_1gpu_1_1GpuIndexFlatConfig.html" > GpuIndexFlatConfig< / a > config=< a class = "el" href = "structfaiss_1_1gpu_1_1GpuIndexFlatConfig.html" > GpuIndexFlatConfig< / a > ())< / td > < / tr >
< tr class = "memdesc:aff5330eb125352cc599224584bd5d6bb inherit pub_methods_classfaiss_1_1gpu_1_1GpuIndexFlat" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > Construct an empty instance that can be added to. < br / > < / td > < / tr >
< tr class = "separator:aff5330eb125352cc599224584bd5d6bb inherit pub_methods_classfaiss_1_1gpu_1_1GpuIndexFlat" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
2017-02-23 06:26:44 +08:00
< tr class = "memitem:abb964875e0893de1d8334ca5ad0f62dc inherit pub_methods_classfaiss_1_1gpu_1_1GpuIndexFlat" > < td class = "memItemLeft" align = "right" valign = "top" > void  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classfaiss_1_1gpu_1_1GpuIndexFlat.html#abb964875e0893de1d8334ca5ad0f62dc" > copyFrom< / a > (const < a class = "el" href = "structfaiss_1_1IndexFlat.html" > faiss::IndexFlat< / a > *index)< / td > < / tr >
< tr class = "separator:abb964875e0893de1d8334ca5ad0f62dc inherit pub_methods_classfaiss_1_1gpu_1_1GpuIndexFlat" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:a046007ff2fafcafc6ae328769c700e39 inherit pub_methods_classfaiss_1_1gpu_1_1GpuIndexFlat" > < td class = "memItemLeft" align = "right" valign = "top" > void  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classfaiss_1_1gpu_1_1GpuIndexFlat.html#a046007ff2fafcafc6ae328769c700e39" > copyTo< / a > (< a class = "el" href = "structfaiss_1_1IndexFlat.html" > faiss::IndexFlat< / a > *index) const < / td > < / tr >
< tr class = "separator:a046007ff2fafcafc6ae328769c700e39 inherit pub_methods_classfaiss_1_1gpu_1_1GpuIndexFlat" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:a51b5aa0d68670ec7ccb32b0353c7387f inherit pub_methods_classfaiss_1_1gpu_1_1GpuIndexFlat" > < td class = "memItemLeft" align = "right" valign = "top" > < a class = "anchor" id = "a51b5aa0d68670ec7ccb32b0353c7387f" > < / a >
size_t  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classfaiss_1_1gpu_1_1GpuIndexFlat.html#a51b5aa0d68670ec7ccb32b0353c7387f" > getNumVecs< / a > () const < / td > < / tr >
< tr class = "memdesc:a51b5aa0d68670ec7ccb32b0353c7387f inherit pub_methods_classfaiss_1_1gpu_1_1GpuIndexFlat" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > Returns the number of vectors we contain. < br / > < / td > < / tr >
< tr class = "separator:a51b5aa0d68670ec7ccb32b0353c7387f inherit pub_methods_classfaiss_1_1gpu_1_1GpuIndexFlat" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
2017-06-21 21:54:28 +08:00
< tr class = "memitem:a67161796f274a7171a67c36bdf1ef1db inherit pub_methods_classfaiss_1_1gpu_1_1GpuIndexFlat" > < td class = "memItemLeft" align = "right" valign = "top" > < a class = "anchor" id = "a67161796f274a7171a67c36bdf1ef1db" > < / a >
void  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classfaiss_1_1gpu_1_1GpuIndexFlat.html#a67161796f274a7171a67c36bdf1ef1db" > reset< / a > () override< / td > < / tr >
< tr class = "memdesc:a67161796f274a7171a67c36bdf1ef1db inherit pub_methods_classfaiss_1_1gpu_1_1GpuIndexFlat" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > Clears all vectors from this index. < br / > < / td > < / tr >
< tr class = "separator:a67161796f274a7171a67c36bdf1ef1db inherit pub_methods_classfaiss_1_1gpu_1_1GpuIndexFlat" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:a0e74fad76628ddfb5ae3dc1d1c69f7e8 inherit pub_methods_classfaiss_1_1gpu_1_1GpuIndexFlat" > < td class = "memItemLeft" align = "right" valign = "top" > < a class = "anchor" id = "a0e74fad76628ddfb5ae3dc1d1c69f7e8" > < / a >
2019-05-28 22:17:22 +08:00
void  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classfaiss_1_1gpu_1_1GpuIndexFlat.html#a0e74fad76628ddfb5ae3dc1d1c69f7e8" > train< / a > (< a class = "el" href = "structfaiss_1_1Index.html#ad3f0d3071f987baabbdd3da4500c87ea" > Index::idx_t< / a > n, const float *x) override< / td > < / tr >
2017-06-21 21:54:28 +08:00
< tr class = "memdesc:a0e74fad76628ddfb5ae3dc1d1c69f7e8 inherit pub_methods_classfaiss_1_1gpu_1_1GpuIndexFlat" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > This index is not trained, so this does nothing. < br / > < / td > < / tr >
< tr class = "separator:a0e74fad76628ddfb5ae3dc1d1c69f7e8 inherit pub_methods_classfaiss_1_1gpu_1_1GpuIndexFlat" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:a35d31b6b5ea89629b369655fd03bd505 inherit pub_methods_classfaiss_1_1gpu_1_1GpuIndexFlat" > < td class = "memItemLeft" align = "right" valign = "top" > < a class = "anchor" id = "a35d31b6b5ea89629b369655fd03bd505" > < / a >
2019-05-28 22:17:22 +08:00
void  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classfaiss_1_1gpu_1_1GpuIndexFlat.html#a35d31b6b5ea89629b369655fd03bd505" > add< / a > (< a class = "el" href = "structfaiss_1_1Index.html#ad3f0d3071f987baabbdd3da4500c87ea" > faiss::Index::idx_t< / a > , const float *x) override< / td > < / tr >
2017-06-21 21:54:28 +08:00
< tr class = "memdesc:a35d31b6b5ea89629b369655fd03bd505 inherit pub_methods_classfaiss_1_1gpu_1_1GpuIndexFlat" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > Overrides to avoid excessive copies. < br / > < / td > < / tr >
< tr class = "separator:a35d31b6b5ea89629b369655fd03bd505 inherit pub_methods_classfaiss_1_1gpu_1_1GpuIndexFlat" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
2019-05-28 22:17:22 +08:00
< tr class = "memitem:a7f1cdf03d3545a43fc91bb5cace3b6fd inherit pub_methods_classfaiss_1_1gpu_1_1GpuIndexFlat" > < td class = "memItemLeft" align = "right" valign = "top" > void  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classfaiss_1_1gpu_1_1GpuIndexFlat.html#a7f1cdf03d3545a43fc91bb5cace3b6fd" > reconstruct< / a > (< a class = "el" href = "structfaiss_1_1Index.html#ad3f0d3071f987baabbdd3da4500c87ea" > faiss::Index::idx_t< / a > key, float *out) const override< / td > < / tr >
2017-06-21 21:54:28 +08:00
< tr class = "separator:a7f1cdf03d3545a43fc91bb5cace3b6fd inherit pub_methods_classfaiss_1_1gpu_1_1GpuIndexFlat" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:a472732e9bd8ffb1aa4c3abc31063dd28 inherit pub_methods_classfaiss_1_1gpu_1_1GpuIndexFlat" > < td class = "memItemLeft" align = "right" valign = "top" > < a class = "anchor" id = "a472732e9bd8ffb1aa4c3abc31063dd28" > < / a >
2019-05-28 22:17:22 +08:00
void  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classfaiss_1_1gpu_1_1GpuIndexFlat.html#a472732e9bd8ffb1aa4c3abc31063dd28" > reconstruct_n< / a > (< a class = "el" href = "structfaiss_1_1Index.html#ad3f0d3071f987baabbdd3da4500c87ea" > faiss::Index::idx_t< / a > i0, < a class = "el" href = "structfaiss_1_1Index.html#ad3f0d3071f987baabbdd3da4500c87ea" > faiss::Index::idx_t< / a > num, float *out) const override< / td > < / tr >
2017-06-21 21:54:28 +08:00
< tr class = "memdesc:a472732e9bd8ffb1aa4c3abc31063dd28 inherit pub_methods_classfaiss_1_1gpu_1_1GpuIndexFlat" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > Batch reconstruction method. < br / > < / td > < / tr >
< tr class = "separator:a472732e9bd8ffb1aa4c3abc31063dd28 inherit pub_methods_classfaiss_1_1gpu_1_1GpuIndexFlat" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
2017-02-23 06:26:44 +08:00
< tr class = "memitem:a310b00d4443920a855b11276d488c9a7 inherit pub_methods_classfaiss_1_1gpu_1_1GpuIndexFlat" > < td class = "memItemLeft" align = "right" valign = "top" > < a class = "anchor" id = "a310b00d4443920a855b11276d488c9a7" > < / a >
< a class = "el" href = "classfaiss_1_1gpu_1_1FlatIndex.html" > FlatIndex< / a > *  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classfaiss_1_1gpu_1_1GpuIndexFlat.html#a310b00d4443920a855b11276d488c9a7" > getGpuData< / a > ()< / td > < / tr >
< tr class = "memdesc:a310b00d4443920a855b11276d488c9a7 inherit pub_methods_classfaiss_1_1gpu_1_1GpuIndexFlat" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > For internal access. < br / > < / td > < / tr >
< tr class = "separator:a310b00d4443920a855b11276d488c9a7 inherit pub_methods_classfaiss_1_1gpu_1_1GpuIndexFlat" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "inherit_header pub_methods_classfaiss_1_1gpu_1_1GpuIndex" > < td colspan = "2" onclick = "javascript:toggleInherit('pub_methods_classfaiss_1_1gpu_1_1GpuIndex')" > < img src = "closed.png" alt = "-" / >   Public Member Functions inherited from < a class = "el" href = "classfaiss_1_1gpu_1_1GpuIndex.html" > faiss::gpu::GpuIndex< / a > < / td > < / tr >
2017-06-21 21:54:28 +08:00
< tr class = "memitem:a9bd06bc3c4ac62195b80389ce8fd1f28 inherit pub_methods_classfaiss_1_1gpu_1_1GpuIndex" > < td class = "memItemLeft" align = "right" valign = "top" > < a class = "anchor" id = "a9bd06bc3c4ac62195b80389ce8fd1f28" > < / a >
  < / td > < td class = "memItemRight" valign = "bottom" > < b > GpuIndex< / b > (< a class = "el" href = "classfaiss_1_1gpu_1_1GpuResources.html" > GpuResources< / a > *resources, int dims, < a class = "el" href = "namespacefaiss.html#afd12191c638da74760ff397cf319752c" > faiss::MetricType< / a > metric, < a class = "el" href = "structfaiss_1_1gpu_1_1GpuIndexConfig.html" > GpuIndexConfig< / a > config)< / td > < / tr >
< tr class = "separator:a9bd06bc3c4ac62195b80389ce8fd1f28 inherit pub_methods_classfaiss_1_1gpu_1_1GpuIndex" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
2017-02-23 06:26:44 +08:00
< tr class = "memitem:a88b10d410c10fa8667c394ee7fbfbdbc inherit pub_methods_classfaiss_1_1gpu_1_1GpuIndex" > < td class = "memItemLeft" align = "right" valign = "top" > < a class = "anchor" id = "a88b10d410c10fa8667c394ee7fbfbdbc" > < / a >
int  < / td > < td class = "memItemRight" valign = "bottom" > < b > getDevice< / b > () const < / td > < / tr >
< tr class = "separator:a88b10d410c10fa8667c394ee7fbfbdbc inherit pub_methods_classfaiss_1_1gpu_1_1GpuIndex" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:aa40dd7a62abea6f8e8a7afdaf1e81cef inherit pub_methods_classfaiss_1_1gpu_1_1GpuIndex" > < td class = "memItemLeft" align = "right" valign = "top" > < a class = "anchor" id = "aa40dd7a62abea6f8e8a7afdaf1e81cef" > < / a >
< a class = "el" href = "classfaiss_1_1gpu_1_1GpuResources.html" > GpuResources< / a > *  < / td > < td class = "memItemRight" valign = "bottom" > < b > getResources< / b > ()< / td > < / tr >
< tr class = "separator:aa40dd7a62abea6f8e8a7afdaf1e81cef inherit pub_methods_classfaiss_1_1gpu_1_1GpuIndex" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
2019-05-28 22:17:22 +08:00
< tr class = "memitem:a6c82cbea6b02cc996d634f822c1d310b inherit pub_methods_classfaiss_1_1gpu_1_1GpuIndex" > < td class = "memItemLeft" align = "right" valign = "top" > void  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classfaiss_1_1gpu_1_1GpuIndex.html#a6c82cbea6b02cc996d634f822c1d310b" > setMinPagingSize< / a > (size_t size)< / td > < / tr >
< tr class = "separator:a6c82cbea6b02cc996d634f822c1d310b inherit pub_methods_classfaiss_1_1gpu_1_1GpuIndex" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:adbdc96814ff2d4390dfd860bd5918203 inherit pub_methods_classfaiss_1_1gpu_1_1GpuIndex" > < td class = "memItemLeft" align = "right" valign = "top" > < a class = "anchor" id = "adbdc96814ff2d4390dfd860bd5918203" > < / a >
size_t  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classfaiss_1_1gpu_1_1GpuIndex.html#adbdc96814ff2d4390dfd860bd5918203" > getMinPagingSize< / a > () const < / td > < / tr >
< tr class = "memdesc:adbdc96814ff2d4390dfd860bd5918203 inherit pub_methods_classfaiss_1_1gpu_1_1GpuIndex" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > Returns the current minimum data size for paged searches. < br / > < / td > < / tr >
< tr class = "separator:adbdc96814ff2d4390dfd860bd5918203 inherit pub_methods_classfaiss_1_1gpu_1_1GpuIndex" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:a47f6969fe60d82b8e3407557ba9eec88 inherit pub_methods_classfaiss_1_1gpu_1_1GpuIndex" > < td class = "memItemLeft" align = "right" valign = "top" > void  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classfaiss_1_1gpu_1_1GpuIndex.html#a47f6969fe60d82b8e3407557ba9eec88" > add_with_ids< / a > (< a class = "el" href = "structfaiss_1_1Index.html#ad3f0d3071f987baabbdd3da4500c87ea" > Index::idx_t< / a > n, const float *x, const < a class = "el" href = "structfaiss_1_1Index.html#ad3f0d3071f987baabbdd3da4500c87ea" > Index::idx_t< / a > *ids) override< / td > < / tr >
2017-06-21 21:54:28 +08:00
< tr class = "separator:a47f6969fe60d82b8e3407557ba9eec88 inherit pub_methods_classfaiss_1_1gpu_1_1GpuIndex" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
2019-05-28 22:17:22 +08:00
< tr class = "memitem:a4564ff946e4339156173b39449562971 inherit pub_methods_classfaiss_1_1gpu_1_1GpuIndex" > < td class = "memItemLeft" align = "right" valign = "top" > void  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classfaiss_1_1gpu_1_1GpuIndex.html#a4564ff946e4339156173b39449562971" > search< / a > (< a class = "el" href = "structfaiss_1_1Index.html#ad3f0d3071f987baabbdd3da4500c87ea" > Index::idx_t< / a > n, const float *x, < a class = "el" href = "structfaiss_1_1Index.html#ad3f0d3071f987baabbdd3da4500c87ea" > Index::idx_t< / a > k, float *distances, < a class = "el" href = "structfaiss_1_1Index.html#ad3f0d3071f987baabbdd3da4500c87ea" > Index::idx_t< / a > *labels) const override< / td > < / tr >
< tr class = "separator:a4564ff946e4339156173b39449562971 inherit pub_methods_classfaiss_1_1gpu_1_1GpuIndex" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
2017-02-23 06:26:44 +08:00
< tr class = "inherit_header pub_methods_structfaiss_1_1Index" > < td colspan = "2" onclick = "javascript:toggleInherit('pub_methods_structfaiss_1_1Index')" > < img src = "closed.png" alt = "-" / >   Public Member Functions inherited from < a class = "el" href = "structfaiss_1_1Index.html" > faiss::Index< / a > < / td > < / tr >
2018-01-09 22:44:43 +08:00
< tr class = "memitem:a7b8cc435b5619d5d8382010a424bf67e inherit pub_methods_structfaiss_1_1Index" > < td class = "memItemLeft" align = "right" valign = "top" > < a class = "anchor" id = "a7b8cc435b5619d5d8382010a424bf67e" > < / a >
2019-05-28 22:17:22 +08:00
  < / td > < td class = "memItemRight" valign = "bottom" > < b > Index< / b > (< a class = "el" href = "structfaiss_1_1Index.html#ad3f0d3071f987baabbdd3da4500c87ea" > idx_t< / a > < a class = "el" href = "structfaiss_1_1Index.html#a2a002388d2c081c2dbab8508dcefe73d" > d< / a > =0, < a class = "el" href = "namespacefaiss.html#afd12191c638da74760ff397cf319752c" > MetricType< / a > metric=METRIC_L2)< / td > < / tr >
2018-01-09 22:44:43 +08:00
< tr class = "separator:a7b8cc435b5619d5d8382010a424bf67e inherit pub_methods_structfaiss_1_1Index" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
2019-05-28 22:17:22 +08:00
< tr class = "memitem:a236897832a58dbb205e2d662c1929fb1 inherit pub_methods_structfaiss_1_1Index" > < td class = "memItemLeft" align = "right" valign = "top" > virtual void  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "structfaiss_1_1Index.html#a236897832a58dbb205e2d662c1929fb1" > range_search< / a > (< a class = "el" href = "structfaiss_1_1Index.html#ad3f0d3071f987baabbdd3da4500c87ea" > idx_t< / a > n, const float *x, float radius, < a class = "el" href = "structfaiss_1_1RangeSearchResult.html" > RangeSearchResult< / a > *result) const < / td > < / tr >
2017-02-23 06:26:44 +08:00
< tr class = "separator:a236897832a58dbb205e2d662c1929fb1 inherit pub_methods_structfaiss_1_1Index" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
2019-05-28 22:17:22 +08:00
< tr class = "memitem:a8bc5d8d1cd0dd7b34b3c98a9f76b4a9c inherit pub_methods_structfaiss_1_1Index" > < td class = "memItemLeft" align = "right" valign = "top" > void  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "structfaiss_1_1Index.html#a8bc5d8d1cd0dd7b34b3c98a9f76b4a9c" > assign< / a > (< a class = "el" href = "structfaiss_1_1Index.html#ad3f0d3071f987baabbdd3da4500c87ea" > idx_t< / a > n, const float *x, < a class = "el" href = "structfaiss_1_1Index.html#ad3f0d3071f987baabbdd3da4500c87ea" > idx_t< / a > *labels, < a class = "el" href = "structfaiss_1_1Index.html#ad3f0d3071f987baabbdd3da4500c87ea" > idx_t< / a > k=1)< / td > < / tr >
2017-02-23 06:26:44 +08:00
< tr class = "separator:a8bc5d8d1cd0dd7b34b3c98a9f76b4a9c inherit pub_methods_structfaiss_1_1Index" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:af8bf7bd97aeed8ad5fc48b242379a68a inherit pub_methods_structfaiss_1_1Index" > < td class = "memItemLeft" align = "right" valign = "top" > virtual long  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "structfaiss_1_1Index.html#af8bf7bd97aeed8ad5fc48b242379a68a" > remove_ids< / a > (const < a class = "el" href = "structfaiss_1_1IDSelector.html" > IDSelector< / a > & sel)< / td > < / tr >
< tr class = "separator:af8bf7bd97aeed8ad5fc48b242379a68a inherit pub_methods_structfaiss_1_1Index" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
2019-05-28 22:17:22 +08:00
< tr class = "memitem:aa5b4e63e1064f9bf9c75625d114b353f inherit pub_methods_structfaiss_1_1Index" > < td class = "memItemLeft" align = "right" valign = "top" > virtual void  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "structfaiss_1_1Index.html#aa5b4e63e1064f9bf9c75625d114b353f" > search_and_reconstruct< / a > (< a class = "el" href = "structfaiss_1_1Index.html#ad3f0d3071f987baabbdd3da4500c87ea" > idx_t< / a > n, const float *x, < a class = "el" href = "structfaiss_1_1Index.html#ad3f0d3071f987baabbdd3da4500c87ea" > idx_t< / a > k, float *distances, < a class = "el" href = "structfaiss_1_1Index.html#ad3f0d3071f987baabbdd3da4500c87ea" > idx_t< / a > *labels, float *recons) const < / td > < / tr >
2018-01-09 22:44:43 +08:00
< tr class = "separator:aa5b4e63e1064f9bf9c75625d114b353f inherit pub_methods_structfaiss_1_1Index" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
2019-05-28 22:17:22 +08:00
< tr class = "memitem:aaae77608bbda70b1098897e9167a82f9 inherit pub_methods_structfaiss_1_1Index" > < td class = "memItemLeft" align = "right" valign = "top" > void  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "structfaiss_1_1Index.html#aaae77608bbda70b1098897e9167a82f9" > compute_residual< / a > (const float *x, float *residual, < a class = "el" href = "structfaiss_1_1Index.html#ad3f0d3071f987baabbdd3da4500c87ea" > idx_t< / a > key) const < / td > < / tr >
2017-02-23 06:26:44 +08:00
< tr class = "separator:aaae77608bbda70b1098897e9167a82f9 inherit pub_methods_structfaiss_1_1Index" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:a373c30e3d87d1d4e616f450d87152b1a inherit pub_methods_structfaiss_1_1Index" > < td class = "memItemLeft" align = "right" valign = "top" > void  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "structfaiss_1_1Index.html#a373c30e3d87d1d4e616f450d87152b1a" > display< / a > () const < / td > < / tr >
< tr class = "separator:a373c30e3d87d1d4e616f450d87152b1a inherit pub_methods_structfaiss_1_1Index" > < 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_1Index" > < td colspan = "2" onclick = "javascript:toggleInherit('pub_types_structfaiss_1_1Index')" > < img src = "closed.png" alt = "-" / >   Public Types inherited from < a class = "el" href = "structfaiss_1_1Index.html" > faiss::Index< / a > < / td > < / tr >
2019-05-28 22:17:22 +08:00
< tr class = "memitem:ad3f0d3071f987baabbdd3da4500c87ea inherit pub_types_structfaiss_1_1Index" > < td class = "memItemLeft" align = "right" valign = "top" > < a class = "anchor" id = "ad3f0d3071f987baabbdd3da4500c87ea" > < / a >
using  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "structfaiss_1_1Index.html#ad3f0d3071f987baabbdd3da4500c87ea" > idx_t< / a > = long< / td > < / tr >
< tr class = "memdesc:ad3f0d3071f987baabbdd3da4500c87ea inherit pub_types_structfaiss_1_1Index" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > all indices are this type < br / > < / td > < / tr >
< tr class = "separator:ad3f0d3071f987baabbdd3da4500c87ea inherit pub_types_structfaiss_1_1Index" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:af317cb1e2ad0bd145f716f2243b693eb inherit pub_types_structfaiss_1_1Index" > < td class = "memItemLeft" align = "right" valign = "top" > < a class = "anchor" id = "af317cb1e2ad0bd145f716f2243b693eb" > < / a >
using  < / td > < td class = "memItemRight" valign = "bottom" > < b > component_t< / b > = float< / td > < / tr >
< tr class = "separator:af317cb1e2ad0bd145f716f2243b693eb inherit pub_types_structfaiss_1_1Index" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:a1c60d7a12bf3ad27054963df8cccd93f inherit pub_types_structfaiss_1_1Index" > < td class = "memItemLeft" align = "right" valign = "top" > < a class = "anchor" id = "a1c60d7a12bf3ad27054963df8cccd93f" > < / a >
using  < / td > < td class = "memItemRight" valign = "bottom" > < b > distance_t< / b > = float< / td > < / tr >
< tr class = "separator:a1c60d7a12bf3ad27054963df8cccd93f inherit pub_types_structfaiss_1_1Index" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
2017-02-23 06:26:44 +08:00
< tr class = "inherit_header pub_attribs_structfaiss_1_1Index" > < td colspan = "2" onclick = "javascript:toggleInherit('pub_attribs_structfaiss_1_1Index')" > < img src = "closed.png" alt = "-" / >   Public Attributes inherited from < a class = "el" href = "structfaiss_1_1Index.html" > faiss::Index< / a > < / td > < / tr >
< tr class = "memitem:a2a002388d2c081c2dbab8508dcefe73d inherit pub_attribs_structfaiss_1_1Index" > < td class = "memItemLeft" align = "right" valign = "top" > < a class = "anchor" id = "a2a002388d2c081c2dbab8508dcefe73d" > < / a >
int  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "structfaiss_1_1Index.html#a2a002388d2c081c2dbab8508dcefe73d" > d< / a > < / td > < / tr >
< tr class = "memdesc:a2a002388d2c081c2dbab8508dcefe73d inherit pub_attribs_structfaiss_1_1Index" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > vector dimension < br / > < / td > < / tr >
< tr class = "separator:a2a002388d2c081c2dbab8508dcefe73d inherit pub_attribs_structfaiss_1_1Index" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:a6970683faa021b7a6f1a0865c0d4eccd inherit pub_attribs_structfaiss_1_1Index" > < td class = "memItemLeft" align = "right" valign = "top" > < a class = "anchor" id = "a6970683faa021b7a6f1a0865c0d4eccd" > < / a >
2019-05-28 22:17:22 +08:00
< a class = "el" href = "structfaiss_1_1Index.html#ad3f0d3071f987baabbdd3da4500c87ea" > idx_t< / a >   < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "structfaiss_1_1Index.html#a6970683faa021b7a6f1a0865c0d4eccd" > ntotal< / a > < / td > < / tr >
2017-02-23 06:26:44 +08:00
< tr class = "memdesc:a6970683faa021b7a6f1a0865c0d4eccd inherit pub_attribs_structfaiss_1_1Index" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > total nb of indexed vectors < br / > < / td > < / tr >
< tr class = "separator:a6970683faa021b7a6f1a0865c0d4eccd inherit pub_attribs_structfaiss_1_1Index" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:a5590d847c5c2b958affd2a05e58a6f23 inherit pub_attribs_structfaiss_1_1Index" > < td class = "memItemLeft" align = "right" valign = "top" > < a class = "anchor" id = "a5590d847c5c2b958affd2a05e58a6f23" > < / a >
bool  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "structfaiss_1_1Index.html#a5590d847c5c2b958affd2a05e58a6f23" > verbose< / a > < / td > < / tr >
< tr class = "memdesc:a5590d847c5c2b958affd2a05e58a6f23 inherit pub_attribs_structfaiss_1_1Index" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > verbosity level < br / > < / td > < / tr >
< tr class = "separator:a5590d847c5c2b958affd2a05e58a6f23 inherit pub_attribs_structfaiss_1_1Index" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:a6e92732617c4dbe364e7678dd8773a7f inherit pub_attribs_structfaiss_1_1Index" > < td class = "memItemLeft" align = "right" valign = "top" > < a class = "anchor" id = "a6e92732617c4dbe364e7678dd8773a7f" > < / a >
bool  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "structfaiss_1_1Index.html#a6e92732617c4dbe364e7678dd8773a7f" > is_trained< / a > < / td > < / tr >
< tr class = "memdesc:a6e92732617c4dbe364e7678dd8773a7f inherit pub_attribs_structfaiss_1_1Index" > < 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:a6e92732617c4dbe364e7678dd8773a7f inherit pub_attribs_structfaiss_1_1Index" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:a8e18f641854b2bde83ecff0a2f9a6f4e inherit pub_attribs_structfaiss_1_1Index" > < td class = "memItemLeft" align = "right" valign = "top" > < a class = "anchor" id = "a8e18f641854b2bde83ecff0a2f9a6f4e" > < / a >
< a class = "el" href = "namespacefaiss.html#afd12191c638da74760ff397cf319752c" > MetricType< / a >   < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "structfaiss_1_1Index.html#a8e18f641854b2bde83ecff0a2f9a6f4e" > metric_type< / a > < / td > < / tr >
< tr class = "memdesc:a8e18f641854b2bde83ecff0a2f9a6f4e inherit pub_attribs_structfaiss_1_1Index" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > type of metric this index uses for search < br / > < / td > < / tr >
< tr class = "separator:a8e18f641854b2bde83ecff0a2f9a6f4e inherit pub_attribs_structfaiss_1_1Index" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "inherit_header pro_methods_classfaiss_1_1gpu_1_1GpuIndexFlat" > < td colspan = "2" onclick = "javascript:toggleInherit('pro_methods_classfaiss_1_1gpu_1_1GpuIndexFlat')" > < img src = "closed.png" alt = "-" / >   Protected Member Functions inherited from < a class = "el" href = "classfaiss_1_1gpu_1_1GpuIndexFlat.html" > faiss::gpu::GpuIndexFlat< / a > < / td > < / tr >
2019-05-28 22:17:22 +08:00
< tr class = "memitem:ad42677502d391e88427b26da1ae9bd2d inherit pro_methods_classfaiss_1_1gpu_1_1GpuIndexFlat" > < td class = "memItemLeft" align = "right" valign = "top" > < a class = "anchor" id = "ad42677502d391e88427b26da1ae9bd2d" > < / a >
bool  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classfaiss_1_1gpu_1_1GpuIndexFlat.html#ad42677502d391e88427b26da1ae9bd2d" > addImplRequiresIDs_< / a > () const override< / td > < / tr >
< tr class = "memdesc:ad42677502d391e88427b26da1ae9bd2d inherit pro_methods_classfaiss_1_1gpu_1_1GpuIndexFlat" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > Flat index does not require IDs as there is no storage available for them. < br / > < / td > < / tr >
< tr class = "separator:ad42677502d391e88427b26da1ae9bd2d inherit pro_methods_classfaiss_1_1gpu_1_1GpuIndexFlat" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:a3f2744527184208d1b845dda9d655a88 inherit pro_methods_classfaiss_1_1gpu_1_1GpuIndexFlat" > < td class = "memItemLeft" align = "right" valign = "top" > < a class = "anchor" id = "a3f2744527184208d1b845dda9d655a88" > < / a >
void  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classfaiss_1_1gpu_1_1GpuIndexFlat.html#a3f2744527184208d1b845dda9d655a88" > addImpl_< / a > (int n, const float *x, const < a class = "el" href = "structfaiss_1_1Index.html#ad3f0d3071f987baabbdd3da4500c87ea" > Index::idx_t< / a > *ids) override< / td > < / tr >
< tr class = "memdesc:a3f2744527184208d1b845dda9d655a88 inherit pro_methods_classfaiss_1_1gpu_1_1GpuIndexFlat" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > Called from < a class = "el" href = "classfaiss_1_1gpu_1_1GpuIndex.html" > GpuIndex< / a > for add. < br / > < / td > < / tr >
< tr class = "separator:a3f2744527184208d1b845dda9d655a88 inherit pro_methods_classfaiss_1_1gpu_1_1GpuIndexFlat" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:abe12febd18da31fb6c3355a2c6bff3d4 inherit pro_methods_classfaiss_1_1gpu_1_1GpuIndexFlat" > < td class = "memItemLeft" align = "right" valign = "top" > < a class = "anchor" id = "abe12febd18da31fb6c3355a2c6bff3d4" > < / a >
void  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classfaiss_1_1gpu_1_1GpuIndexFlat.html#abe12febd18da31fb6c3355a2c6bff3d4" > searchImpl_< / a > (int n, const float *x, int k, float *distances, < a class = "el" href = "structfaiss_1_1Index.html#ad3f0d3071f987baabbdd3da4500c87ea" > faiss::Index::idx_t< / a > *labels) const override< / td > < / tr >
< tr class = "memdesc:abe12febd18da31fb6c3355a2c6bff3d4 inherit pro_methods_classfaiss_1_1gpu_1_1GpuIndexFlat" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > Called from < a class = "el" href = "classfaiss_1_1gpu_1_1GpuIndex.html" > GpuIndex< / a > for search. < br / > < / td > < / tr >
< tr class = "separator:abe12febd18da31fb6c3355a2c6bff3d4 inherit pro_methods_classfaiss_1_1gpu_1_1GpuIndexFlat" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
2017-02-23 06:26:44 +08:00
< tr class = "inherit_header pro_attribs_classfaiss_1_1gpu_1_1GpuIndexFlat" > < td colspan = "2" onclick = "javascript:toggleInherit('pro_attribs_classfaiss_1_1gpu_1_1GpuIndexFlat')" > < img src = "closed.png" alt = "-" / >   Protected Attributes inherited from < a class = "el" href = "classfaiss_1_1gpu_1_1GpuIndexFlat.html" > faiss::gpu::GpuIndexFlat< / a > < / td > < / tr >
2017-06-21 21:54:28 +08:00
< tr class = "memitem:a9efdc92bf03d2d6820fb989cf77e8067 inherit pro_attribs_classfaiss_1_1gpu_1_1GpuIndexFlat" > < td class = "memItemLeft" align = "right" valign = "top" > < a class = "anchor" id = "a9efdc92bf03d2d6820fb989cf77e8067" > < / a >
const < a class = "el" href = "structfaiss_1_1gpu_1_1GpuIndexFlatConfig.html" > GpuIndexFlatConfig< / a >   < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classfaiss_1_1gpu_1_1GpuIndexFlat.html#a9efdc92bf03d2d6820fb989cf77e8067" > config_< / a > < / td > < / tr >
< tr class = "memdesc:a9efdc92bf03d2d6820fb989cf77e8067 inherit pro_attribs_classfaiss_1_1gpu_1_1GpuIndexFlat" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > Our config object. < br / > < / td > < / tr >
< tr class = "separator:a9efdc92bf03d2d6820fb989cf77e8067 inherit pro_attribs_classfaiss_1_1gpu_1_1GpuIndexFlat" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
2018-12-20 00:48:35 +08:00
< tr class = "memitem:ae393840fc80403369452c25c9155e067 inherit pro_attribs_classfaiss_1_1gpu_1_1GpuIndexFlat" > < td class = "memItemLeft" align = "right" valign = "top" > < a class = "el" href = "classfaiss_1_1gpu_1_1FlatIndex.html" > FlatIndex< / a > *  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classfaiss_1_1gpu_1_1GpuIndexFlat.html#ae393840fc80403369452c25c9155e067" > data_< / a > < / td > < / tr >
2017-02-23 06:26:44 +08:00
< tr class = "separator:ae393840fc80403369452c25c9155e067 inherit pro_attribs_classfaiss_1_1gpu_1_1GpuIndexFlat" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "inherit_header pro_attribs_classfaiss_1_1gpu_1_1GpuIndex" > < td colspan = "2" onclick = "javascript:toggleInherit('pro_attribs_classfaiss_1_1gpu_1_1GpuIndex')" > < img src = "closed.png" alt = "-" / >   Protected Attributes inherited from < a class = "el" href = "classfaiss_1_1gpu_1_1GpuIndex.html" > faiss::gpu::GpuIndex< / a > < / td > < / tr >
< tr class = "memitem:a17b82a8a11783da6eb1b07c9aab98c36 inherit pro_attribs_classfaiss_1_1gpu_1_1GpuIndex" > < td class = "memItemLeft" align = "right" valign = "top" > < a class = "anchor" id = "a17b82a8a11783da6eb1b07c9aab98c36" > < / a >
< a class = "el" href = "classfaiss_1_1gpu_1_1GpuResources.html" > GpuResources< / a > *  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classfaiss_1_1gpu_1_1GpuIndex.html#a17b82a8a11783da6eb1b07c9aab98c36" > resources_< / a > < / td > < / tr >
2019-05-28 22:17:22 +08:00
< tr class = "memdesc:a17b82a8a11783da6eb1b07c9aab98c36 inherit pro_attribs_classfaiss_1_1gpu_1_1GpuIndex" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > Manages streams, cuBLAS handles and scratch memory for devices. < br / > < / td > < / tr >
2017-02-23 06:26:44 +08:00
< tr class = "separator:a17b82a8a11783da6eb1b07c9aab98c36 inherit pro_attribs_classfaiss_1_1gpu_1_1GpuIndex" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
2017-06-21 21:54:28 +08:00
< tr class = "memitem:a67750633faa35677ee505a1e61cfe142 inherit pro_attribs_classfaiss_1_1gpu_1_1GpuIndex" > < td class = "memItemLeft" align = "right" valign = "top" > < a class = "anchor" id = "a67750633faa35677ee505a1e61cfe142" > < / a >
const int  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classfaiss_1_1gpu_1_1GpuIndex.html#a67750633faa35677ee505a1e61cfe142" > device_< / a > < / td > < / tr >
< tr class = "memdesc:a67750633faa35677ee505a1e61cfe142 inherit pro_attribs_classfaiss_1_1gpu_1_1GpuIndex" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > The GPU device we are resident on. < br / > < / td > < / tr >
< tr class = "separator:a67750633faa35677ee505a1e61cfe142 inherit pro_attribs_classfaiss_1_1gpu_1_1GpuIndex" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
< tr class = "memitem:af304169eac7781b573f76d545f37b7d9 inherit pro_attribs_classfaiss_1_1gpu_1_1GpuIndex" > < td class = "memItemLeft" align = "right" valign = "top" > < a class = "anchor" id = "af304169eac7781b573f76d545f37b7d9" > < / a >
const MemorySpace  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classfaiss_1_1gpu_1_1GpuIndex.html#af304169eac7781b573f76d545f37b7d9" > memorySpace_< / a > < / td > < / tr >
< tr class = "memdesc:af304169eac7781b573f76d545f37b7d9 inherit pro_attribs_classfaiss_1_1gpu_1_1GpuIndex" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > The memory space of our primary storage on the GPU. < br / > < / td > < / tr >
< tr class = "separator:af304169eac7781b573f76d545f37b7d9 inherit pro_attribs_classfaiss_1_1gpu_1_1GpuIndex" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
2019-05-28 22:17:22 +08:00
< tr class = "memitem:a32a08664fc4dca2f9405e07ea5bc206f inherit pro_attribs_classfaiss_1_1gpu_1_1GpuIndex" > < td class = "memItemLeft" align = "right" valign = "top" > < a class = "anchor" id = "a32a08664fc4dca2f9405e07ea5bc206f" > < / a >
size_t  < / td > < td class = "memItemRight" valign = "bottom" > < a class = "el" href = "classfaiss_1_1gpu_1_1GpuIndex.html#a32a08664fc4dca2f9405e07ea5bc206f" > minPagedSize_< / a > < / td > < / tr >
< tr class = "memdesc:a32a08664fc4dca2f9405e07ea5bc206f inherit pro_attribs_classfaiss_1_1gpu_1_1GpuIndex" > < td class = "mdescLeft" >   < / td > < td class = "mdescRight" > Size above which we page copies from the CPU to GPU. < br / > < / td > < / tr >
< tr class = "separator:a32a08664fc4dca2f9405e07ea5bc206f inherit pro_attribs_classfaiss_1_1gpu_1_1GpuIndex" > < td class = "memSeparator" colspan = "2" >   < / td > < / tr >
2017-02-23 06:26:44 +08:00
< / table >
< a name = "details" id = "details" > < / a > < h2 class = "groupheader" > Detailed Description< / h2 >
< div class = "textblock" > < p > Wrapper around the GPU implementation that looks like < a class = "el" href = "structfaiss_1_1IndexFlatL2.html" > faiss::IndexFlatL2< / a > ; copies over centroid data from a given < a class = "el" href = "structfaiss_1_1IndexFlat.html" > faiss::IndexFlat< / a > < / p >
2019-05-28 22:17:22 +08:00
< p > Definition at line < a class = "el" href = "GpuIndexFlat_8h_source.html#l00133" > 133< / a > of file < a class = "el" href = "GpuIndexFlat_8h_source.html" > GpuIndexFlat.h< / a > .< / p >
2017-02-23 06:26:44 +08:00
< / div > < h2 class = "groupheader" > Constructor & Destructor Documentation< / h2 >
2017-03-21 01:33:21 +08:00
< a class = "anchor" id = "aed22de4a439fa0b2f560e3c716a7c626" > < / a >
2017-02-23 06:26:44 +08:00
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
< td class = "memname" > faiss::gpu::GpuIndexFlatL2::GpuIndexFlatL2 < / td >
< td > (< / td >
< td class = "paramtype" > < a class = "el" href = "classfaiss_1_1gpu_1_1GpuResources.html" > GpuResources< / a > *  < / td >
< td class = "paramname" > < em > resources< / em > , < / td >
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
2017-03-21 01:33:21 +08:00
< td class = "paramtype" > < a class = "el" href = "structfaiss_1_1IndexFlatL2.html" > faiss::IndexFlatL2< / a > *  < / td >
< td class = "paramname" > < em > index< / em > , < / td >
2017-02-23 06:26:44 +08:00
< / tr >
< tr >
< td class = "paramkey" > < / td >
< td > < / td >
2017-03-21 01:33:21 +08:00
< td class = "paramtype" > < a class = "el" href = "structfaiss_1_1gpu_1_1GpuIndexFlatConfig.html" > GpuIndexFlatConfig< / a >   < / td >
< td class = "paramname" > < em > config< / em > = < code > < a class = "el" href = "structfaiss_1_1gpu_1_1GpuIndexFlatConfig.html" > GpuIndexFlatConfig< / a > ()< / code >   < / td >
2017-02-23 06:26:44 +08:00
< / tr >
< tr >
< td > < / td >
< td > )< / td >
< td > < / td > < td > < / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
< p > Construct from a pre-existing < a class = "el" href = "structfaiss_1_1IndexFlatL2.html" > faiss::IndexFlatL2< / a > instance, copying data over to the given GPU < / p >
2019-05-28 22:17:22 +08:00
< p > Definition at line < a class = "el" href = "GpuIndexFlat_8cu_source.html#l00284" > 284< / a > of file < a class = "el" href = "GpuIndexFlat_8cu_source.html" > GpuIndexFlat.cu< / a > .< / p >
2017-02-23 06:26:44 +08:00
< / div >
< / div >
< h2 class = "groupheader" > Member Function Documentation< / h2 >
< a class = "anchor" id = "a9a9de859274bb73e6d8ea02cae5ca9a6" > < / a >
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
< td class = "memname" > void faiss::gpu::GpuIndexFlatL2::copyFrom < / td >
< td > (< / td >
< td class = "paramtype" > < a class = "el" href = "structfaiss_1_1IndexFlatL2.html" > faiss::IndexFlatL2< / a > *  < / td >
< td class = "paramname" > < em > index< / em > < / td > < td > )< / td >
< td > < / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
< p > Initialize ourselves from the given CPU index; will overwrite all data in ourselves < / p >
2019-05-28 22:17:22 +08:00
< p > Definition at line < a class = "el" href = "GpuIndexFlat_8cu_source.html#l00297" > 297< / a > of file < a class = "el" href = "GpuIndexFlat_8cu_source.html" > GpuIndexFlat.cu< / a > .< / p >
2017-02-23 06:26:44 +08:00
< / div >
< / div >
< a class = "anchor" id = "ab21960d379190b98aaa05ae3877dea09" > < / a >
< div class = "memitem" >
< div class = "memproto" >
< table class = "memname" >
< tr >
< td class = "memname" > void faiss::gpu::GpuIndexFlatL2::copyTo < / td >
< td > (< / td >
< td class = "paramtype" > < a class = "el" href = "structfaiss_1_1IndexFlatL2.html" > faiss::IndexFlatL2< / a > *  < / td >
< td class = "paramname" > < em > index< / em > < / td > < td > )< / td >
< td > < / td >
< / tr >
< / table >
< / div > < div class = "memdoc" >
< p > Copy ourselves to the given CPU index; will overwrite all data in the index instance < / p >
2019-05-28 22:17:22 +08:00
< p > Definition at line < a class = "el" href = "GpuIndexFlat_8cu_source.html#l00302" > 302< / a > of file < a class = "el" href = "GpuIndexFlat_8cu_source.html" > GpuIndexFlat.cu< / a > .< / p >
2017-02-23 06:26:44 +08:00
< / div >
< / div >
< hr / > The documentation for this class was generated from the following files:< ul >
2019-05-28 22:17:22 +08:00
< li > /data/users/hoss/faiss/gpu/< a class = "el" href = "GpuIndexFlat_8h_source.html" > GpuIndexFlat.h< / a > < / li >
< li > /data/users/hoss/faiss/gpu/< a class = "el" href = "GpuIndexFlat_8cu_source.html" > GpuIndexFlat.cu< / a > < / li >
2017-02-23 06:26:44 +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 >