blas-0.5: Bindings to the BLAS librarySource codeContentsIndex
BLAS.Tensor.Dense.ReadOnly
Stabilityexperimental
MaintainerPatrick Perry <patperry@stanford.edu>
Description
Synopsis
class RTensor x i e m => RDTensor x i e m where
newZero :: i -> m (x e)
newConstant :: i -> e -> m (x e)
Documentation
class RTensor x i e m => RDTensor x i e m whereSource
Class for mutable dense read-only tensors.
Methods
newZero :: i -> m (x e)Source
Creates a new tensor with elements all initialized to zero.
newConstant :: i -> e -> m (x e)Source
Creates a new tensor with elements all initialized to the given value.
show/hide Instances
BLAS1 e => RDTensor (DVector t n) Int e IO
BLAS1 e => RDTensor (DVector t n) Int e IO
BLAS1 e => RDTensor (DVector t n) Int e IO
BLAS1 e => RDTensor (DMatrix t ((,) m n)) ((,) Int Int) e IO
BLAS1 e => RDTensor (DMatrix t ((,) m n)) ((,) Int Int) e IO
BLAS1 e => RDTensor (DMatrix t ((,) m n)) ((,) Int Int) e IO
Produced by Haddock version 2.3.0