41 typedef Real ValueType;
49 DoKMatrix(
const DoKMatrix&) =
delete;
51 ~DoKMatrix()
override =
default;
60 bool setNNZ(Int32 row, Int32 col,
const ValueType& value)
62 m_data.set(row, col, value);
72 ValueType
addNNZ(Int32 row, Int32 col,
const ValueType& value)
75 return m_data.add(row, col, value);
81 void compact() { m_data.
compact(); }
83 DoKLocalMatrixT<ValueType>& data() {
return m_data; }
85 DoKLocalMatrixT<ValueType>& data()
const {
return m_data; }
87 void dump() { m_data.dump(); }
92 m_need_update = Arccore::MessagePassing::mpAllReduce(
distribution().parallelMng(), Arccore::MessagePassing::ReduceSum, m_need_update);
98 DoKDistributor dist(redist.commPlan());
99 DoKLocalMatrixT<ValueType> new_data;
101 dist.distribute(m_data, new_data);
104 m_need_update =
false;
109 mutable DoKLocalMatrixT<ValueType> m_data;
110 bool m_need_update =
true;