public CreateMatrix ( int x, int y ) : IMatrix |
||
x | int | |
y | int | |
return | IMatrix |
public IMatrix<bool> CreateMatrix(int x, int y)
{
return new SparseBooleanMatrix();
}
[Test()] public void TestCreateMatrix() { var matrix = new SparseBooleanMatrix(); var other_matrix = matrix.CreateMatrix(2, 2); Assert.IsInstanceOf(matrix.GetType(), other_matrix); }