Sha256: 7796dbdfaa6be6815b0801f878abf24765428dc446d9d36afdc1bff1714d9f8d

Contents?: true

Size: 362 Bytes

Versions: 9

Compression:

Stored size: 362 Bytes

Contents

static VALUE
<%=c_func(1)%>(VALUE mod, VALUE prefix)
{
    long len;

    if (TYPE(prefix) != T_STRING) {
        rb_raise(rb_eTypeError,"argument must be string");
    }
    if (blas_prefix) {
        free(blas_prefix);
    }
    len = RSTRING_LEN(prefix);
    blas_prefix = malloc(len+1);
    strcpy(blas_prefix, StringValueCStr(prefix));
    return prefix;
}

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
numo-linalg-0.1.7 ext/numo/linalg/blas/tmpl/set_prefix.c
numo-linalg-0.1.6 ext/numo/linalg/blas/tmpl/set_prefix.c
numo-linalg-0.1.5 ext/numo/linalg/blas/tmpl/set_prefix.c
numo-linalg-0.1.4 ext/numo/linalg/blas/tmpl/set_prefix.c
numo-linalg-0.1.3 ext/numo/linalg/blas/tmpl/set_prefix.c
numo-linalg-0.1.2 ext/numo/linalg/blas/tmpl/set_prefix.c
numo-linalg-0.1.1 ext/numo/linalg/blas/tmpl/set_prefix.c
numo-linalg-0.1.0 ext/numo/linalg/blas/tmpl/set_prefix.c
numo-linalg-0.0.1 ext/numo/linalg/blas/tmpl/set_prefix.c