MCPcopy Create free account
hub / github.com/SuprDewd/CompetitiveProgramming / operator -

Method operator -

code/data-structures/matrix.cpp:15–17  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13 matrix<T> res(*this); rep(i,0,cnt)
14 res.data[i] += other.data[i]; return res; }
15 matrix<T> operator -(const matrix& other) {
16 matrix<T> res(*this); rep(i,0,cnt)
17 res.data[i] -= other.data[i]; return res; }
18 matrix<T> operator *(T other) {
19 matrix<T> res(*this);
20 rep(i,0,cnt) res.data[i] *= other; return res; }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected