blas-0.5: Bindings to the BLAS librarySource codeContentsIndex
BLAS.Tensor.Base
Stabilityexperimental
MaintainerPatrick Perry <patperry@stanford.edu>
Description
Synopsis
class Ix i => Tensor x i e | x -> i where
shape :: x e -> i
bounds :: x e -> (i, i)
Documentation
class Ix i => Tensor x i e | x -> i whereSource
The base class for tensors (i.e. Vector, Matrix, etc.).
Methods
shape :: x e -> iSource
Get the shape of the tensor. For vectors this is the dimension. For matrices, this will be a pair (m,n) of the number of rows and columns.
bounds :: x e -> (i, i)Source
Get the range of valid indices in the tensor.
show/hide Instances
Matrix a => Tensor (a ((,) m n)) ((,) Int Int) e
Tensor (DVector t n) Int e
Tensor (DVector t n) Int e
Produced by Haddock version 2.3.0