Skip to content

Commit

Permalink
mat: add Vector interface
Browse files Browse the repository at this point in the history
  • Loading branch information
kortschak committed Jul 31, 2017
1 parent 862a4c5 commit f99e3ef
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions mat/vector.go
Expand Up @@ -13,11 +13,17 @@ import (
var (
vector *VecDense

_ Matrix = vector

_ Matrix = vector
_ Vector = vector
_ Reseter = vector
)

// Vector is a column vector.
type Vector interface {
Matrix
Len() int
}

// VecDense represents a column vector.
type VecDense struct {
mat blas64.Vector
Expand Down

0 comments on commit f99e3ef

Please sign in to comment.