mirror of
https://github.com/gonum/gonum.git
synced 2025-10-10 17:40:30 +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
|
// Set of examples for all the functions
|
||||||
|
|
||||||
func ExampleAdd_Simple() {
|
func ExampleAdd_simple() {
|
||||||
// Adding three slices together. Note that
|
// Adding three slices together. Note that
|
||||||
// the result is stored in the first slice
|
// the result is stored in the first slice
|
||||||
s1 := []float64{1, 2, 3, 4}
|
s1 := []float64{1, 2, 3, 4}
|
||||||
@@ -24,7 +24,7 @@ func ExampleAdd_Simple() {
|
|||||||
// s3 = [1 1 1 1]
|
// s3 = [1 1 1 1]
|
||||||
}
|
}
|
||||||
|
|
||||||
func ExampleAdd_NewSlice() {
|
func ExampleAdd_newSlice() {
|
||||||
// If one wants to store the result in a
|
// If one wants to store the result in a
|
||||||
// new container, just make a new slice
|
// new container, just make a new slice
|
||||||
s1 := []float64{1, 2, 3, 4}
|
s1 := []float64{1, 2, 3, 4}
|
||||||
@@ -45,7 +45,7 @@ func ExampleAdd_NewSlice() {
|
|||||||
// s3 = [1 1 1 1]
|
// s3 = [1 1 1 1]
|
||||||
}
|
}
|
||||||
|
|
||||||
func ExampleAdd_UnequalLengths() {
|
func ExampleAdd_unequalLengths() {
|
||||||
// If the lengths of the slices are unknown,
|
// If the lengths of the slices are unknown,
|
||||||
// use Eqlen to check
|
// use Eqlen to check
|
||||||
s1 := []float64{1, 2, 3}
|
s1 := []float64{1, 2, 3}
|
||||||
@@ -61,7 +61,7 @@ func ExampleAdd_UnequalLengths() {
|
|||||||
// Unequal lengths
|
// Unequal lengths
|
||||||
}
|
}
|
||||||
|
|
||||||
func ExampleAdd_SliceOfSliceSum() {
|
func ExampleAdd_sliceOfSliceSum() {
|
||||||
// Add can also be used to take a columnwise sum
|
// Add can also be used to take a columnwise sum
|
||||||
// of a slice of slices
|
// of a slice of slices
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user