The `Put` function in the `github.com/cpmech/gosl/la/Triplet` package in Golang is used to insert a value into a sparse matrix represented by a triplet format. The triplet format stores the non-zero elements of the matrix along with their corresponding row and column indices. The `Put` function takes the row and column indices, along with the value, and appends this data to the existing sparse matrix representation. This function is useful for building sparse matrices incrementally by adding elements one at a time.
Golang Triplet.Put - 27 examples found. These are the top rated real world Golang examples of github.com/cpmech/gosl/la.Triplet.Put extracted from open source projects. You can rate examples to help us improve the quality of examples.