"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "include/armadillo_bits/arrayops_meat.hpp" between
armadillo-10.2.0.tar.xz and armadillo-10.2.1.tar.xz

About: Armadillo is a C++ linear algebra library (matrix maths) aiming towards a good balance between speed and ease of use.

arrayops_meat.hpp  (armadillo-10.2.0.tar.xz):arrayops_meat.hpp  (armadillo-10.2.1.tar.xz)
skipping to change at line 20 skipping to change at line 20
// distributed under the License is distributed on an "AS IS" BASIS, // distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and // See the License for the specific language governing permissions and
// limitations under the License. // limitations under the License.
// ------------------------------------------------------------------------ // ------------------------------------------------------------------------
//! \addtogroup arrayops //! \addtogroup arrayops
//! @{ //! @{
template<typename eT> template<typename eT>
arma_hot
arma_inline arma_inline
void void
arrayops::copy(eT* dest, const eT* src, const uword n_elem) arrayops::copy(eT* dest, const eT* src, const uword n_elem)
{ {
if(dest != src) if(dest != src)
{ {
if(is_cx<eT>::no) if(is_cx<eT>::no)
{ {
if(n_elem <= 9) if(n_elem <= 9)
{ {
skipping to change at line 164 skipping to change at line 163
} }
else else
if(std::abs(val_imag) <= abs_limit) if(std::abs(val_imag) <= abs_limit)
{ {
val = std::complex<T>(val_real, T(0)); val = std::complex<T>(val_real, T(0));
} }
} }
} }
template<typename out_eT, typename in_eT> template<typename out_eT, typename in_eT>
arma_hot
arma_inline arma_inline
void void
arrayops::convert_cx_scalar arrayops::convert_cx_scalar
( (
out_eT& out, out_eT& out,
const in_eT& in, const in_eT& in,
const typename arma_not_cx<out_eT>::result* junk1, const typename arma_not_cx<out_eT>::result* junk1,
const typename arma_not_cx< in_eT>::result* junk2 const typename arma_not_cx< in_eT>::result* junk2
) )
{ {
arma_ignore(junk1); arma_ignore(junk1);
arma_ignore(junk2); arma_ignore(junk2);
out = out_eT(in); out = out_eT(in);
} }
template<typename out_eT, typename in_T> template<typename out_eT, typename in_T>
arma_hot
arma_inline arma_inline
void void
arrayops::convert_cx_scalar arrayops::convert_cx_scalar
( (
out_eT& out, out_eT& out,
const std::complex<in_T>& in, const std::complex<in_T>& in,
const typename arma_not_cx<out_eT>::result* junk const typename arma_not_cx<out_eT>::result* junk
) )
{ {
arma_ignore(junk); arma_ignore(junk);
out = out_eT( in.real() ); out = out_eT( in.real() );
} }
template<typename out_T, typename in_T> template<typename out_T, typename in_T>
arma_hot
arma_inline arma_inline
void void
arrayops::convert_cx_scalar arrayops::convert_cx_scalar
( (
std::complex<out_T>& out, std::complex<out_T>& out,
const std::complex< in_T>& in const std::complex< in_T>& in
) )
{ {
typedef std::complex<out_T> out_eT; typedef std::complex<out_T> out_eT;
 End of changes. 4 change blocks. 
4 lines changed or deleted 0 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)