test_class.declarator: log = LoggerFactory.getLogger(AlgebraUtilsTest.class)
test_class.modifier: private static final
test_class.original_string: private static final Logger log = LoggerFactory.getLogger(AlgebraUtilsTest.class);
test_class.type: Logger
test_class.var_name: log
test_class.file: contrib/src/test/java/macrobase/util/AlgebraUtilsTest.java
test_class.identifier: AlgebraUtilsTest
test_case.body: @Test
      public void testFlattenMatrixByColumns() {
          double[][] matrixContents = {
                  {1, 2, 3},
                  {4, 5, 6},
          };
          double[] flattenedMatrixContents = {
                  1, 4, 2, 5, 3, 6,
          };
  
          RealMatrix matrix = new BlockRealMatrix(matrixContents);
          RealVector vectorizedMatrix = AlgebraUtils.flattenMatrixByColumns(matrix);
          assertEquals(new ArrayRealVector(flattenedMatrixContents), vectorizedMatrix);
      }
test_case.class_method_signature: AlgebraUtilsTest.testFlattenMatrixByColumns()
test_case.full_signature: @Test public void testFlattenMatrixByColumns()
test_case.identifier: testFlattenMatrixByColumns
test_case.invocations: flattenMatrixByColumns assertEquals
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testFlattenMatrixByColumns()
focal_class.declarator: log = LoggerFactory.getLogger(AlgebraUtils.class)
focal_class.modifier: private static final
focal_class.original_string: private static final Logger log = LoggerFactory.getLogger(AlgebraUtils.class);
focal_class.type: Logger
focal_class.var_name: log
focal_class.file: contrib/src/main/java/macrobase/util/AlgebraUtils.java
focal_class.identifier: AlgebraUtils
focal_class.class_method_signature: AlgebraUtils.invertMatrix(RealMatrix matrix)
focal_class.full_signature: public static RealMatrix invertMatrix(RealMatrix matrix)
focal_class.identifier: invertMatrix
focal_class.modifiers: public static
focal_class.parameters: (RealMatrix matrix)
focal_class.return: RealMatrix
focal_class.signature: RealMatrix invertMatrix(RealMatrix matrix)
focal_class.class_method_signature: AlgebraUtils.flattenMatrixByColumns(RealMatrix matrix)
focal_class.full_signature: public static RealVector flattenMatrixByColumns(RealMatrix matrix)
focal_class.identifier: flattenMatrixByColumns
focal_class.modifiers: public static
focal_class.parameters: (RealMatrix matrix)
focal_class.return: RealVector
focal_class.signature: RealVector flattenMatrixByColumns(RealMatrix matrix)
focal_class.class_method_signature: AlgebraUtils.reshapeMatrixByColumns(RealVector vector, RealMatrix shapeMatrix)
focal_class.full_signature: public static RealMatrix reshapeMatrixByColumns(RealVector vector, RealMatrix shapeMatrix)
focal_class.identifier: reshapeMatrixByColumns
focal_class.modifiers: public static
focal_class.parameters: (RealVector vector, RealMatrix shapeMatrix)
focal_class.return: RealMatrix
focal_class.signature: RealMatrix reshapeMatrixByColumns(RealVector vector, RealMatrix shapeMatrix)
focal_class.class_method_signature: AlgebraUtils.reshapeMatrixByColumns(RealVector vector, int width, int height)
focal_class.full_signature: public static RealMatrix reshapeMatrixByColumns(RealVector vector, int width, int height)
focal_class.identifier: reshapeMatrixByColumns
focal_class.modifiers: public static
focal_class.parameters: (RealVector vector, int width, int height)
focal_class.return: RealMatrix
focal_class.signature: RealMatrix reshapeMatrixByColumns(RealVector vector, int width, int height)
focal_class.class_method_signature: AlgebraUtils.getBoundingBox(List<Datum> data)
focal_class.full_signature: public static double[][] getBoundingBox(List<Datum> data)
focal_class.identifier: getBoundingBox
focal_class.modifiers: public static
focal_class.parameters: (List<Datum> data)
focal_class.return: double[][]
focal_class.signature: double[][] getBoundingBox(List<Datum> data)
focal_method.body: public static RealVector flattenMatrixByColumns(RealMatrix matrix) {
          int m = matrix.getColumnDimension(); // returns the width of the matrix, i.e. number of columns.
          int n = matrix.getRowDimension(); // returns the height of the matrix, i.e. number of rows.
          RealVector vector = matrix.getColumnVector(0);
          for (int i = 1; i < m; i++) {
              vector = vector.append(matrix.getColumnVector(i));
          }
          return vector;
      }
focal_method.class_method_signature: AlgebraUtils.flattenMatrixByColumns(RealMatrix matrix)
focal_method.full_signature: public static RealVector flattenMatrixByColumns(RealMatrix matrix)
focal_method.identifier: flattenMatrixByColumns
focal_method.invocations: getColumnDimension getRowDimension getColumnVector append getColumnVector
focal_method.modifiers: public static
focal_method.parameters: (RealMatrix matrix)
focal_method.return: RealVector
focal_method.signature: RealVector flattenMatrixByColumns(RealMatrix matrix)