public static Kernel2D_F32 wrap(float data[], int width, int offset) {
		if (width % 2 == 0 && width <= 0 && width * width > data.length)
			throw new IllegalArgumentException("invalid width");

		Kernel2D_F32 ret = new Kernel2D_F32();
		ret.data = data;
		ret.width = width;
		ret.offset = offset;

		return ret;
	}
public static Kernel2D_F32 wrap ( float data [ ] , int width , int offset ) { if ( width % 2 == 0 && width <= 0 && width * width > data . length ) throw new IllegalArgumentException ( "invalid width" ) ; Kernel2D_F32 ret = new Kernel2D_F32 ( ) ; ret . data = data ; ret . width = width ; ret . offset = offset ; return ret ; }
Creates a kernel whose elements are the specified data array and has
the specified width.

@param data  The array who will be the kernel's data.  Reference is saved.
@param width The kernel's width.
@param offset Kernel origin's offset from element 0.
@return A new kernel.