code: func (m Matrix) TotalSamples() int {
  	numSamples := 0
  	for _, series := range m {
  		numSamples += len(series.Points)
  	}
  	return numSamples
  }
docs: // TotalSamples returns the total number of samples in the series within a matrix.