MCPcopy Create free account
hub / github.com/QuEST-Kit/QuEST / getZeroVector

Function getZeroVector

tests/utils/qvector.cpp:16–20  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14 */
15
16qvector getZeroVector(size_t dim) {
17 // permit dim = 0
18
19 return qvector(dim, 0);
20}
21
22qvector getConstantVector(size_t dim, qcomp elem) {
23 DEMAND( dim >= 1 );

Callers 10

getRandomVectorFunction · 0.85
getVectorFunction · 0.85
getDiagonalsFunction · 0.85
getRefStatevecFunction · 0.85
getSumFunction · 0.85
operator *Function · 0.85
SECTIONFunction · 0.85
SECTIONFunction · 0.85
SECTIONFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected