MCPcopy Create free account
hub / github.com/PX4/eigen / construct

Method construct

Eigen/src/SparseCore/SparseRef.h:98–104  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

96
97 template<typename Expression>
98 void construct(Expression& expr)
99 {
100 if(expr.outerIndexPtr()==0)
101 ::new (static_cast<Base*>(this)) Base(expr.size(), expr.nonZeros(), expr.innerIndexPtr(), expr.valuePtr());
102 else
103 ::new (static_cast<Base*>(this)) Base(expr.rows(), expr.cols(), expr.nonZeros(), expr.outerIndexPtr(), expr.innerIndexPtr(), expr.valuePtr(), expr.innerNonZeroPtr());
104 }
105};
106
107} // namespace internal

Callers

nothing calls this directly

Calls 8

outerIndexPtrMethod · 0.45
sizeMethod · 0.45
nonZerosMethod · 0.45
innerIndexPtrMethod · 0.45
valuePtrMethod · 0.45
rowsMethod · 0.45
colsMethod · 0.45
innerNonZeroPtrMethod · 0.45

Tested by

no test coverage detected