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

Method operator *

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

Source from the content-addressed store, hash-verified

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; }
21 matrix<T> operator *(const matrix& other) {
22 matrix<T> res(rows, other.cols);
23 rep(i,0,rows) rep(k,0,cols) rep(j,0,other.cols)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected