changes: since the inverse-MDCT uses input samples from the previous output, make...
[IRC.git] / Robust / src / ClassLibrary / SSJava / SSJAVA.java
index fbe5dad0d42a8df50f631bdcee68e336a1b66412..ebb3e41ac0e3c4884b3f7f6baee69dad13607fe0 100644 (file)
@@ -22,7 +22,7 @@ public class SSJAVA {
         throw new Error("Array initilizatiion failed to assign to all of elements.");
       }
       for (int idx2 = 0; idx2 < size_2; idx2++) {
-        if (array[idx1][idx2].length != size_2) {
+        if (array[idx1][idx2].length != size_3) {
           throw new Error("Array initilizatiion failed to assign to all of elements.");
         }
         for (int idx3 = 0; idx3 < size_3; idx3++) {
@@ -31,7 +31,7 @@ public class SSJAVA {
       }
     }
   }
-
+  
   static void arrayinit(float array[][], int size_1, int size_2, float value) {
 
     for (int idx1 = 0; idx1 < size_1; idx1++) {
@@ -43,5 +43,18 @@ public class SSJAVA {
       }
     }
   }
+  
+
+  static void arraycopy(float array[][], float src[][], int size_1, int size_2) {
+
+    for (int idx1 = 0; idx1 < size_1; idx1++) {
+      if (array[idx1].length != size_2 || src[idx1].length != size_2) {
+        throw new Error("Array initilizatiion failed to assign to all of elements.");
+      }
+      for (int idx2 = 0; idx2 < size_2; idx2++) {
+        array[idx1][idx2] = src[idx1][idx2];
+      }
+    }
+  }
 
 }