MCPcopy Create free account
hub / github.com/Singular/Singular / MinorKey

Method MinorKey

kernel/linear_algebra/Minor.cc:23–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21}
22
23MinorKey::MinorKey (const MinorKey& mk)
24{
25 _numberOfRowBlocks = mk.getNumberOfRowBlocks();
26 _numberOfColumnBlocks = mk.getNumberOfColumnBlocks();;
27
28 /* allocate memory for new entries in _rowKey and _columnKey */
29 _rowKey = (unsigned*)omAlloc(_numberOfRowBlocks*sizeof(unsigned));
30 _columnKey = (unsigned*)omAlloc(_numberOfColumnBlocks*sizeof(unsigned));
31
32 /* copying values from parameter arrays to private arrays */
33 for (int r = 0; r < _numberOfRowBlocks; r++)
34 _rowKey[r] = mk.getRowKey(r);
35 for (int c = 0; c < _numberOfColumnBlocks; c++)
36 _columnKey[c] = mk.getColumnKey(c);
37}
38
39MinorKey& MinorKey::operator=(const MinorKey& mk)
40{

Callers

nothing calls this directly

Calls 4

getNumberOfRowBlocksMethod · 0.80
getRowKeyMethod · 0.80
getColumnKeyMethod · 0.80

Tested by

no test coverage detected