class LA::Utils::WorkArea

Overview

Work arrays area for lapack routines It is not thread safe, so should be used inside SimplePool

Defined in:

linalg/workpool.cr

Instance Method Summary

Instance Method Detail

def get(n) : Bytes #

allocate and return Bytes of size n


[View source]
def get_cmplx(n) : Slice(LibCBLAS::ComplexDouble) #

allocate and return Slice(LibCBLAS::ComplexDouble) of size n


[View source]
def get_f32(n) : Slice(Float32) #

allocate and return Slice(Float32) of size n


[View source]
def get_f64(n) : Slice(Float64) #

allocate and return Slice(Float64) of size n


[View source]
def get_i32(n) : Slice(Int32) #

allocate and return Slice(Int32) of size n


[View source]
def reallocate(required_size) #

increase internal area to required_size


[View source]
def release #

release all allocated arrays


[View source]