Ejemplo n.º 1
0
        public void Transpose()
        {
            Matrix22D m = new Matrix22D(columnMajor, MatrixOrder.ColumnMajor);

            m.Transpose();
            Matrix22D mt = new Matrix22D(rowMajor, MatrixOrder.ColumnMajor);

            Assert.AreEqual(mt, m);
            Matrix22D i = Matrix22D.Identity;

            i.Transpose();
            Assert.AreEqual(Matrix22D.Identity, i);
        }
Ejemplo n.º 2
0
 public void Transpose()
 {
     Matrix22D m = new Matrix22D(columnMajor, MatrixOrder.ColumnMajor);
       m.Transpose();
       Matrix22D mt = new Matrix22D(rowMajor, MatrixOrder.ColumnMajor);
       Assert.AreEqual(mt, m);
       Matrix22D i = Matrix22D.Identity;
       i.Transpose();
       Assert.AreEqual(Matrix22D.Identity, i);
 }