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


Golang matrix.GslMatrix類代碼示例

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


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

示例1: HouseholderMh

func HouseholderMh(tau float64, v *vector.GslVector, a *matrix.GslMatrix) int32 {
	return int32(C.gsl_linalg_householder_mh(C.double(tau), (*C.gsl_vector)(unsafe.Pointer(v.Ptr())), (*C.gsl_matrix)(unsafe.Pointer(a.Ptr()))))
}
開發者ID:postfix,項目名稱:gsl-1,代碼行數:3,代碼來源:linalg.go

示例2: GslMultifitRobustEst

func GslMultifitRobustEst(x *vector.GslVector, c *vector.GslVector, cov *matrix.GslMatrix) (int32, float64, float64) {
	var _outptr_3 C.double
	var _outptr_4 C.double
	_result := int32(C.gsl_multifit_robust_est((*C.gsl_vector)(unsafe.Pointer(x.Ptr())), (*C.gsl_vector)(unsafe.Pointer(c.Ptr())), (*C.gsl_matrix)(unsafe.Pointer(cov.Ptr())), &_outptr_3, &_outptr_4))
	return _result, *(*float64)(unsafe.Pointer(&_outptr_3)), *(*float64)(unsafe.Pointer(&_outptr_4))
}
開發者ID:postfix,項目名稱:gsl-1,代碼行數:6,代碼來源:fit.go

示例3: Wavelet2dTransformMatrix

func Wavelet2dTransformMatrix(w *GslWavelet, m *matrix.GslMatrix, dir GslWaveletDirection, work *GslWaveletWorkspace) int32 {
	return int32(C.gsl_wavelet2d_transform_matrix((*C.gsl_wavelet)(unsafe.Pointer(w.Ptr())), (*C.gsl_matrix)(unsafe.Pointer(m.Ptr())), C.gsl_wavelet_direction(dir), (*C.gsl_wavelet_workspace)(unsafe.Pointer(work.Ptr()))))
}
開發者ID:dtromb,項目名稱:gogsl,代碼行數:3,代碼來源:wavelet.go

示例4: GslMultifitWlinear

func GslMultifitWlinear(x *matrix.GslMatrix, w *vector.GslVector, y *vector.GslVector, c *vector.GslVector, cov *matrix.GslMatrix, work *GslMultifitLinearWorkspace) (int32, float64) {
	var _outptr_5 C.double
	_result := int32(C.gsl_multifit_wlinear((*C.gsl_matrix)(unsafe.Pointer(x.Ptr())), (*C.gsl_vector)(unsafe.Pointer(w.Ptr())), (*C.gsl_vector)(unsafe.Pointer(y.Ptr())), (*C.gsl_vector)(unsafe.Pointer(c.Ptr())), (*C.gsl_matrix)(unsafe.Pointer(cov.Ptr())), &_outptr_5, (*C.gsl_multifit_linear_workspace)(unsafe.Pointer(work.Ptr()))))
	return _result, *(*float64)(unsafe.Pointer(&_outptr_5))
}
開發者ID:postfix,項目名稱:gsl-1,代碼行數:5,代碼來源:fit.go

示例5: GslMultifitLinearResiduals

func GslMultifitLinearResiduals(x *matrix.GslMatrix, y *vector.GslVector, c *vector.GslVector, r *vector.GslVector) int32 {
	return int32(C.gsl_multifit_linear_residuals((*C.gsl_matrix)(unsafe.Pointer(x.Ptr())), (*C.gsl_vector)(unsafe.Pointer(y.Ptr())), (*C.gsl_vector)(unsafe.Pointer(c.Ptr())), (*C.gsl_vector)(unsafe.Pointer(r.Ptr()))))
}
開發者ID:postfix,項目名稱:gsl-1,代碼行數:3,代碼來源:fit.go

示例6: Dsymm

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

示例7: Dsyr2k

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

示例8: LUDet

