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

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

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

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