title: Java slicing multidimensional array library
body: <p>Is there a Java array library which supports slicing? I just need regular <strong>n x n' x n'' x ...</strong> arrays and either taking one slice from given dimension or whole dimension (i.e. no need for ranges).</p>
  
  <p>Notes (read replies to potential comments):</p>
  
  <ul>
  <li>I know that regular Java arrays are not supporting it and I'm not willing to write my own slicing library.</li>
  <li>Using <code>Collection</code> (suggested in comment to <a href="https://stackoverflow.com/questions/13898504/how-to-slice-a-2-d-java-array">other question</a>) based shifts the problem</li>
  <li>Using <a href="http://docs.oracle.com/javase/6/docs/api/java/lang/System.html#arraycopy%28java.lang.Object,%20int,%20java.lang.Object,%20int,%20int%29" rel="nofollow noreferrer">System.arraycopy</a> does not help in high dimension as it does not lower the nesting of loops significantly</li>
  <li>This is (sort of - long story) numerical problem so OO approach for inner code is not necessary the best one - the most usable abstraction boils down to slicing anyway</li>
  <li>I would prefer R/W view from slice (if it will only be R/O copy I won't complain though)</li>
  </ul>
  
  <p><strong>EDIT:</strong> Unfortunaly I need to store objects inside array - not only <code>double</code>'s.</p>