![]() |
Ginkgo
Generated from pipelines/3133041809 branch based on develop. Ginkgo version 2.0.0
A numerical linear algebra library targeting many-core architectures
|
Abstract interface class for (multi-)vector types. More...
#include <ginkgo/core/base/multivector.hpp>
Public Types | |
| template<typename ValueType > | |
| using | device_view = matrix::view::dense< ValueType > |
Public Member Functions | |
| std::unique_ptr< AbstractMultiVector > | clone (std::shared_ptr< const Executor > exec) const |
| Creates a copy of this vector on the given executor. More... | |
| std::unique_ptr< AbstractMultiVector > | clone () const |
| Creates a copy of this vector on this vector's executor. More... | |
| AbstractMultiVector * | copy_from (ptr_param< const AbstractMultiVector > other) |
| Copies the data of other into this vector. More... | |
| AbstractMultiVector * | move_from (ptr_param< AbstractMultiVector > other) |
| Moves the data of other into this vector. More... | |
| std::unique_ptr< AbstractMultiVector > | create_default (std::shared_ptr< const Executor > exec) const |
| Creates an empty vector with the same type as this vector on the given executor. More... | |
| std::unique_ptr< AbstractMultiVector > | create_default () const |
| Creates an empty vector with the same type as this vector on this vector's executor. More... | |
| std::unique_ptr< AbstractMultiVector > | compute_absolute () const |
| Creates a new vector with the element-wise absolute values of this vector. More... | |
| void | compute_absolute (ptr_param< AbstractMultiVector > output) const |
| Writes the element-wise absolute values of this vector into output. More... | |
| void | compute_absolute_inplace () |
| Replaces each element of this vector with its absolute value. More... | |
| std::unique_ptr< AbstractMultiVector > | make_complex () const |
| Creates a complex copy of this vector. More... | |
| void | make_complex (ptr_param< AbstractMultiVector > result) const |
| Writes a complex copy of this vector into result. More... | |
| std::unique_ptr< AbstractMultiVector > | get_real () const |
| Creates a new real vector with the real parts of this vector. More... | |
| void | get_real (ptr_param< AbstractMultiVector > result) const |
| Writes the real parts of this vector into result. More... | |
| std::unique_ptr< AbstractMultiVector > | get_imag () const |
| Creates a new real vector with the imaginary parts of this vector. More... | |
| void | get_imag (ptr_param< AbstractMultiVector > result) const |
| Writes the imaginary parts of this vector into result. More... | |
| void | fill (any_scalar value) |
| Fills this vector with a single value. More... | |
| void | scale (ptr_param< const AbstractMultiVector > alpha) |
| Scales this multi-vector element-wise by alpha. More... | |
| void | inv_scale (ptr_param< const AbstractMultiVector > alpha) |
| Divides this multi-vector element-wise by alpha. More... | |
| void | add_scaled (ptr_param< const AbstractMultiVector > alpha, ptr_param< const AbstractMultiVector > b) |
Adds b scaled by alpha to this (aka: BLAS axpy). More... | |
| void | sub_scaled (ptr_param< const AbstractMultiVector > alpha, ptr_param< const AbstractMultiVector > b) |
Subtracts b scaled by alpha from this (aka: BLAS axpy). More... | |
| void | compute_dot (ptr_param< const AbstractMultiVector > b, ptr_param< AbstractMultiVector > result) const |
Computes the column-wise dot product of this and b. More... | |
| void | compute_dot (ptr_param< const AbstractMultiVector > b, ptr_param< AbstractMultiVector > result, array< char > &tmp) const |
Computes the column-wise dot product of this and b. More... | |
| void | compute_conj_dot (ptr_param< const AbstractMultiVector > b, ptr_param< AbstractMultiVector > result) const |
Computes the column-wise dot product of conj(this) and b. More... | |
| void | compute_conj_dot (ptr_param< const AbstractMultiVector > b, ptr_param< AbstractMultiVector > result, array< char > &tmp) const |
Computes the column-wise dot product of conj(this) and b. More... | |
| void | compute_norm2 (ptr_param< AbstractMultiVector > result) const |
| Computes the column-wise Euclidean (L^2) norm of this. More... | |
| void | compute_norm2 (ptr_param< AbstractMultiVector > result, array< char > &tmp) const |
| Computes the column-wise Euclidean (L^2) norm of this. More... | |
| void | compute_squared_norm2 (ptr_param< AbstractMultiVector > result) const |
| Computes the square of the column-wise Euclidean (L^2) norm of this. More... | |
| void | compute_squared_norm2 (ptr_param< AbstractMultiVector > result, array< char > &tmp) const |
| Computes the square of the column-wise Euclidean (L^2) norm of this. More... | |
| void | compute_norm1 (ptr_param< AbstractMultiVector > result) const |
| Computes the column-wise (L^1) norm of this. More... | |
| void | compute_norm1 (ptr_param< AbstractMultiVector > result, array< char > &tmp) const |
| Computes the column-wise (L^1) norm of this. More... | |
| std::unique_ptr< const AbstractMultiVector > | create_real_view () const |
| Create a real view of the (potentially) complex original multi-vector. More... | |
| std::unique_ptr< AbstractMultiVector > | create_real_view () |
| Create a real view of the (potentially) complex original multi-vector. More... | |
| std::unique_ptr< AbstractMultiVector > | create_subview (local_span rows, local_span columns) |
| Creates a view containing the selected local rows and columns. More... | |
| std::unique_ptr< const AbstractMultiVector > | create_subview (local_span rows, local_span columns) const |
| Creates a const view containing the selected local rows and columns. More... | |
| std::unique_ptr< AbstractMultiVector > | create_subview (local_span rows, local_span columns, dim< 2 > global_size) |
| Creates a view with the selected rows, columns, and global size. | |
| std::unique_ptr< const AbstractMultiVector > | create_subview (local_span rows, local_span columns, dim< 2 > global_size) const |
| Creates a const view with the selected rows, columns, and global size. | |
| template<typename ValueType > | |
| device_view< ValueType > | get_local_device_view () |
| Gets a local device view of this vector for the specified value type. More... | |
| template<typename ValueType > | |
| device_view< const ValueType > | get_const_local_device_view () const |
| Gets a local device view of this vector for the specified value type. More... | |
| temporary_conversion< AbstractMultiVector > | as_precision (precision p) |
| Creates a temporary conversion of this vector with another precision. More... | |
| temporary_conversion< AbstractMultiVector > | as_precision (ptr_param< const AbstractMultiVector > p) |
| Creates a temporary conversion of this vector with another precision. More... | |
| temporary_conversion< const AbstractMultiVector > | as_precision (precision p) const |
| Creates a temporary conversion of this vector with another precision. More... | |
| temporary_conversion< const AbstractMultiVector > | as_precision (ptr_param< const AbstractMultiVector > p) const |
| Creates a temporary conversion of this vector with another precision. More... | |
| precision | get_precision () const noexcept |
| Gets the precision of this vector. More... | |
| dim< 2 > | get_size () const noexcept |
| Gets the size (number of rows and columns) of this vector. More... | |
| dim< 2 > | get_local_size () const noexcept |
| Gets the size (number of rows and columns) locally owned by this vector. More... | |
| AbstractMultiVector (const AbstractMultiVector &other) | |
| AbstractMultiVector (AbstractMultiVector &&other) noexcept | |
| AbstractMultiVector & | operator= (const AbstractMultiVector &other) |
| Copies the contents of another multi-vector. More... | |
| AbstractMultiVector & | operator= (AbstractMultiVector &&other) noexcept |
| Moves the contents of another multi-vector. More... | |
Public Member Functions inherited from gko::PolymorphicObject | |
| virtual void | validate_data () const |
| Throws gko::InvalidData exception if we found the data inside the object does not fulfill certain property up to our knowledge. | |
| PolymorphicObject & | operator= (const PolymorphicObject &) |
| std::shared_ptr< const Executor > | get_executor () const noexcept |
| Returns the Executor of the object. More... | |
Public Member Functions inherited from gko::log::EnableLogging< PolymorphicObject > | |
| void | add_logger (std::shared_ptr< const Logger > logger) override |
| void | remove_logger (const Logger *logger) override |
| void | remove_logger (ptr_param< const Logger > logger) |
| const std::vector< std::shared_ptr< const Logger > > & | get_loggers () const override |
| void | clear_loggers () override |
Public Member Functions inherited from gko::log::Loggable | |
| void | remove_logger (ptr_param< const Logger > logger) |
Public Member Functions inherited from gko::Cloneable | |
| std::unique_ptr< Cloneable > | clone (std::shared_ptr< const Executor > exec) const |
| std::unique_ptr< Cloneable > | clone () const |
| Cloneable * | copy_from (ptr_param< const Cloneable > other) |
| Cloneable * | move_from (ptr_param< Cloneable > other) |
| std::unique_ptr< Cloneable > | create_default (std::shared_ptr< const Executor > exec) const |
| std::unique_ptr< Cloneable > | create_default () const |
Static Public Member Functions | |
| static std::unique_ptr< AbstractMultiVector > | create_with_config_of (ptr_param< const AbstractMultiVector > other) |
| Creates an empty multi-vector with the same type, executor, size, stride and precision as other. More... | |
| static std::unique_ptr< AbstractMultiVector > | create_with_type_of (ptr_param< const AbstractMultiVector > other, std::shared_ptr< const Executor > exec) |
| Creates an empty multi-vector with the same type as other on exec. More... | |
| static std::unique_ptr< AbstractMultiVector > | create_with_type_of (ptr_param< const AbstractMultiVector > other, std::shared_ptr< const Executor > exec, const dim< 2 > &global_size, const dim< 2 > &local_size) |
| Creates an empty multi-vector with the same type as other and the given size. More... | |
| static std::unique_ptr< AbstractMultiVector > | create_with_type_of (ptr_param< const AbstractMultiVector > other, std::shared_ptr< const Executor > exec, const dim< 2 > &global_size, const dim< 2 > &local_size, size_type stride) |
| Creates an empty multi-vector with the same type as other and the given size and stride. More... | |
Abstract interface class for (multi-)vector types.
This interface defines the required functions on a vector. LinOps are applied to this type. It has functions in the following categories:
The public interface functions are not virtual. Instead they call virtual implementation functions and check for matching dimensions appropriately. For example the function add_sub(scale, other), then an exception is thrown if either:
To simplify the creation of derived classes, the mixin
| void gko::AbstractMultiVector::add_scaled | ( | ptr_param< const AbstractMultiVector > | alpha, |
| ptr_param< const AbstractMultiVector > | b | ||
| ) |
Adds b scaled by alpha to this (aka: BLAS axpy).
| alpha | A matrix::MultiVector. If its size is 1x1 then b is scaled by alpha. If its size is 1xc then i-th column of b is scaled with the i-th element of alpha (the number of columns of alpha has to match the number of columns of the multi-vector). |
| b | a multi-vector of the same dimension as this |
| NotSupported | If alpha isn't a matrix::MultiVector |
| DimensionMismatch | If alpha or b have incompatible dimensions |
| temporary_conversion<AbstractMultiVector> gko::AbstractMultiVector::as_precision | ( | precision | p | ) |
Creates a temporary conversion of this vector with another precision.
Allowed conversions:
| p | The requested precision |
| temporary_conversion<const AbstractMultiVector> gko::AbstractMultiVector::as_precision | ( | precision | p | ) | const |
Creates a temporary conversion of this vector with another precision.
Allowed conversions:
| p | The requested precision |
| temporary_conversion<AbstractMultiVector> gko::AbstractMultiVector::as_precision | ( | ptr_param< const AbstractMultiVector > | p | ) |
Creates a temporary conversion of this vector with another precision.
| p | multi-vector with the target precision |
| temporary_conversion<const AbstractMultiVector> gko::AbstractMultiVector::as_precision | ( | ptr_param< const AbstractMultiVector > | p | ) | const |
Creates a temporary conversion of this vector with another precision.
| p | multi-vector with the target precision |
| std::unique_ptr<AbstractMultiVector> gko::AbstractMultiVector::clone | ( | ) | const |
Creates a copy of this vector on this vector's executor.
| std::unique_ptr<AbstractMultiVector> gko::AbstractMultiVector::clone | ( | std::shared_ptr< const Executor > | exec | ) | const |
Creates a copy of this vector on the given executor.
| exec | The executor of the new vector |
| std::unique_ptr<AbstractMultiVector> gko::AbstractMultiVector::compute_absolute | ( | ) | const |
Creates a new vector with the element-wise absolute values of this vector.
The result has the real precision matching this vector's precision, e.g. a complex_fp32 vector results in a fp32 vector.
| void gko::AbstractMultiVector::compute_absolute | ( | ptr_param< AbstractMultiVector > | output | ) | const |
Writes the element-wise absolute values of this vector into output.
| output | The vector to write the absolute values into. It must have the same size as this vector. |
| DimensionMismatch | if output doesn't have the same size as this vector |
| PrecisionError | if the output doesn't have the real precision of this |
| void gko::AbstractMultiVector::compute_absolute_inplace | ( | ) |
Replaces each element of this vector with its absolute value.
The precision of this vector is not changed, i.e. a complex vector stays complex, with zero imaginary parts.
| void gko::AbstractMultiVector::compute_conj_dot | ( | ptr_param< const AbstractMultiVector > | b, |
| ptr_param< AbstractMultiVector > | result | ||
| ) | const |
Computes the column-wise dot product of conj(this) and b.
| b | a multi-vector of same dimension as this |
| result | a single row vector, used to store the dot product (the number of column in the vector must match the number of columns of this) |
| DimensionMismatch | If result or b have incompatible dimensions |
| void gko::AbstractMultiVector::compute_conj_dot | ( | ptr_param< const AbstractMultiVector > | b, |
| ptr_param< AbstractMultiVector > | result, | ||
| array< char > & | tmp | ||
| ) | const |
Computes the column-wise dot product of conj(this) and b.
| b | a multi-vector of same dimension as this |
| result | a single row vector, used to store the dot product (the number of column in the vector must match the number of columns of this) |
| tmp | the temporary storage to use for partial sums during the reduction computation. It may be resized and/or reset to the correct executor. |
| DimensionMismatch | If result or b have incompatible dimensions |
| void gko::AbstractMultiVector::compute_dot | ( | ptr_param< const AbstractMultiVector > | b, |
| ptr_param< AbstractMultiVector > | result | ||
| ) | const |
Computes the column-wise dot product of this and b.
| b | a multi-vector of same dimension as this |
| result | a single row vector, used to store the dot product (the number of column in the vector must match the number of columns of this) |
| DimensionMismatch | If result or b have incompatible dimensions |
| void gko::AbstractMultiVector::compute_dot | ( | ptr_param< const AbstractMultiVector > | b, |
| ptr_param< AbstractMultiVector > | result, | ||
| array< char > & | tmp | ||
| ) | const |
Computes the column-wise dot product of this and b.
| b | a multi-vector of same dimension as this |
| result | a single row vector, used to store the dot product (the number of column in the vector must match the number of columns of this) |
| tmp | the temporary storage to use for partial sums during the reduction computation. It may be resized and/or reset to the correct executor. |
| DimensionMismatch | If result or b have incompatible dimensions |
| void gko::AbstractMultiVector::compute_norm1 | ( | ptr_param< AbstractMultiVector > | result | ) | const |
Computes the column-wise (L^1) norm of this.
| result | a single row vector, used to store the norm (the number of columns in the vector must match the number of columns of this) |
| DimensionMismatch | If result has incompatible dimensions |
| void gko::AbstractMultiVector::compute_norm1 | ( | ptr_param< AbstractMultiVector > | result, |
| array< char > & | tmp | ||
| ) | const |
Computes the column-wise (L^1) norm of this.
| result | a single row vector, used to store the norm (the number of columns in the vector must match the number of columns of this) |
| tmp | the temporary storage to use for partial sums during the reduction computation. It may be resized and/or reset to the correct executor. |
| DimensionMismatch | If result has incompatible dimensions |
| void gko::AbstractMultiVector::compute_norm2 | ( | ptr_param< AbstractMultiVector > | result | ) | const |
Computes the column-wise Euclidean (L^2) norm of this.
| result | a single row vector, used to store the norm (the number of columns in the vector must match the number of columns of this) |
| DimensionMismatch | If result has incompatible dimensions |
| void gko::AbstractMultiVector::compute_norm2 | ( | ptr_param< AbstractMultiVector > | result, |
| array< char > & | tmp | ||
| ) | const |
Computes the column-wise Euclidean (L^2) norm of this.
| result | a single row vector, used to store the norm (the number of columns in the vector must match the number of columns of this) |
| tmp | the temporary storage to use for partial sums during the reduction computation. It may be resized and/or reset to the correct executor. |
| DimensionMismatch | If result has incompatible dimensions |
| void gko::AbstractMultiVector::compute_squared_norm2 | ( | ptr_param< AbstractMultiVector > | result | ) | const |
Computes the square of the column-wise Euclidean (L^2) norm of this.
| result | a single row vector, used to store the norm (the number of columns in the vector must match the number of columns of this) |
| DimensionMismatch | If result has incompatible dimensions |
| void gko::AbstractMultiVector::compute_squared_norm2 | ( | ptr_param< AbstractMultiVector > | result, |
| array< char > & | tmp | ||
| ) | const |
Computes the square of the column-wise Euclidean (L^2) norm of this.
| result | a single row vector, used to store the norm (the number of columns in the vector must match the number of columns of this) |
| tmp | the temporary storage to use for partial sums during the reduction computation. It may be resized and/or reset to the correct executor. |
| DimensionMismatch | If result has incompatible dimensions |
| AbstractMultiVector* gko::AbstractMultiVector::copy_from | ( | ptr_param< const AbstractMultiVector > | other | ) |
Copies the data of other into this vector.
The executor and the precision of this vector are preserved, i.e. the data of other is converted if the precisions don't match.
| other | The vector to copy from |
| std::unique_ptr<AbstractMultiVector> gko::AbstractMultiVector::create_default | ( | ) | const |
Creates an empty vector with the same type as this vector on this vector's executor.
| std::unique_ptr<AbstractMultiVector> gko::AbstractMultiVector::create_default | ( | std::shared_ptr< const Executor > | exec | ) | const |
Creates an empty vector with the same type as this vector on the given executor.
| exec | The executor of the new vector |
| std::unique_ptr<AbstractMultiVector> gko::AbstractMultiVector::create_real_view | ( | ) |
Create a real view of the (potentially) complex original multi-vector.
If the original multi-vector is real, nothing changes. If the original multi-vector is complex, the result is created by viewing the complex multi-vector with as real with a reinterpret_cast with twice the number of columns and double the stride.
| std::unique_ptr<const AbstractMultiVector> gko::AbstractMultiVector::create_real_view | ( | ) | const |
Create a real view of the (potentially) complex original multi-vector.
If the original multi-vector is real, nothing changes. If the original multi-vector is complex, the result is created by viewing the complex multi-vector with as real with a reinterpret_cast with twice the number of columns and double the stride.
| std::unique_ptr<AbstractMultiVector> gko::AbstractMultiVector::create_subview | ( | local_span | rows, |
| local_span | columns | ||
| ) |
Creates a view containing the selected local rows and columns.
| std::unique_ptr<const AbstractMultiVector> gko::AbstractMultiVector::create_subview | ( | local_span | rows, |
| local_span | columns | ||
| ) | const |
Creates a const view containing the selected local rows and columns.
|
static |
Creates an empty multi-vector with the same type, executor, size, stride and precision as other.
| other | The vector whose configuration is used |
|
static |
Creates an empty multi-vector with the same type as other on exec.
Only the type and precision of other are used, the size and stride of the new vector are both zero.
| other | The multi-vector whose type is used. |
| exec | The executor of the new multi-vector. |
|
static |
Creates an empty multi-vector with the same type as other and the given size.
The stride of the new vector is set to the number of global columns. For non-distributed types, global_size and local_size have to be equal.
| other | The multi-vector whose type is used. |
| exec | The executor of the new multi-vector. |
| global_size | The global size of the new multi-vector. |
| local_size | The local size of the new multi-vector. |
| DimensionMismatch | if global_size and local_size don't have the same number of columns |
|
static |
Creates an empty multi-vector with the same type as other and the given size and stride.
| other | The multi-vector whose type is used. |
| exec | The executor of the new multi-vector. |
| global_size | The global size of the new multi-vector. |
| local_size | The local size of the new multi-vector. |
| stride | The stride of the new multi-vector. |
| void gko::AbstractMultiVector::fill | ( | any_scalar | value | ) |
Fills this vector with a single value.
| value | The value to fill this vector with. |
| device_view<const ValueType> gko::AbstractMultiVector::get_const_local_device_view | ( | ) | const |
Gets a local device view of this vector for the specified value type.
The size of the view is equal to the local size of the vector.
| InvalidStateError | if the vector isn't stored in the requested value type |
| ValueType | The value type of the view |
| std::unique_ptr<AbstractMultiVector> gko::AbstractMultiVector::get_imag | ( | ) | const |
Creates a new real vector with the imaginary parts of this vector.
If this vector is real, the result is zero.
| void gko::AbstractMultiVector::get_imag | ( | ptr_param< AbstractMultiVector > | result | ) | const |
Writes the imaginary parts of this vector into result.
| result | The real vector to write into. It must have the same size as this vector. |
| DimensionMismatch | if result doesn't have the same size as this vector |
| PrecisionError | if the output doesn't have the real precision of this |
| device_view<ValueType> gko::AbstractMultiVector::get_local_device_view | ( | ) |
Gets a local device view of this vector for the specified value type.
The size of the view is equal to the local size of the vector.
| InvalidStateError | if the vector isn't stored in the requested value type |
| ValueType | The value type of the view |
|
noexcept |
Gets the size (number of rows and columns) locally owned by this vector.
|
noexcept |
Gets the precision of this vector.
| std::unique_ptr<AbstractMultiVector> gko::AbstractMultiVector::get_real | ( | ) | const |
Creates a new real vector with the real parts of this vector.
| void gko::AbstractMultiVector::get_real | ( | ptr_param< AbstractMultiVector > | result | ) | const |
Writes the real parts of this vector into result.
| result | The real vector to write into. It must have the same size as this vector. |
| DimensionMismatch | if result doesn't have the same size as this vector |
| PrecisionError | if the output doesn't have the real precision of this |
|
noexcept |
Gets the size (number of rows and columns) of this vector.
| void gko::AbstractMultiVector::inv_scale | ( | ptr_param< const AbstractMultiVector > | alpha | ) |
Divides this multi-vector element-wise by alpha.
| alpha | A matrix::MultiVector. If its size is 1x1 then this is scaled by 1 / alpha. If its size is 1xc then i-th column of this multi-vector is scaled with the inverse of the i-th element of alpha (the number of columns of alpha has to match the number of columns of the multi-vector). |
| NotSupported | If alpha isn't a matrix::MultiVector |
| DimensionMismatch | If alpha has incompatible dimensions |
| std::unique_ptr<AbstractMultiVector> gko::AbstractMultiVector::make_complex | ( | ) | const |
Creates a complex copy of this vector.
If this vector is real, the imaginary part of the result is zero.
| void gko::AbstractMultiVector::make_complex | ( | ptr_param< AbstractMultiVector > | result | ) | const |
Writes a complex copy of this vector into result.
| result | The complex vector to write into. It must have the same size as this vector. |
| DimensionMismatch | if result doesn't have the same size as this vector |
| PrecisionError | if the output doesn't have the complex precision of this |
| AbstractMultiVector* gko::AbstractMultiVector::move_from | ( | ptr_param< AbstractMultiVector > | other | ) |
Moves the data of other into this vector.
The executor and the precision of this vector are preserved, i.e. the data of other is copied and converted if the precisions or executors don't match. other is left in an unspecified, but valid, state.
| other | The vector to move from |
|
noexcept |
Moves the contents of another multi-vector.
Preserves the executor and precision on both objects.
| AbstractMultiVector& gko::AbstractMultiVector::operator= | ( | const AbstractMultiVector & | other | ) |
Copies the contents of another multi-vector.
Preserves the executor and precision on both objects.
| void gko::AbstractMultiVector::scale | ( | ptr_param< const AbstractMultiVector > | alpha | ) |
Scales this multi-vector element-wise by alpha.
| alpha | A matrix::MultiVector. If its size is 1x1 then this is scaled by alpha. If its size is 1xc then i-th column of this multi-vector is scaled with the i-th element of alpha (the number of columns of alpha has to match the number of columns of the multi-vector). |
| NotSupported | If alpha isn't a matrix::MultiVector |
| DimensionMismatch | If alpha has incompatible dimensions |
| void gko::AbstractMultiVector::sub_scaled | ( | ptr_param< const AbstractMultiVector > | alpha, |
| ptr_param< const AbstractMultiVector > | b | ||
| ) |
Subtracts b scaled by alpha from this (aka: BLAS axpy).
| alpha | A matrix::MultiVector. If its size is 1x1 then b is scaled by alpha. If its size is 1xc then i-th column of b is scaled with the i-th element of alpha (the number of columns of alpha has to match the number of columns of the multi-vector). |
| b | a multi-vector of the same dimension as this |
| NotSupported | If alpha isn't a matrix::MultiVector |
| DimensionMismatch | If alpha or b have incompatible dimensions |
1.8.16