uncomplicate.neanderthal.real

Contains type-specific primitive floating point functions, equivalents of functions from the uncomplicate.neanderthal.core namespace. Typically, you would want to require this namespace if you need to compute real matrices containing doubles and/or floats.

Example

(ns test
  (:require [uncomplicate.neanderthal
            [core :refer :all :exclude [entry entry! dot nrm2 asum sum]]
            [real :refer :all]]))

amax

(amax x)

asum

(asum x)

det

(det lu ipiv)

Computes the determinant of a matrix from its lu factors and ipiv pivot, which were obtained as an output from uncomplicate.neanderthal.linalg/trf! (LU factorization). Overwrites the data in lu!

dot

(dot x y)

Primitive wrapper of uncomplicate.neanderthal.core/dot.

entry

(entry x i)(entry a i j)

The primitive, much faster, version of uncomplicate.neanderthal.core/entry.

entry!

(entry! x val)(entry! x i val)(entry! a i j val)

The primitive, much faster, version of uncomplicate.neanderthal.core/entry!.

ls-residual

(ls-residual a b)

Computes the residual sum of squares for the solution of a linear system returned by uncomplicate.neanderthal.linalg/ls! (Linear Least Squares (LLS) problem).

nrm2

(nrm2 x)

sum

(sum x)

Primitive wrapper of uncomplicate.neanderthal.core/sum.