Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8931811
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T09:11:47+00:00 2026-06-15T09:11:47+00:00

In this expression lmin=lminflag & ~kmod & actminsub<nsm*pminu & actminsub>pminu; is the & operator

  • 0

In this expression

lmin=lminflag & ~kmod & actminsub<nsm*pminu & actminsub>pminu;

is the & operator like a bitwise AND operator? lminflag and kmod are both arrays with either logical 1 or 0 as elements and lmin turns out to be either 1 or 0 as well.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T09:11:48+00:00Added an answer on June 15, 2026 at 9:11 am

    Yes.

    1. & is a per-element AND operator.
    2. && is a scalar AND operator, with conditional execution of the remainder of the statement.

    For example, given:

    a = true;
    b = false;
    aa = [true false];
    bb = [true true];
    fnA = @()rand>0.5; %An anonymous function returning true half the time
    

    Then:

    a &  b;  %returns false
    a && b; %returns false (same as above)
    

    However

    aa &  bb;  %this an error    
    aa && bb; %returns the array [true false]
    

    It’s more interesting when the operands are functions, with side effects.

    b &  fnA;  %Returns false, and the `rand` function is called (including a small performance hit, and an update to the random state)
    b && fnA;  %Returns false, and the `rand` function was not called (since `b` is false, the actual value of `fnA` doesn;t effect the result
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I was a little confused by this expression: gcc -c -g program.c >& compiler.txt
Possible Duplicates: What does this expression mean “!!” What does the !! operator (double
How do I get this expression Chr$(&H8) in Javascript. I need to get this
I have this expression, $thing = linkin park @#%^&* 999; $thing = preg_replace('#\W#', '',
I would like to understand this expression meaning. $req_msg =~ s/ \${$toReplace}/$replacements->{$toReplace}/g;
I got an problem i'd like to solve. This expression works as long as
I have an expression like this Expression<Func<IInterface, object>> How do i loop/traverse through all
What does this expression's algorithm mean? p = ((p<<1)&0666) | ((q<<3)&0110) | (Image->scanLine(y+1)[x+1] !=
I want to do a method with a signature like this: Expression<Func<TSource, bool>> CreatePropertyFilter<TSource>(Expression<Func<TSource,
This expression seems to work: gci . | % { gc $_} This also

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.