Return-Path:
X-Original-To: apmail-commons-commits-archive@minotaur.apache.org
Delivered-To: apmail-commons-commits-archive@minotaur.apache.org
Received: from mail.apache.org (hermes.apache.org [140.211.11.3])
by minotaur.apache.org (Postfix) with SMTP id D81457855
for ;
Tue, 6 Sep 2011 20:20:01 +0000 (UTC)
Received: (qmail 23679 invoked by uid 500); 6 Sep 2011 20:20:01 -0000
Delivered-To: apmail-commons-commits-archive@commons.apache.org
Received: (qmail 23562 invoked by uid 500); 6 Sep 2011 20:20:00 -0000
Mailing-List: contact commits-help@commons.apache.org; run by ezmlm
Precedence: bulk
List-Help:
List-Unsubscribe:
List-Post:
List-Id:
Reply-To: dev@commons.apache.org
Delivered-To: mailing list commits@commons.apache.org
Received: (qmail 23555 invoked by uid 99); 6 Sep 2011 20:20:00 -0000
Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136)
by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 Sep 2011 20:20:00 +0000
X-ASF-Spam-Status: No, hits=-2000.0 required=5.0
tests=ALL_TRUSTED
X-Spam-Check-By: apache.org
Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4)
by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 Sep 2011 20:19:58 +0000
Received: from eris.apache.org (localhost [127.0.0.1])
by eris.apache.org (Postfix) with ESMTP id 567FD23888FE
for ; Tue, 6 Sep 2011 20:19:38 +0000 (UTC)
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Subject: svn commit: r1165822 - in /commons/proper/math/trunk/src:
main/java/org/apache/commons/math/linear/
test/java/org/apache/commons/math/linear/
Date: Tue, 06 Sep 2011 20:19:37 -0000
To: commits@commons.apache.org
From: luc@apache.org
X-Mailer: svnmailer-1.0.8
Message-Id: <20110906201938.567FD23888FE@eris.apache.org>
Author: luc
Date: Tue Sep 6 20:19:37 2011
New Revision: 1165822
URL: http://svn.apache.org/viewvc?rev=1165822&view=rev
Log:
removed MathUserException from linear package
Modified:
commons/proper/math/trunk/src/main/java/org/apache/commons/math/linear/FieldMatrix.java
commons/proper/math/trunk/src/main/java/org/apache/commons/math/linear/FieldMatrixChangingVisitor.java
commons/proper/math/trunk/src/main/java/org/apache/commons/math/linear/FieldMatrixPreservingVisitor.java
commons/proper/math/trunk/src/main/java/org/apache/commons/math/linear/RealMatrix.java
commons/proper/math/trunk/src/main/java/org/apache/commons/math/linear/RealMatrixChangingVisitor.java
commons/proper/math/trunk/src/main/java/org/apache/commons/math/linear/RealMatrixPreservingVisitor.java
commons/proper/math/trunk/src/main/java/org/apache/commons/math/linear/RealVector.java
commons/proper/math/trunk/src/test/java/org/apache/commons/math/linear/Array2DRowRealMatrixTest.java
commons/proper/math/trunk/src/test/java/org/apache/commons/math/linear/BlockFieldMatrixTest.java
commons/proper/math/trunk/src/test/java/org/apache/commons/math/linear/BlockRealMatrixTest.java
commons/proper/math/trunk/src/test/java/org/apache/commons/math/linear/FieldMatrixImplTest.java
commons/proper/math/trunk/src/test/java/org/apache/commons/math/linear/QRDecompositionImplTest.java
commons/proper/math/trunk/src/test/java/org/apache/commons/math/linear/QRSolverTest.java
Modified: commons/proper/math/trunk/src/main/java/org/apache/commons/math/linear/FieldMatrix.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/main/java/org/apache/commons/math/linear/FieldMatrix.java?rev=1165822&r1=1165821&r2=1165822&view=diff
==============================================================================
--- commons/proper/math/trunk/src/main/java/org/apache/commons/math/linear/FieldMatrix.java (original)
+++ commons/proper/math/trunk/src/main/java/org/apache/commons/math/linear/FieldMatrix.java Tue Sep 6 20:19:37 2011
@@ -481,8 +481,6 @@ public interface FieldMatrix
* @param visitor visitor used to process all matrix entries
- * @throws org.apache.commons.math.exception.MathUserException if the visitor
- * cannot process an entry.
* @see #walkInRowOrder(FieldMatrixPreservingVisitor)
* @see #walkInRowOrder(FieldMatrixChangingVisitor, int, int, int, int)
* @see #walkInRowOrder(FieldMatrixPreservingVisitor, int, int, int, int)
@@ -505,8 +503,6 @@ public interface FieldMatrix
* @param visitor visitor used to process all matrix entries
- * @throws org.apache.commons.math.exception.MathUserException if the visitor
- * cannot process an entry.
* @see #walkInRowOrder(FieldMatrixChangingVisitor)
* @see #walkInRowOrder(FieldMatrixChangingVisitor, int, int, int, int)
* @see #walkInRowOrder(FieldMatrixPreservingVisitor, int, int, int, int)
@@ -533,8 +529,6 @@ public interface FieldMatrix
* @param visitor visitor used to process all matrix entries
- * @throws org.apache.commons.math.exception.MathUserException if the visitor
- * cannot process an entry.
* @see #walkInRowOrder(FieldMatrixChangingVisitor)
* @see #walkInRowOrder(FieldMatrixPreservingVisitor)
* @see #walkInRowOrder(FieldMatrixChangingVisitor, int, int, int, int)
@@ -615,8 +605,6 @@ public interface FieldMatrix
* @param visitor visitor used to process all matrix entries
- * @throws org.apache.commons.math.exception.MathUserException if the visitor
- * cannot process an entry.
* @see #walkInRowOrder(FieldMatrixChangingVisitor)
* @see #walkInRowOrder(FieldMatrixPreservingVisitor)
* @see #walkInRowOrder(FieldMatrixChangingVisitor, int, int, int, int)
@@ -643,8 +631,6 @@ public interface FieldMatrixThe fastest walking order depends on the exact matrix class. It may be
* different from traditional row or column orders.
* @param visitor visitor used to process all matrix entries
- * @throws org.apache.commons.math.exception.MathUserException if the visitor
- * cannot process an entry.
* @see #walkInRowOrder(FieldMatrixChangingVisitor)
* @see #walkInRowOrder(FieldMatrixPreservingVisitor)
* @see #walkInRowOrder(FieldMatrixChangingVisitor, int, int, int, int)
@@ -723,8 +705,6 @@ public interface FieldMatrixThe fastest walking order depends on the exact matrix class. It may be
* different from traditional row or column orders.
* @param visitor visitor used to process all matrix entries
- * @throws org.apache.commons.math.exception.MathUserException if the visitor
- * cannot process an entry.
* @see #walkInRowOrder(FieldMatrixChangingVisitor)
* @see #walkInRowOrder(FieldMatrixPreservingVisitor)
* @see #walkInRowOrder(FieldMatrixChangingVisitor, int, int, int, int)
@@ -750,8 +730,6 @@ public interface FieldMatrix
* @param visitor visitor used to process all matrix entries
- * @throws org.apache.commons.math.exception.MathUserException if the visitor
- * cannot process an entry.
* @see #walkInRowOrder(RealMatrixPreservingVisitor)
* @see #walkInRowOrder(RealMatrixChangingVisitor, int, int, int, int)
* @see #walkInRowOrder(RealMatrixPreservingVisitor, int, int, int, int)
@@ -510,8 +508,6 @@ public interface RealMatrix extends AnyM
* of a row from left to right before going to the leftmost element
* of the next row.
* @param visitor visitor used to process all matrix entries
- * @throws org.apache.commons.math.exception.MathUserException if the visitor
- * cannot process an entry.
* @see #walkInRowOrder(RealMatrixChangingVisitor)
* @see #walkInRowOrder(RealMatrixChangingVisitor, int, int, int, int)
* @see #walkInRowOrder(RealMatrixPreservingVisitor, int, int, int, int)
@@ -538,8 +534,6 @@ public interface RealMatrix extends AnyM
* @param endRow Final row index (inclusive)
* @param startColumn Initial column index
* @param endColumn Final column index
- * @throws org.apache.commons.math.exception.MathUserException if the visitor
- * cannot process an entry.
* @throws org.apache.commons.math.exception.OutOfRangeException if
* the indices are not valid.
* @see #walkInRowOrder(RealMatrixChangingVisitor)
@@ -569,8 +563,6 @@ public interface RealMatrix extends AnyM
* @param endRow Final row index (inclusive)
* @param startColumn Initial column index
* @param endColumn Final column index
- * @throws org.apache.commons.math.exception.MathUserException if the visitor
- * cannot process an entry.
* @throws org.apache.commons.math.exception.OutOfRangeException if
* the indices are not valid.
* @see #walkInRowOrder(RealMatrixChangingVisitor)
@@ -596,8 +588,6 @@ public interface RealMatrix extends AnyM
* of a column from top to bottom before going to the topmost element
* of the next column.
* @param visitor visitor used to process all matrix entries
- * @throws org.apache.commons.math.exception.MathUserException if the visitor
- * cannot process an entry.
* @see #walkInRowOrder(RealMatrixChangingVisitor)
* @see #walkInRowOrder(RealMatrixPreservingVisitor)
* @see #walkInRowOrder(RealMatrixChangingVisitor, int, int, int, int)
@@ -620,8 +610,6 @@ public interface RealMatrix extends AnyM
* of a column from top to bottom before going to the topmost element
* of the next column.
* @param visitor visitor used to process all matrix entries
- * @throws org.apache.commons.math.exception.MathUserException if the visitor
- * cannot process an entry.
* @see #walkInRowOrder(RealMatrixChangingVisitor)
* @see #walkInRowOrder(RealMatrixPreservingVisitor)
* @see #walkInRowOrder(RealMatrixChangingVisitor, int, int, int, int)
@@ -648,8 +636,6 @@ public interface RealMatrix extends AnyM
* @param endRow Final row index (inclusive)
* @param startColumn Initial column index
* @param endColumn Final column index
- * @throws org.apache.commons.math.exception.MathUserException if the visitor
- * cannot process an entry.
* @throws org.apache.commons.math.exception.OutOfRangeException if
* the indices are not valid.
* @see #walkInRowOrder(RealMatrixChangingVisitor)
@@ -679,8 +665,6 @@ public interface RealMatrix extends AnyM
* @param endRow Final row index (inclusive)
* @param startColumn Initial column index
* @param endColumn Final column index
- * @throws org.apache.commons.math.exception.MathUserException if the visitor
- * cannot process an entry.
* @throws org.apache.commons.math.exception.OutOfRangeException if
* the indices are not valid.
* @see #walkInRowOrder(RealMatrixChangingVisitor)
@@ -705,8 +689,6 @@ public interface RealMatrix extends AnyM
* The fastest walking order depends on the exact matrix class. It may be
* different from traditional row or column orders.
* @param visitor visitor used to process all matrix entries
- * @throws org.apache.commons.math.exception.MathUserException if the visitor
- * cannot process an entry.
* @see #walkInRowOrder(RealMatrixChangingVisitor)
* @see #walkInRowOrder(RealMatrixPreservingVisitor)
* @see #walkInRowOrder(RealMatrixChangingVisitor, int, int, int, int)
@@ -728,8 +710,6 @@ public interface RealMatrix extends AnyM
* The fastest walking order depends on the exact matrix class. It may be
* different from traditional row or column orders.
* @param visitor visitor used to process all matrix entries
- * @throws org.apache.commons.math.exception.MathUserException if the visitor
- * cannot process an entry.
* @see #walkInRowOrder(RealMatrixChangingVisitor)
* @see #walkInRowOrder(RealMatrixPreservingVisitor)
* @see #walkInRowOrder(RealMatrixChangingVisitor, int, int, int, int)
@@ -755,8 +735,6 @@ public interface RealMatrix extends AnyM
* @param endRow Final row index (inclusive)
* @param startColumn Initial column index
* @param endColumn Final column index (inclusive)
- * @throws org.apache.commons.math.exception.MathUserException if the visitor
- * cannot process an entry.
* @throws org.apache.commons.math.exception.OutOfRangeException if
* the indices are not valid.
* @see #walkInRowOrder(RealMatrixChangingVisitor)
@@ -785,8 +763,6 @@ public interface RealMatrix extends AnyM
* @param endRow Final row index (inclusive)
* @param startColumn Initial column index
* @param endColumn Final column index (inclusive)
- * @throws org.apache.commons.math.exception.MathUserException if the visitor
- * cannot process an entry.
* @throws org.apache.commons.math.exception.OutOfRangeException if the
* indices are not valid.
* @see #walkInRowOrder(RealMatrixChangingVisitor)
Modified: commons/proper/math/trunk/src/main/java/org/apache/commons/math/linear/RealMatrixChangingVisitor.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/main/java/org/apache/commons/math/linear/RealMatrixChangingVisitor.java?rev=1165822&r1=1165821&r2=1165822&view=diff
==============================================================================
--- commons/proper/math/trunk/src/main/java/org/apache/commons/math/linear/RealMatrixChangingVisitor.java (original)
+++ commons/proper/math/trunk/src/main/java/org/apache/commons/math/linear/RealMatrixChangingVisitor.java Tue Sep 6 20:19:37 2011
@@ -44,8 +44,6 @@ public interface RealMatrixChangingVisit
* @param column column index of the entry
* @param value current value of the entry
* @return the new value to be set for the entry
- * @throws org.apache.commons.math.exception.MathUserException if the visitor
- * cannot process an entry.
*/
double visit(int row, int column, double value);
Modified: commons/proper/math/trunk/src/main/java/org/apache/commons/math/linear/RealMatrixPreservingVisitor.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/main/java/org/apache/commons/math/linear/RealMatrixPreservingVisitor.java?rev=1165822&r1=1165821&r2=1165822&view=diff
==============================================================================
--- commons/proper/math/trunk/src/main/java/org/apache/commons/math/linear/RealMatrixPreservingVisitor.java (original)
+++ commons/proper/math/trunk/src/main/java/org/apache/commons/math/linear/RealMatrixPreservingVisitor.java Tue Sep 6 20:19:37 2011
@@ -43,8 +43,6 @@ public interface RealMatrixPreservingVis
* @param row row index of the entry
* @param column column index of the entry
* @param value current value of the entry
- * @throws org.apache.commons.math.exception.MathUserException if the visitor
- * cannot process an entry.
*/
void visit(int row, int column, double value);
Modified: commons/proper/math/trunk/src/main/java/org/apache/commons/math/linear/RealVector.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/main/java/org/apache/commons/math/linear/RealVector.java?rev=1165822&r1=1165821&r2=1165822&view=diff
==============================================================================
--- commons/proper/math/trunk/src/main/java/org/apache/commons/math/linear/RealVector.java (original)
+++ commons/proper/math/trunk/src/main/java/org/apache/commons/math/linear/RealVector.java Tue Sep 6 20:19:37 2011
@@ -731,8 +731,6 @@ public abstract class RealVector {
*
* @param function Function to apply to each entry.
* @return a new vector.
- * @throws org.apache.commons.math.exception.MathUserException
- * if the function throws it.
*/
public RealVector map(UnivariateRealFunction function) {
return copy().mapToSelf(function);
@@ -750,8 +748,6 @@ public abstract class RealVector {
*
* @param function Function to apply to each entry.
* @return a reference to this vector.
- * @throws org.apache.commons.math.exception.MathUserException
- * if the function throws it.
*/
public RealVector mapToSelf(UnivariateRealFunction function) {
Iterator it = (function.value(0) == 0) ? sparseIterator() : iterator();
Modified: commons/proper/math/trunk/src/test/java/org/apache/commons/math/linear/Array2DRowRealMatrixTest.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/test/java/org/apache/commons/math/linear/Array2DRowRealMatrixTest.java?rev=1165822&r1=1165821&r2=1165822&view=diff
==============================================================================
--- commons/proper/math/trunk/src/test/java/org/apache/commons/math/linear/Array2DRowRealMatrixTest.java (original)
+++ commons/proper/math/trunk/src/test/java/org/apache/commons/math/linear/Array2DRowRealMatrixTest.java Tue Sep 6 20:19:37 2011
@@ -972,7 +972,7 @@ public final class Array2DRowRealMatrixT
}
@Test
- public void testWalk() throws MathUserException {
+ public void testWalk() {
int rows = 150;
int columns = 75;
Modified: commons/proper/math/trunk/src/test/java/org/apache/commons/math/linear/BlockFieldMatrixTest.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/test/java/org/apache/commons/math/linear/BlockFieldMatrixTest.java?rev=1165822&r1=1165821&r2=1165822&view=diff
==============================================================================
--- commons/proper/math/trunk/src/test/java/org/apache/commons/math/linear/BlockFieldMatrixTest.java (original)
+++ commons/proper/math/trunk/src/test/java/org/apache/commons/math/linear/BlockFieldMatrixTest.java Tue Sep 6 20:19:37 2011
@@ -1237,7 +1237,7 @@ public final class BlockFieldMatrixTest
}
@Test
- public void testWalk() throws MathUserException {
+ public void testWalk() {
int rows = 150;
int columns = 75;
Modified: commons/proper/math/trunk/src/test/java/org/apache/commons/math/linear/BlockRealMatrixTest.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/test/java/org/apache/commons/math/linear/BlockRealMatrixTest.java?rev=1165822&r1=1165821&r2=1165822&view=diff
==============================================================================
--- commons/proper/math/trunk/src/test/java/org/apache/commons/math/linear/BlockRealMatrixTest.java (original)
+++ commons/proper/math/trunk/src/test/java/org/apache/commons/math/linear/BlockRealMatrixTest.java Tue Sep 6 20:19:37 2011
@@ -1142,7 +1142,7 @@ public final class BlockRealMatrixTest {
}
@Test
- public void testWalk() throws MathUserException {
+ public void testWalk() {
int rows = 150;
int columns = 75;
Modified: commons/proper/math/trunk/src/test/java/org/apache/commons/math/linear/FieldMatrixImplTest.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/test/java/org/apache/commons/math/linear/FieldMatrixImplTest.java?rev=1165822&r1=1165821&r2=1165822&view=diff
==============================================================================
--- commons/proper/math/trunk/src/test/java/org/apache/commons/math/linear/FieldMatrixImplTest.java (original)
+++ commons/proper/math/trunk/src/test/java/org/apache/commons/math/linear/FieldMatrixImplTest.java Tue Sep 6 20:19:37 2011
@@ -964,7 +964,7 @@ public final class FieldMatrixImplTest {
}
@Test
- public void testWalk() throws MathUserException {
+ public void testWalk() {
int rows = 150;
int columns = 75;
Modified: commons/proper/math/trunk/src/test/java/org/apache/commons/math/linear/QRDecompositionImplTest.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/test/java/org/apache/commons/math/linear/QRDecompositionImplTest.java?rev=1165822&r1=1165821&r2=1165822&view=diff
==============================================================================
--- commons/proper/math/trunk/src/test/java/org/apache/commons/math/linear/QRDecompositionImplTest.java (original)
+++ commons/proper/math/trunk/src/test/java/org/apache/commons/math/linear/QRDecompositionImplTest.java Tue Sep 6 20:19:37 2011
@@ -19,7 +19,6 @@ package org.apache.commons.math.linear;
import java.util.Random;
-import org.apache.commons.math.exception.MathUserException;
import org.junit.Assert;
import org.junit.Test;
@@ -50,10 +49,9 @@ public class QRDecompositionImplTest {
private static final double normTolerance = 10e-14;
- /** test dimensions
- * @throws MathUserException */
+ /** test dimensions */
@Test
- public void testDimensions() throws MathUserException {
+ public void testDimensions() {
checkDimension(MatrixUtils.createRealMatrix(testData3x3NonSingular));
checkDimension(MatrixUtils.createRealMatrix(testData4x3));
@@ -78,10 +76,9 @@ public class QRDecompositionImplTest {
Assert.assertEquals(columns, qr.getR().getColumnDimension());
}
- /** test A = QR
- * @throws MathUserException */
+ /** test A = QR */
@Test
- public void testAEqualQR() throws MathUserException {
+ public void testAEqualQR() {
checkAEqualQR(MatrixUtils.createRealMatrix(testData3x3NonSingular));
checkAEqualQR(MatrixUtils.createRealMatrix(testData3x3Singular));
@@ -105,10 +102,9 @@ public class QRDecompositionImplTest {
Assert.assertEquals(0, norm, normTolerance);
}
- /** test the orthogonality of Q
- * @throws MathUserException */
+ /** test the orthogonality of Q */
@Test
- public void testQOrthogonal() throws MathUserException {
+ public void testQOrthogonal() {
checkQOrthogonal(MatrixUtils.createRealMatrix(testData3x3NonSingular));
checkQOrthogonal(MatrixUtils.createRealMatrix(testData3x3Singular));
@@ -135,7 +131,7 @@ public class QRDecompositionImplTest {
/** test that R is upper triangular */
@Test
- public void testRUpperTriangular() throws MathUserException {
+ public void testRUpperTriangular() {
RealMatrix matrix = MatrixUtils.createRealMatrix(testData3x3NonSingular);
checkUpperTriangular(new QRDecompositionImpl(matrix).getR());
@@ -159,7 +155,7 @@ public class QRDecompositionImplTest {
}
- private void checkUpperTriangular(RealMatrix m) throws MathUserException {
+ private void checkUpperTriangular(RealMatrix m) {
m.walkInOptimizedOrder(new DefaultRealMatrixPreservingVisitor() {
@Override
public void visit(int row, int column, double value) {
@@ -170,10 +166,9 @@ public class QRDecompositionImplTest {
});
}
- /** test that H is trapezoidal
- * @throws MathUserException */
+ /** test that H is trapezoidal */
@Test
- public void testHTrapezoidal() throws MathUserException {
+ public void testHTrapezoidal() {
RealMatrix matrix = MatrixUtils.createRealMatrix(testData3x3NonSingular);
checkTrapezoidal(new QRDecompositionImpl(matrix).getH());
@@ -197,7 +192,7 @@ public class QRDecompositionImplTest {
}
- private void checkTrapezoidal(RealMatrix m) throws MathUserException {
+ private void checkTrapezoidal(RealMatrix m) {
m.walkInOptimizedOrder(new DefaultRealMatrixPreservingVisitor() {
@Override
public void visit(int row, int column, double value) {
Modified: commons/proper/math/trunk/src/test/java/org/apache/commons/math/linear/QRSolverTest.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/test/java/org/apache/commons/math/linear/QRSolverTest.java?rev=1165822&r1=1165821&r2=1165822&view=diff
==============================================================================
--- commons/proper/math/trunk/src/test/java/org/apache/commons/math/linear/QRSolverTest.java (original)
+++ commons/proper/math/trunk/src/test/java/org/apache/commons/math/linear/QRSolverTest.java Tue Sep 6 20:19:37 2011
@@ -19,7 +19,6 @@ package org.apache.commons.math.linear;
import java.util.Random;
-import org.apache.commons.math.exception.MathUserException;
import org.apache.commons.math.exception.MathIllegalArgumentException;
import org.junit.Test;
@@ -147,7 +146,7 @@ public class QRSolverTest {
}
@Test
- public void testOverdetermined() throws MathUserException {
+ public void testOverdetermined() {
final Random r = new Random(5559252868205245l);
int p = (7 * BlockRealMatrix.BLOCK_SIZE) / 4;
int q = (5 * BlockRealMatrix.BLOCK_SIZE) / 4;
@@ -171,7 +170,7 @@ public class QRSolverTest {
}
@Test
- public void testUnderdetermined() throws MathUserException {
+ public void testUnderdetermined() {
final Random r = new Random(42185006424567123l);
int p = (5 * BlockRealMatrix.BLOCK_SIZE) / 4;
int q = (7 * BlockRealMatrix.BLOCK_SIZE) / 4;