/* a method to arrange or create a Vector from the given elements */
module.exports = function arrange(shape,elems_arr) {
    const calc_size = require('./calc_size');
    const fill = require('./fill');
    const form_chunks = require('./form_chunks');
    let base_arr = elems_arr ? elems_arr : fill(Math.floor(calc_size(shape)),"linear"),
    curr_arr = [];
    for(let i=shape.length - 1; i > 0; i--){
        let size = shape[i],no=i>1 ? shape[i-1]*shape[i-2] : shape[i-1];
        curr_arr = form_chunks(size,no,base_arr);
        base_arr = curr_arr;
    }
    return base_arr;
}
@@ -299,19 +299,8 @@
 ill(
-Math.floor(
 calc
@@ -311,17 +311,16 @@
 e(shape)
-)
 ,%22linear
@@ -567,8 +567,9 @@
 e_arr;%0A%7D
+%0A

Update arrange.js