reference, declaration → definition definition → references, declarations, derived classes, virtual overrides reference to multiple definitions → definitions unreferenced |
141 : Rows(M.Rows), Cols(M.Cols), 142 Data(std::make_unique<PBQPNum []>(Rows * Cols)) { 143 std::copy(M.Data.get(), M.Data.get() + (Rows * Cols), Data.get()); 148 : Rows(M.Rows), Cols(M.Cols), Data(std::move(M.Data)) { 149 M.Rows = M.Cols = 0; 154 assert(Rows != 0 && Cols != 0 && Data && "Invalid matrix"); 155 if (Rows != M.Rows || Cols != M.Cols) 155 if (Rows != M.Rows || Cols != M.Cols) 157 return std::equal(Data.get(), Data.get() + (Rows * Cols), M.Data.get()); 162 assert(Rows != 0 && Cols != 0 && Data && "Invalid matrix"); 163 return Rows; 168 assert(Rows != 0 && Cols != 0 && Data && "Invalid matrix"); 174 assert(Rows != 0 && Cols != 0 && Data && "Invalid matrix"); 175 assert(R < Rows && "Row out of bounds."); 181 assert(Rows != 0 && Cols != 0 && Data && "Invalid matrix"); 182 assert(R < Rows && "Row out of bounds."); 188 assert(Rows != 0 && Cols != 0 && Data && "Invalid matrix"); 197 assert(Rows != 0 && Cols != 0 && Data && "Invalid matrix"); 198 Vector V(Rows); 199 for (unsigned R = 0; R < Rows; ++R) 206 assert(Rows != 0 && Cols != 0 && Data && "Invalid matrix"); 207 Matrix M(Cols, Rows); 208 for (unsigned r = 0; r < Rows; ++r) 216 assert(Rows != 0 && Cols != 0 && Data && "Invalid matrix"); 217 assert(Rows == M.Rows && Cols == M.Cols && 217 assert(Rows == M.Rows && Cols == M.Cols && 219 std::transform(Data.get(), Data.get() + (Rows * Cols), M.Data.get(), 225 assert(Rows != 0 && Cols != 0 && Data && "Invalid matrix"); 240 reinterpret_cast<unsigned*>(M.Data.get() + (M.Rows * M.Cols)); 241 return hash_combine(M.Rows, M.Cols, hash_combine_range(MBegin, MEnd));