Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/KomputeProject/kompute
/ vector
Method
vector
src/include/kompute/Tensor.hpp:323–326 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
321
T* data() { return (T*)this->mRawData; }
322
323
std::vector<T> vector()
324
{
325
return { (T*)this->mRawData, ((T*)this->mRawData) + this->size() };
326
}
327
328
T& operator[](int index) { return *(((T*)this->mRawData) + index); }
329
Callers
nothing calls this directly
Calls
1
size
Method · 0.80
Tested by
no test coverage detected