Add Dlacpy and tests

This commit is contained in:
btracey
2015-10-01 22:37:31 -06:00
parent 2d9784a50c
commit 77927b49f4
9 changed files with 174 additions and 3 deletions

View File

@@ -67,6 +67,15 @@ type Implementation struct{}
var _ lapack.Float64 = Implementation{}
// Dlacpy copies the elements of A specified by uplo into B. Uplo can specify
// a triangular portion with blas.Upper or blas.Lower, or can specify all of the
// elemest with blas.All.
func (impl Implementation) Dlacpy(uplo blas.Uplo, m, n int, a []float64, lda int, b []float64, ldb int) {
checkMatrix(m, n, a, lda)
checkMatrix(m, n, b, ldb)
clapack.Dlacpy(uplo, m, n, a, lda, b, ldb)
}
// Dlange computes the matrix norm of the general m×n matrix a. The input norm
// specifies the norm computed.
// lapack.MaxAbs: the maximum absolute value of an element.