Example #1
0
//void sws_scaleVec (SwsVector *a, double scalar)
//Scale all the coefficients of a by the scalar value.
func Sws_scaleVec(a *SwsVector, s float64) {
	ca := (*C.struct_SwsVector)(unsafe.Pointer(a))
	C.sws_scaleVec(ca, C.double(s))
}
Example #2
0
//Scale all the coefficients of a by the scalar value.
func (a *Vector) SwsScalevec(s float64) {
	C.sws_scaleVec((*C.struct_SwsVector)(unsafe.Pointer(a)), C.double(s))
}