Changeset e9c3b2 in git for kernel/intvec.cc


Ignore:
Timestamp:
Mar 15, 2011, 7:17:47 PM (12 years ago)
Author:
Oleksandr Motsak <motsak@…>
Branches:
(u'spielwiese', '0d6b7fcd9813a1ca1ed4220cfa2b104b97a0a003')
Children:
92e0ebb492f002a11e78b302b3758d32aedea17e
Parents:
1ed3466deda30d9e243b441fb4bc4e0c4729cf69
Message:
ADD: intvec: new view() method
ADD: some debug for NF strategy object
ADD: idSize

From: Oleksandr Motsak <motsak@mathematik.uni-kl.de>

git-svn-id: file:///usr/local/Singular/svn/trunk@13978 2c84dea3-7e68-4137-9b89-c4e89433aadc
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/intvec.cc

    r1ed346 re9c3b2  
    125125{
    126126  return omStrDup(ivString(1, 0, dim));
     127}
     128
     129void intvec::view () const
     130{
     131  Print ("intvec: {rows: %d, cols: %d, length: %d, Values: \n", rows(), cols(), length());
     132
     133  for (int i = 0; i < rows(); i++)
     134  {
     135    Print ("Row[%3d]:", i);
     136    for (int j = 0; j < cols(); j++)
     137      Print (" %5d", this->operator[]((i)*cols()+j) );
     138    PrintLn ();
     139  }
     140  PrintS ("}\n");
    127141}
    128142
Note: See TracChangeset for help on using the changeset viewer.