17 research outputs found

    Fast higher-order functions for tensor calculus with tensors and subtensors

    No full text
    Tensors analysis has become a popular tool for solving problems in computational neuroscience, pattern recognition and signal processing. Similar to the two-dimensional case, algorithms for multidimensional data consist of basic operations accessing only a subset of tensor data. With multiple offsets and step sizes, basic operations for subtensors require sophisticated implementations even for entrywise operations. In this work, we discuss the design and implementation of optimized higher-order functions that operate entrywise on tensors and subtensors with any non-hierarchical storage format and arbitrary number of dimensions. We propose recursive multi-index algorithms with reduced index computations and additional optimization techniques such as function inlining with partial template specialization. We show that single-index implementations of higher-order functions with subtensors introduce a runtime penalty of an order of magnitude than the recursive and iterative multi-index versions. Including data- and thread-level parallelization, our optimized implementations reach 68% of the maximum throughput of an Intel Core i9-7900X. In comparison with other libraries, the average speedup of our optimized implementations is up to 5x for map-like and more than 9x for reduce-like operations. For symmetric tensors we measured an average speedup of up to 4x

    Effects of nicotine and amphetamine on latent inhibition in human subjects

    No full text
    Latent inhibition (LI) is a phenomenon in which repeated non-reinforced exposure to a stimulus retards subsequent conditioning to that stimulus; it reflects a process whereby irrelevant stimuli become ignored, and has been the subject of study concerning attentional abnormalities in schizophrenia. Low doses of the indirect dopamine (DA) agonists, amphetamine and nicotine, disrupt LI in the rat. These drugs are believed to disrupt LI via DA release in the nucleus accumbens; LI in amphetamine- and nicotine-treated rats is reinstated by administration of the DA antagonist haloperidol. In human subjects, low doses of amphetamine abolish LI, and more recently haloperidol has been shown to potentiate LI. The present study investigated the effects of nicotine on LI in human subjects, and also attempted to replicate the abolition of LI by amphetamine. Nicotine failed to affect LI when administered either subcutaneously or by cigarette smoking. LI was, however, abolished in a group of subjects given 5 mg amphetamine 90 min before testing. Supplementary analyses of the data pooled from all three experiments showed that, in contrast to an earlier report, LI was no weaker in smokers than in nonsmokers
    corecore