• Liam Healy's avatar
    Redefine #'copy · 419e70d4
    Liam Healy authored
    Redefine #'copy so that it has one required argument (source) and one
    optional argument (destination).  For marrays, create a destination
    using make-marray, if one was not given, and then use the memcpy
    functions to fill the values.  For all other mobjects, copy will copy
    objects by calling one of two generic functions, #'copy-to-destination
    and #'copy-making-destination, depending on whether a destination was
    supplied.  The former is defined if a GSL _memcpy function exists.
    The latter will look for a GSL _clone function, then make a CL
    instance with the pointer returned as mpointer.  If there is no clone
    function, it will attempt to make a new object using make-load-form,
    so will fail if that method has not been defined.
    
    Added a check to defmfun that signals an error if a variable is used
    in the C arguments other than top-level that is not used in the CL
    arglist.  This should not happen and is usually an indication of a
    typo.
    419e70d4
Name
Last commit
Last update
..
bernoulli.lisp Loading commit data...
beta.lisp Loading commit data...
binomial.lisp Loading commit data...
cauchy.lisp Loading commit data...
chi-squared.lisp Loading commit data...
dirichlet.lisp Loading commit data...
discrete.lisp Loading commit data...
exponential-power.lisp Loading commit data...
exponential.lisp Loading commit data...
fdist.lisp Loading commit data...
flat.lisp Loading commit data...
gamma.lisp Loading commit data...
gaussian-bivariate.lisp Loading commit data...
gaussian-tail.lisp Loading commit data...
gaussian.lisp Loading commit data...
generators.lisp Loading commit data...
geometric.lisp Loading commit data...
gumbel1.lisp Loading commit data...
gumbel2.lisp Loading commit data...
hypergeometric.lisp Loading commit data...
landau.lisp Loading commit data...
laplace.lisp Loading commit data...
levy.lisp Loading commit data...
logarithmic.lisp Loading commit data...
logistic.lisp Loading commit data...
lognormal.lisp Loading commit data...
multinomial.lisp Loading commit data...
negative-binomial.lisp Loading commit data...
pareto.lisp Loading commit data...
poisson.lisp Loading commit data...
quasi.lisp Loading commit data...
rayleigh-tail.lisp Loading commit data...
rayleigh.lisp Loading commit data...
rng-types.lisp Loading commit data...
shuffling-sampling.lisp Loading commit data...
spherical-vector.lisp Loading commit data...
tdist.lisp Loading commit data...
weibull.lisp Loading commit data...