當前位置: 首頁>>代碼示例>>Golang>>正文


Golang GslMatrixFloat.Ptr方法代碼示例

本文整理匯總了Golang中github.com/dtromb/gogsl/matrix.GslMatrixFloat.Ptr方法的典型用法代碼示例。如果您正苦於以下問題:Golang GslMatrixFloat.Ptr方法的具體用法?Golang GslMatrixFloat.Ptr怎麽用?Golang GslMatrixFloat.Ptr使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在github.com/dtromb/gogsl/matrix.GslMatrixFloat的用法示例。


在下文中一共展示了GslMatrixFloat.Ptr方法的8個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Golang代碼示例。

示例1: Ssyr2k

func Ssyr2k(uplo Uplo, trans Transpose, alpha float32, a *matrix.GslMatrixFloat, b *matrix.GslMatrixFloat, beta float32, c *matrix.GslMatrixFloat) int32 {
	return int32(C.gsl_blas_ssyr2k(C.CBLAS_UPLO_t(uplo), C.CBLAS_TRANSPOSE_t(trans), C.float(alpha), (*C.gsl_matrix_float)(unsafe.Pointer(a.Ptr())), (*C.gsl_matrix_float)(unsafe.Pointer(b.Ptr())), C.float(beta), (*C.gsl_matrix_float)(unsafe.Pointer(c.Ptr()))))
}
開發者ID:postfix,項目名稱:gsl-1,代碼行數:3,代碼來源:blas.go

示例2: Ssymm

func Ssymm(side Side, uplo Uplo, alpha float32, a *matrix.GslMatrixFloat, b *matrix.GslMatrixFloat, beta float32, c *matrix.GslMatrixFloat) int32 {
	return int32(C.gsl_blas_ssymm(C.CBLAS_SIDE_t(side), C.CBLAS_UPLO_t(uplo), C.float(alpha), (*C.gsl_matrix_float)(unsafe.Pointer(a.Ptr())), (*C.gsl_matrix_float)(unsafe.Pointer(b.Ptr())), C.float(beta), (*C.gsl_matrix_float)(unsafe.Pointer(c.Ptr()))))
}
開發者ID:postfix,項目名稱:gsl-1,代碼行數:3,代碼來源:blas.go

示例3: Strsm

func Strsm(side Side, uplo Uplo, transA Transpose, diag Diag, alpha float32, a *matrix.GslMatrixFloat, b *matrix.GslMatrixFloat) int32 {
	return int32(C.gsl_blas_strsm(C.CBLAS_SIDE_t(side), C.CBLAS_UPLO_t(uplo), C.CBLAS_TRANSPOSE_t(transA), C.CBLAS_DIAG_t(diag), C.float(alpha), (*C.gsl_matrix_float)(unsafe.Pointer(a.Ptr())), (*C.gsl_matrix_float)(unsafe.Pointer(b.Ptr()))))
}
開發者ID:postfix,項目名稱:gsl-1,代碼行數:3,代碼來源:blas.go

示例4: Sgemm

func Sgemm(transA Transpose, transB Transpose, alpha float32, a *matrix.GslMatrixFloat, b *matrix.GslMatrixFloat, beta float32, c *matrix.GslMatrixFloat) int32 {
	return int32(C.gsl_blas_sgemm(C.CBLAS_TRANSPOSE_t(transA), C.CBLAS_TRANSPOSE_t(transB), C.float(alpha), (*C.gsl_matrix_float)(unsafe.Pointer(a.Ptr())), (*C.gsl_matrix_float)(unsafe.Pointer(b.Ptr())), C.float(beta), (*C.gsl_matrix_float)(unsafe.Pointer(c.Ptr()))))
}
開發者ID:postfix,項目名稱:gsl-1,代碼行數:3,代碼來源:blas.go

示例5: Ssyr2

func Ssyr2(uplo Uplo, alpha float32, x *vector.GslVectorFloat, y *vector.GslVectorFloat, a *matrix.GslMatrixFloat) int32 {
	return int32(C.gsl_blas_ssyr2(C.CBLAS_UPLO_t(uplo), C.float(alpha), (*C.gsl_vector_float)(unsafe.Pointer(x.Ptr())), (*C.gsl_vector_float)(unsafe.Pointer(y.Ptr())), (*C.gsl_matrix_float)(unsafe.Pointer(a.Ptr()))))
}
開發者ID:postfix,項目名稱:gsl-1,代碼行數:3,代碼來源:blas.go

示例6: Sger

func Sger(alpha float32, x *vector.GslVectorFloat, y *vector.GslVectorFloat, a *matrix.GslMatrixFloat) int32 {
	return int32(C.gsl_blas_sger(C.float(alpha), (*C.gsl_vector_float)(unsafe.Pointer(x.Ptr())), (*C.gsl_vector_float)(unsafe.Pointer(y.Ptr())), (*C.gsl_matrix_float)(unsafe.Pointer(a.Ptr()))))
}
開發者ID:postfix,項目名稱:gsl-1,代碼行數:3,代碼來源:blas.go

示例7: Strsv

func Strsv(uplo Uplo, transA Transpose, diag Diag, a *matrix.GslMatrixFloat, x *vector.GslVectorFloat) int32 {
	return int32(C.gsl_blas_strsv(C.CBLAS_UPLO_t(uplo), C.CBLAS_TRANSPOSE_t(transA), C.CBLAS_DIAG_t(diag), (*C.gsl_matrix_float)(unsafe.Pointer(a.Ptr())), (*C.gsl_vector_float)(unsafe.Pointer(x.Ptr()))))
}
開發者ID:postfix,項目名稱:gsl-1,代碼行數:3,代碼來源:blas.go

示例8: Sgemv

func Sgemv(transA Transpose, alpha float32, a *matrix.GslMatrixFloat, x *vector.GslVectorFloat, beta float32, y *vector.GslVectorFloat) int32 {
	return int32(C.gsl_blas_sgemv(C.CBLAS_TRANSPOSE_t(transA), C.float(alpha), (*C.gsl_matrix_float)(unsafe.Pointer(a.Ptr())), (*C.gsl_vector_float)(unsafe.Pointer(x.Ptr())), C.float(beta), (*C.gsl_vector_float)(unsafe.Pointer(y.Ptr()))))
}
開發者ID:postfix,項目名稱:gsl-1,代碼行數:3,代碼來源:blas.go


注:本文中的github.com/dtromb/gogsl/matrix.GslMatrixFloat.Ptr方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。