computes M += A X or M = A X in an optimized fashion.
BOOST_UBLAS_INLINE V& axpy_prod
(
const matrix_expression< E1 > &
e1,
const vector_expression< E2 > &
e2,
V &
v,
bool
init = true
)
вычисленияv += A xилиv = A xв оптимизированном виде.
Параметры:
e1
Матричное выражениеА
e2
векторное выражениеx
v
вектор результатаv
init
Булевый параметр
axpy_prod(A, x, v, init) implements the well known axpy-product. Setting init to true is equivalent to call v.clear() before axpy_prod. Currently init defaults to true, but this may change in the future.
Up to now there are some specialisation for compressed matrices that give a large speed up compared to prod.
BOOST_UBLAS_INLINE V& axpy_prod
(
const vector_expression< E1 > &
e1,
const matrix_expression< E2 > &
e2,
V &
v,
bool
init = true
)
computes v += AT x or v = AT x in an optimized fashion.
Parameters:
e1
векторное выражениеx
e2
Матричное выражениеА
v
вектор результатаv
init
Булевый параметр
axpy_prod(x, A, v, init) implements the well known axpy-product. Setting init to true is equivalent to call v.clear() before axpy_prod. Currently init defaults to true, but this may change in the future.
Up to now there are some specialisation for compressed matrices that give a large speed up compared to prod.
BOOST_UBLAS_INLINE M& axpy_prod
(
const matrix_expression< E1 > &
e1,
const matrix_expression< E2 > &
e2,
M &
m,
bool
init = true
)
computes M += A X or M = A X in an optimized fashion.
Parameters:
e1
Матричное выражениеА
e2
выражение матрицыX
m
матрица результатовМ
init
Булевый параметр
axpy_prod(A, X, M, init) implements the well known axpy-product. Setting init to true is equivalent to call M.clear() before axpy_prod. Currently init defaults to true, but this may change in the future.
Up to now there are no specialisations.
BOOST_UBLAS_INLINE M& opb_prod
(
const matrix_expression< E1 > &
e1,
const matrix_expression< E2 > &
e2,
M &
m,
bool
init = true
)
computes M += A X or M = A X in an optimized fashion.
Parameters:
e1
Матричное выражениеА
e2
выражение матрицыX
m
матрица результатовМ
init
Булевый параметр
opb_prod(A, X, M, init) implements the well known axpy-product. Setting init to true is equivalent to call M.clear() before opb_prod. Currently init defaults to true, but this may change in the future.
Эта функция может дать ускорение, еслиАимеет меньше столбцов, чем рядов, потому что продукт вычисляется как сумма внешних продуктов.
Авторское право (и копия;) 2000-2004 годы Майкл Стивенс, Матиас Кох, Йорг Уолтер, Гюнтер Уинклер На использование, модификацию и распространение распространяется лицензия Boost Software License, Version 1.0. (См. сопроводительный файл LICENSE_1_0.txt или копию по адресу) http://www.boost.org/LICENSE_1_0.txt.
Статья Special Products раздела может быть полезна для разработчиков на c++ и boost.
Материалы статей собраны из открытых источников, владелец сайта не претендует на авторство. Там где авторство установить не удалось, материал подаётся без имени автора. В случае если Вы считаете, что Ваши права нарушены, пожалуйста, свяжитесь с владельцем сайта.