public VectorMatrixView(IMatrix matrix) {
		if (matrix.getColsCount() != 1 || matrix.getRowsCount() !=1) {
			throw new IncompatibleOperandException(
					"Can not convert matrix to vector.");
		}
		this.matrix = matrix;
		dimension = matrix.getColsCount() == 1 ? 
				matrix.getRowsCount() : matrix.getColsCount();
		rowMatrix = matrix.getRowsCount() == 1 ? true : false;
	}