blas-0.5: Bindings to the BLAS librarySource codeContentsIndex
BLAS.Tensor.Dense.Immutable
Stabilityexperimental
MaintainerPatrick Perry <patperry@stanford.edu>
Description
Synopsis
class ITensor x i e => IDTensor x i e where
zero :: i -> x e
constant :: i -> e -> x e
azipWith :: (ITensor x i f, ITensor x i g) => (e -> f -> g) -> x e -> x f -> x g
Documentation
class ITensor x i e => IDTensor x i e whereSource
Class for immutable dense tensors.
Methods
zero :: i -> x eSource
Get a zero tensor of the given shape.
constant :: i -> e -> x eSource
Get a new constant tensor of the given shape.
azipWith :: (ITensor x i f, ITensor x i g) => (e -> f -> g) -> x e -> x f -> x gSource
Apply a function to pairs of elements of tensors that are the same shape.
show/hide Instances
BLAS1 e => IDTensor (DVector Imm n) Int e
BLAS1 e => IDTensor (DVector Imm n) Int e
BLAS1 e => IDTensor (DMatrix Imm ((,) m n)) ((,) Int Int) e
BLAS1 e => IDTensor (DMatrix Imm ((,) m n)) ((,) Int Int) e
Produced by Haddock version 2.3.0