func LUDet(lU *matrix.GslMatrix, signum int32) float64 {
	return float64(C.gsl_linalg_LU_det((*C.gsl_matrix)(unsafe.Pointer(lU.Ptr())), C.int(signum)))
}
開發者ID:postfix,項目名稱:gsl-1,代碼行數:3,代碼來源:linalg.go

示例9: LULndet

func LULndet(lU *matrix.GslMatrix) float64 {
	return float64(C.gsl_linalg_LU_lndet((*C.gsl_matrix)(unsafe.Pointer(lU.Ptr()))))
}
開發者ID:postfix,項目名稱:gsl-1,代碼行數:3,代碼來源:linalg.go

示例10: LURefine

func LURefine(a *matrix.GslMatrix, lU *matrix.GslMatrix, p *permutation.GslPermutation, b *vector.GslVector, x *vector.GslVector, residual *vector.GslVector) int32 {
	return int32(C.gsl_linalg_LU_refine((*C.gsl_matrix)(unsafe.Pointer(a.Ptr())), (*C.gsl_matrix)(unsafe.Pointer(lU.Ptr())), (*C.gsl_permutation)(unsafe.Pointer(p.Ptr())), (*C.gsl_vector)(unsafe.Pointer(b.Ptr())), (*C.gsl_vector)(unsafe.Pointer(x.Ptr())), (*C.gsl_vector)(unsafe.Pointer(residual.Ptr()))))
}
開發者ID:postfix,項目名稱:gsl-1,代碼行數:3,代碼來源:linalg.go

示例11: LUInvert

func LUInvert(lU *matrix.GslMatrix, p *permutation.GslPermutation, inverse *matrix.GslMatrix) int32 {
	return int32(C.gsl_linalg_LU_invert((*C.gsl_matrix)(unsafe.Pointer(lU.Ptr())), (*C.gsl_permutation)(unsafe.Pointer(p.Ptr())), (*C.gsl_matrix)(unsafe.Pointer(inverse.Ptr()))))
}
開發者ID:postfix,項目名稱:gsl-1,代碼行數:3,代碼來源:linalg.go

示例12: LUSvx

func LUSvx(lU *matrix.GslMatrix, p *permutation.GslPermutation, x *vector.GslVector) int32 {
	return int32(C.gsl_linalg_LU_svx((*C.gsl_matrix)(unsafe.Pointer(lU.Ptr())), (*C.gsl_permutation)(unsafe.Pointer(p.Ptr())), (*C.gsl_vector)(unsafe.Pointer(x.Ptr()))))
}
開發者ID:postfix,項目名稱:gsl-1,代碼行數:3,代碼來源:linalg.go

示例13: BalanceMatrix

func BalanceMatrix(a *matrix.GslMatrix, d *vector.GslVector) int32 {
	return int32(C.gsl_linalg_balance_matrix((*C.gsl_matrix)(unsafe.Pointer(a.Ptr())), (*C.gsl_vector)(unsafe.Pointer(d.Ptr()))))
}
開發者ID:postfix,項目名稱:gsl-1,代碼行數:3,代碼來源:linalg.go

示例14: HHSvx

func HHSvx(a *matrix.GslMatrix, x *vector.GslVector) int32 {
	return int32(C.gsl_linalg_HH_svx((*C.gsl_matrix)(unsafe.Pointer(a.Ptr())), (*C.gsl_vector)(unsafe.Pointer(x.Ptr()))))
}
開發者ID:postfix,項目名稱:gsl-1,代碼行數:3,代碼來源:linalg.go

示例15: Dsyr2

func Dsyr2(uplo Uplo, alpha float64, x *vector.GslVector, y *vector.GslVector, a *matrix.GslMatrix) int32 {
	return int32(C.gsl_blas_dsyr2(C.CBLAS_UPLO_t(uplo), C.double(alpha), (*C.gsl_vector)(unsafe.Pointer(x.Ptr())), (*C.gsl_vector)(unsafe.Pointer(y.Ptr())), (*C.gsl_matrix)(unsafe.Pointer(a.Ptr()))))
}
開發者ID:postfix,項目名稱:gsl-1,代碼行數:3,代碼來源:blas.go


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