blas-0.6: Bindings to the BLAS librarySource codeContentsIndex
BLAS.Tensor.Base
Stabilityexperimental
MaintainerPatrick Perry <patperry@stanford.edu>
Description
Synopsis
class (Ix i, Eq i, Show i) => BaseTensor x i | x -> i where
shape :: x n e -> i
bounds :: x n e -> (i, i)
Documentation
class (Ix i, Eq i, Show i) => BaseTensor x i | x -> i whereSource
The base class for tensors (i.e. Vector, Matrix, etc.).
Methods
shape :: x n 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 n e -> (i, i)Source
Get the range of valid indices in the tensor.
show/hide Instances
Produced by Haddock version 2.3.0