mat: add Vector interface
@@ -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
