MatlabNumberArray(Class<L> linearArrayType,L real,L imag,int[] dimensions){
  _real=linearArrayType.cast(real);
  _imag=linearArrayType.cast(imag);
  _linearLength=Array.getLength(real);
  _dimensions=dimensions;
  _baseComponentType=linearArrayType.getComponentType();
  _linearArrayType=linearArrayType;
  _outputArrayType=(Class<T>)ArrayUtils.getArrayClass(_baseComponentType,dimensions.length);
}

MatlabNumberArray ( Class < L > linearArrayType , L real , L imag , int [ ] dimensions ) { _real = linearArrayType . cast ( real ) ; _imag = linearArrayType . cast ( imag ) ; _linearLength = Array . getLength ( real ) ; _dimensions = dimensions ; _baseComponentType = linearArrayType . getComponentType ( ) ; _linearArrayType = linearArrayType ; _outputArrayType = ( Class < T > ) ArrayUtils . getArrayClass ( _baseComponentType , dimensions . length ) ; }
data from matlab . provided as the linear arrays and dimensions .
