mat: add Vector interface
MODIFY
mat/vector.go
mat/vector.go
@@ -14,10 +14,16 @@ var (
vector *VecDense
_ 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

mat: add Vector interface