Exemple #1
0
func SortVectorFloatIndex(p *permutation.GslPermutation, v *vector.GslVectorFloat) int32 {
	return int32(C.gsl_sort_vector_float_index((*C.gsl_permutation)(unsafe.Pointer(p.Ptr())), (*C.gsl_vector_float)(unsafe.Pointer(v.Ptr()))))
}
Exemple #2
0
func SortVectorFloat(v *vector.GslVectorFloat) {
	C.gsl_sort_vector_float((*C.gsl_vector_float)(unsafe.Pointer(v.Ptr())))
}
Exemple #3
0
func SortVector2Float(v1 *vector.GslVectorFloat, v2 *vector.GslVectorFloat) {
	C.gsl_sort_vector2_float((*C.gsl_vector_float)(unsafe.Pointer(v1.Ptr())), (*C.gsl_vector_float)(unsafe.Pointer(v2.Ptr())))
}
Exemple #4
0
func Sasum(x *vector.GslVectorFloat) float32 {
	return float32(C.gsl_blas_sasum((*C.gsl_vector_float)(unsafe.Pointer(x.Ptr()))))
}
Exemple #5
0
func Isamax(x *vector.GslVectorFloat) Index {
	return Index(C.gsl_blas_isamax((*C.gsl_vector_float)(unsafe.Pointer(x.Ptr()))))
}
Exemple #6
0
func Saxpy(alpha float32, x *vector.GslVectorFloat, y *vector.GslVectorFloat) int32 {
	return int32(C.gsl_blas_saxpy(C.float(alpha), (*C.gsl_vector_float)(unsafe.Pointer(x.Ptr())), (*C.gsl_vector_float)(unsafe.Pointer(y.Ptr()))))
}
Exemple #7
0
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()))))
}
Exemple #8
0
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()))))
}
Exemple #9
0
func Dsdot(x *vector.GslVectorFloat, y *vector.GslVectorFloat) (int32, float64) {
	var _outptr_2 C.double
	_result := int32(C.gsl_blas_dsdot((*C.gsl_vector_float)(unsafe.Pointer(x.Ptr())), (*C.gsl_vector_float)(unsafe.Pointer(y.Ptr())), &_outptr_2))
	return _result, *(*float64)(unsafe.Pointer(&_outptr_2))
}
Exemple #10
0
func Srotm(x *vector.GslVectorFloat, y *vector.GslVectorFloat, p []float32) int32 {
	_slice_header_2 := (*reflect.SliceHeader)(unsafe.Pointer(&p))
	return int32(C.gsl_blas_srotm((*C.gsl_vector_float)(unsafe.Pointer(x.Ptr())), (*C.gsl_vector_float)(unsafe.Pointer(y.Ptr())), (*C.float)(unsafe.Pointer(_slice_header_2.Data))))
}
Exemple #11
0
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()))))
}
Exemple #12
0
func Srot(x *vector.GslVectorFloat, y *vector.GslVectorFloat, c float32, s float32) int32 {
	return int32(C.gsl_blas_srot((*C.gsl_vector_float)(unsafe.Pointer(x.Ptr())), (*C.gsl_vector_float)(unsafe.Pointer(y.Ptr())), C.float(c), C.float(s)))
}
Exemple #13
0
func Sscal(alpha float32, x *vector.GslVectorFloat) {
	C.gsl_blas_sscal(C.float(alpha), (*C.gsl_vector_float)(unsafe.Pointer(x.Ptr())))
}
Exemple #14
0
func Sdsdot(alpha float32, x *vector.GslVectorFloat, y *vector.GslVectorFloat) (int32, float32) {
	var _outptr_3 C.float
	_result := int32(C.gsl_blas_sdsdot(C.float(alpha), (*C.gsl_vector_float)(unsafe.Pointer(x.Ptr())), (*C.gsl_vector_float)(unsafe.Pointer(y.Ptr())), &_outptr_3))
	return _result, *(*float32)(unsafe.Pointer(&_outptr_3))
}
Exemple #15
0
func SortVectorFloatSmallest(dest []float32, k int, v *vector.GslVectorFloat) int32 {
	_slice_header_0 := (*reflect.SliceHeader)(unsafe.Pointer(&dest))
	return int32(C.gsl_sort_vector_float_smallest((*C.float)(unsafe.Pointer(_slice_header_0.Data)), C.size_t(k), (*C.gsl_vector_float)(unsafe.Pointer(v.Ptr()))))
}
Exemple #16
0
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()))))
}
Exemple #17
0
func SortVectorFloatLargestIndex(p []int, k int, v *vector.GslVectorFloat) int32 {
	_slice_header_0 := (*reflect.SliceHeader)(unsafe.Pointer(&p))
	return int32(C.gsl_sort_vector_float_largest_index((*C.size_t)(unsafe.Pointer(_slice_header_0.Data)), C.size_t(k), (*C.gsl_vector_float)(unsafe.Pointer(v.Ptr()))))
}
Exemple #18
0
func Scopy(x *vector.GslVectorFloat, y *vector.GslVectorFloat) int32 {
	return int32(C.gsl_blas_scopy((*C.gsl_vector_float)(unsafe.Pointer(x.Ptr())), (*C.gsl_vector_float)(unsafe.Pointer(y.Ptr()))))
}