Sha256: 924cccd1e86bbaa1ae4dfbab9ea5829f7a2f788ab4d35751accc13c434a6f218

Contents?: true

Size: 185 Bytes

Versions: 3

Compression:

Stored size: 185 Bytes

Contents

static void
check_1d(VALUE v)
{
    narray_t *na;
    GetNArray(v,na);
    if (NA_NDIM(na) != 1) {
        rb_raise(nary_eShapeError, "argument should be 1-dimensional array");
    }
}

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
numo-gsl-0.1.2 ext/numo/gsl/fit/tmpl/check_1d.c
numo-gsl-0.1.1 ext/numo/gsl/fit/tmpl/check_1d.c
numo-gsl-0.1.0 ext/numo/gsl/fit/tmpl/check_1d.c