]> www.ginac.de Git - ginac.git/blobdiff - ginac/matrix.h
In power::expand_add(), don't reserve excess monomial sizes.
[ginac.git] / ginac / matrix.h
index f880e1777c0553c22d6701a62c7476fe2bcaefbb..725ea2bb99b0e26a6fe61b6e5865ed823ca1df34 100644 (file)
@@ -3,7 +3,7 @@
  *  Interface to symbolic matrices */
 
 /*
- *  GiNaC Copyright (C) 1999-2010 Johannes Gutenberg University Mainz, Germany
+ *  GiNaC Copyright (C) 1999-2015 Johannes Gutenberg University Mainz, Germany
  *
  *  This program is free software; you can redistribute it and/or modify
  *  it under the terms of the GNU General Public License as published by
@@ -98,17 +98,19 @@ class matrix : public basic
        // other constructors
 public:
        matrix(unsigned r, unsigned c);
-       matrix(unsigned r, unsigned c, const exvector & m2);
        matrix(unsigned r, unsigned c, const lst & l);
 
-       // First step of initialization of matrix with a comma-separated seqeuence
+       // First step of initialization of matrix with a comma-separated sequence
        // of expressions. Subsequent steps are handled by matrix_init<>::operator,().
        matrix_init<ex, exvector::iterator> operator=(const ex & x)
        {
                m[0] = x;
                return matrix_init<ex, exvector::iterator>(++m.begin());
        }
-       
+
+protected:
+       matrix(unsigned r, unsigned c, const exvector & m2);
+       matrix(unsigned r, unsigned c, exvector && m2);
        // functions overriding virtual functions from base classes
 public:
        size_t nops() const;