mirror of
https://github.com/gonum/gonum.git
synced 2025-10-10 01:20:14 +08:00
Changed add examples to be ExampleAdd_lowercaseLetter to match testing requirement
This commit is contained in:
@@ -6,7 +6,7 @@ import (
|
||||
|
||||
// Set of examples for all the functions
|
||||
|
||||
func ExampleAdd_Simple() {
|
||||
func ExampleAdd_simple() {
|
||||
// Adding three slices together. Note that
|
||||
// the result is stored in the first slice
|
||||
s1 := []float64{1, 2, 3, 4}
|
||||
@@ -24,7 +24,7 @@ func ExampleAdd_Simple() {
|
||||
// s3 = [1 1 1 1]
|
||||
}
|
||||
|
||||
func ExampleAdd_NewSlice() {
|
||||
func ExampleAdd_newSlice() {
|
||||
// If one wants to store the result in a
|
||||
// new container, just make a new slice
|
||||
s1 := []float64{1, 2, 3, 4}
|
||||
@@ -45,7 +45,7 @@ func ExampleAdd_NewSlice() {
|
||||
// s3 = [1 1 1 1]
|
||||
}
|
||||
|
||||
func ExampleAdd_UnequalLengths() {
|
||||
func ExampleAdd_unequalLengths() {
|
||||
// If the lengths of the slices are unknown,
|
||||
// use Eqlen to check
|
||||
s1 := []float64{1, 2, 3}
|
||||
@@ -61,7 +61,7 @@ func ExampleAdd_UnequalLengths() {
|
||||
// Unequal lengths
|
||||
}
|
||||
|
||||
func ExampleAdd_SliceOfSliceSum() {
|
||||
func ExampleAdd_sliceOfSliceSum() {
|
||||
// Add can also be used to take a columnwise sum
|
||||
// of a slice of slices
|
||||
|
||||
|
Reference in New Issue
Block a user